42 bool Foam::wallLayerCells::usesCoupledPatch(
const label celli)
const 46 const cell& cFaces =
mesh().
cells()[celli];
50 label facei = cFaces[cFacei];
52 label patchID = patches.whichPatch(facei);
54 if ((patchID >= 0) && (patches[patchID].coupled()))
90 forAll(patchNames, patchNameI)
92 const word&
name = patchNames[patchNameI];
94 if (patchNameToIndex.found(name))
107 label nChangedFaces = 0;
109 forAll(patchNames, patchNameI)
111 const word&
name = patchNames[patchNameI];
113 if (patchNameToIndex.found(name))
123 changedFaces[nChangedFaces] = meshFacei;
161 OFstream fcStream(
"selectedFaces.obj");
173 point mid(0.0, 0.0, 0.0);
177 mid += mesh.
points()[f[fp]];
182 <<
"v " << mid.
x() <<
' ' << mid.
y() <<
' ' << mid.
z()
189 <<
"v " << end.x() <<
' ' << end.y() <<
' ' << end.z()
193 fcStream <<
"l " << vertI <<
' ' <<vertI-1 <<
endl;
213 if (info.
valid(regionCalc.
data()) && !usesCoupledPatch(celli))
220 transfer(refineCells);
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
wallLayerCells(const polyMesh &mesh, const List< word > &patchNames, const label nLayers)
Construct from components.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Holds information regarding nearest wall point. Used in wall refinement.
A face is a list of labels corresponding to mesh vertices.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const vector & normal() const
const cellList & cells() const
Holds information regarding type of cell. Used in inside/outside determination in cellClassification...
bool valid(TrackingData &td) const
Check whether origin has been changed at all or.
const TrackingData & data() const
Additional data to be passed into container.
virtual const pointField & points() const
Return raw points.
const List< Type > & allFaceInfo() const
Get allFaceInfo.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
A class for handling words, derived from string.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
Combines edge or vertex in single label. Used to specify cuts across cell circumference.
label iterate(const label maxIter)
Iterate until no changes or maxIter reached. Returns actual.
virtual const faceList & faces() const
Return raw faces.
const Field< PointType > & faceNormals() const
Return face normals for patch.
Container with cells to refine. Refinement given as single direction.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
const List< Type > & allCellInfo() const
Get allCellInfo.
label size() const
Return the number of elements in the UPtrList.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
label start() const
Return start label of this patch in the polyMesh face list.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
#define InfoInFunction
Report an information message using Foam::Info.