44bool Foam::wallLayerCells::usesCoupledPatch(
const label celli)
const
48 const cell& cFaces =
mesh().
cells()[celli];
52 label facei = cFaces[cFacei];
98 label patchi = patchNameToIndex[
name];
109 label nChangedFaces = 0;
117 label patchi = patchNameToIndex[
name];
123 label meshFacei = pp.
start() + patchFacei;
125 changedFaces[nChangedFaces] = meshFacei;
163 OFstream fcStream(
"selectedFaces.obj");
184 <<
"v " << mid.
x() <<
' ' << mid.
y() <<
' ' << mid.
z()
191 <<
"v " <<
end.x() <<
' ' <<
end.y() <<
' ' <<
end.z()
195 fcStream <<
"l " << vertI <<
' ' <<vertI-1 <<
endl;
215 if (info.
valid(regionCalc.
data()) && !usesCoupledPatch(celli))
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
A HashTable similar to std::unordered_map.
bool found(const Key &key) const
Return true if hashed entry is found in table.
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void transfer(List< refineCell > &list)
label iterate(const label maxIter)
Iterate until no changes or maxIter reached.
const List< Type > & allFaceInfo() const
Get allFaceInfo.
const List< Type > & allCellInfo() const
Get allCellInfo.
const TrackingData & data() const
Additional data to be passed into container.
Output to file stream, using an OSstream.
const Field< point_type > & faceNormals() const
Return face unit normals for patch.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
iterator end() noexcept
Return an iterator to end traversing the UList.
void size(const label n)
Older name for setAddressableSize.
label size() const noexcept
The number of elements in the list.
const Cmpt & z() const
Access to the vector z component.
const Cmpt & y() const
Access to the vector y component.
const Cmpt & x() const
Access to the vector x component.
Holds information regarding type of cell. Used in inside/outside determination in cellClassification.
Combines edge or vertex in single label. Used to specify cuts across cell circumference.
const polyMesh & mesh() const
A face is a list of labels corresponding to mesh vertices.
label whichPatch(const label faceIndex) const
Return patch index for a given face label.
Mesh consisting of general polyhedral cells.
virtual const faceList & faces() const
Return raw faces.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
virtual const pointField & points() const
Return raw points.
A patch is a list of labels that address the faces in the global face list.
label start() const
Return start label of this patch in the polyMesh face list.
const cellList & cells() const
Container with cells to refine. Refinement given as single direction.
After construction is a list of <refineCell> of cells within a certain distance to the wall and with ...
Holds information regarding nearest wall point. Used in wall refinement.
bool valid(TrackingData &td) const
Changed or contains original (invalid) value.
const vector & normal() const
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const polyBoundaryMesh & patches
bool coupled(solutionDict.getOrDefault("coupledEnergyField", false))
#define InfoInFunction
Report an information message using Foam::Info.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
wordList patchNames(nPatches)
#define forAll(list, i)
Loop across all elements in list.