37 namespace faceSelections
43 searchableSurfaceSelection,
56 const dictionary&
dict 59 faceSelection(name, mesh, dict),
62 searchableSurface::
New 64 word(dict.
lookup(
"surface")),
67 dict.lookupOrDefault(
"name", mesh.objectRegistry::db().name()),
68 mesh.time().constant(),
69 searchableSurface::geometryDir(mesh.time()),
70 mesh.objectRegistry::db(),
120 const polyPatch& pp = pbm[
patchi];
126 label facei = pp.start()+i;
135 label facei = pp.start()+i;
142 List<pointIndexHit> hits;
143 surfacePtr_().findLine(start, end, hits);
145 surfacePtr_().getNormal(hits, normals);
151 if (hits[facei].hit())
153 faceToZoneID[facei] = zoneID;
154 vector d = end[facei]-start[facei];
155 faceToFlip[facei] = ((normals[facei] & d) < 0);
160 const polyPatch& pp = pbm[
patchi];
166 label facei = pp.start()+i;
167 if (hits[facei].hit())
169 faceToZoneID[facei] = zoneID;
170 vector d = end[facei]-start[facei];
171 faceToFlip[facei] = ((normals[facei] & d) < 0);
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#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.
const fvMesh & mesh_
Reference to mesh.
virtual ~searchableSurfaceSelection()
Destructor.
label nInternalFaces() const
virtual const labelList & faceNeighbour() const
Return face neighbour.
Vector< scalar > vector
A scalar version of the templated Vector.
Macros for easy insertion into run-time selection tables.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
List< bool > boolList
Bool container classes.
vectorField pointField
pointField is a vectorField.
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual const labelList & faceOwner() const
Return face owner.
List< label > labelList
A List of labels.
const vectorField & cellCentres() const
virtual void select(const label zoneID, labelList &, boolList &) const
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
const vectorField & faceCentres() const
virtual void select(const label, labelList &, boolList &) const =0
Field< vector > vectorField
Specialisation of Field<T> for vector.
searchableSurfaceSelection(const word &name, const fvMesh &mesh, const dictionary &dict)
Construct from dictionary.