Go to the documentation of this file.
54 forAll(patchFields, patchI)
59 if (patchMap[patchI] == -1)
115 if (patchMap[patchI] != -1)
119 const fvPatch& basePatch = vf.mesh().boundary()[patchMap[patchI]];
125 forAll(directAddressing, i)
129 if (baseFaceI >= baseStart && baseFaceI < baseStart+baseSize)
131 directAddressing[i] = baseFaceI-baseStart;
137 directAddressing[i] = -1;
184 const bool negateIfFlipped
190 forAll(patchFields, patchI)
195 if (patchMap[patchI] == -1)
260 if (patchMap[patchI] != -1)
264 const fvPatch& basePatch = vf.mesh().boundary()[patchMap[patchI]];
270 forAll(directAddressing, i)
274 if (baseFaceI >= baseStart && baseFaceI < baseStart+baseSize)
276 directAddressing[i] = baseFaceI-baseStart;
283 directAddressing[i] = -1;
303 const labelUList& fc = bf[patchI].patch().faceCells();
304 const labelList& own = vf.mesh().faceOwner();
313 if (cellMap[fc[i]] == own[baseFaceI] || !negateIfFlipped)
326 label patchI = vf.mesh().boundaryMesh().whichPatch
330 const fvPatch& otherPatch = vf.mesh().boundary()[patchI];
346 const bool negateIfFlipped
374 forAll(patchFields, patchI)
379 if (patchMap[patchI] == -1)
439 if (patchMap[patchI] != -1)
443 vf.mesh().boundary()[patchMap[patchI]];
449 forAll(meshPoints, localI)
451 meshPointMap.insert(meshPoints[localI], localI);
461 forAll(subMeshPoints, localI)
464 label meshPointI = pointMap[subMeshPoints[localI]];
468 if (iter != meshPointMap.end())
470 directAddressing[localI] = iter();
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
static tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &, const fvMesh &sMesh, const labelList &patchMap, const labelList &cellMap, const labelList &faceMap)
Map volume field.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const pointBoundaryMesh & boundary() const
Return reference to boundary mesh.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
DimensionedInternalField & dimensionedInternalField()
Return dimensioned internal field.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
A List obtained as a section of another List.
Class containing functor to negate primitives. Dummy for all other types.
Foam::emptyFvsPatchField.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Foam::calculatedFvsPatchField.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
Basic pointPatch represents a set of points from the mesh.
const Time & time() const
Return time.
Abstract base class for point-mesh patch fields.
static const pointMesh & New(const polyMesh &mesh)
virtual label size() const
Return size.
bool set(const label) const
Is element set.
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A calculated boundary condition for pointField.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
InternalField & internalField()
Return internal field.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
This boundary condition provides an 'empty' condition for reduced dimensions cases,...
label nInternalFaces() const
Mesh data needed to do the Finite Volume discretisation.
This boundary condition is not designed to be evaluated; it is assmued that the value is assigned via...
Mesh representing a set of points created from polyMesh.
volScalarField sf(fieldObject, mesh)
const dimensionSet & dimensions() const
Return dimensions.
virtual label size() const =0
Return size.
An empty boundary condition for pointField.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
label whichFace(const label l) const
Return label of face in patch from global face label.
virtual const labelList & meshPoints() const =0
Return mesh points.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const objectRegistry & thisDb() const
Return database. For now is its polyMesh.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label start() const
Return start label of this patch in the polyMesh face list.
const polyPatch & patch() const
Return the polyPatch.
direct fvPatchFieldMapper
const Time & time() const
Return the top-level database.
void size(const label)
Override size to be inconsistent with allocated storage.
Generic GeometricField class.
direct pointPatchFieldMapper
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...