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;
151 regionCalc.iterate(nLayers);
162 OFstream fcStream(
"selectedFaces.obj");
174 point mid(0.0, 0.0, 0.0);
178 mid += mesh.
points()[f[fp]];
183 <<
"v " << mid.
x() <<
' ' << mid.
y() <<
' ' << mid.
z()
190 <<
"v " << end.x() <<
' ' << end.y() <<
' ' << end.z()
194 fcStream <<
"l " << vertI <<
' ' <<vertI-1 <<
endl;
212 if (info.
valid(regionCalc.
data()) && !usesCoupledPatch(celli))
219 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.
FvWallInfoData< WallInfo, label > 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.
Wave propagation of information through grid. Every iteration information goes through one layer of c...
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.
virtual const pointField & points() const
Return raw points.
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.
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.
An STL-conforming hash table.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
label size() const
Return the number of elements in the UPtrList.
T * data()
Return a pointer to the first data element,.
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.