Go to the documentation of this file.
44 bool Foam::wallLayerCells::usesCoupledPatch(
const label celli)
const
48 const cell& cFaces =
mesh().
cells()[celli];
52 label facei = cFaces[cFacei];
85 patchNameToIndex.insert(
patches[patchi].
name(), patchi);
96 if (patchNameToIndex.found(
name))
98 label patchi = patchNameToIndex[
name];
100 nWalls +=
patches[patchi].size();
109 label nChangedFaces = 0;
115 if (patchNameToIndex.found(
name))
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))
222 transfer(refineCells);
int debug
Static debugging option.
wallLayerCells(const polyMesh &mesh, const List< word > &patchNames, const label nLayers)
Construct from components.
virtual const pointField & points() const
Return raw points.
const List< Type > & allFaceInfo() const
Get allFaceInfo.
const Cmpt & x() const
Access to the vector x component.
#define InfoInFunction
Report an information message using Foam::Info.
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
Global zero (0)
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
bool valid(TrackingData &td) const
Changed or contains original (invalid) value.
const cellList & cells() const
Combines edge or vertex in single label. Used to specify cuts across cell circumference.
const vector & normal() const
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label iterate(const label maxIter)
Iterate until no changes or maxIter reached.
const Cmpt & z() const
Access to the vector z component.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
A patch is a list of labels that address the faces in the global face list.
word name(const complex &c)
Return string representation of complex.
DynamicList< T, SizeMin > & append(const T &val)
Append an element to the end of this list.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
wordList patchNames(nPatches)
const TrackingData & data() const
Additional data to be passed into container.
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
label start() const
Return start label of this patch in the polyMesh face list.
Output to file stream, using an OSstream.
const Cmpt & y() const
Access to the vector y component.
Holds information regarding type of cell. Used in inside/outside determination in cellClassification.
Container with cells to refine. Refinement given as single direction.
virtual const faceList & faces() const
Return raw faces.
const polyBoundaryMesh & patches
const Field< point_type > & faceNormals() const
Return face unit normals for patch.
Holds information regarding nearest wall point. Used in wall refinement.
A face is a list of labels corresponding to mesh vertices.
defineTypeNameAndDebug(combustionModel, 0)
const List< Type > & allCellInfo() const
Get allCellInfo.
const polyMesh & mesh() const