53 forAll(patchFields, patchI)
58 if (patchMap[patchI] == -1)
110 GeometricBoundaryField& bf = resF.boundaryField();
114 if (patchMap[patchI] != -1)
118 const fvPatch& basePatch = vf.
mesh().boundary()[patchMap[patchI]];
124 forAll(directAddressing, i)
126 label baseFaceI = faceMap[subPatch.
start()+i];
128 if (baseFaceI >= baseStart && baseFaceI < baseStart+baseSize)
130 directAddressing[i] = baseFaceI-baseStart;
136 directAddressing[i] = -1;
147 resF.dimensionedInternalField(),
187 forAll(patchFields, patchI)
192 if (patchMap[patchI] == -1)
257 if (patchMap[patchI] != -1)
261 const fvPatch& basePatch = vf.
mesh().boundary()[patchMap[patchI]];
267 forAll(directAddressing, i)
269 label baseFaceI = faceMap[subPatch.
start()+i];
271 if (baseFaceI >= baseStart && baseFaceI < baseStart+baseSize)
273 directAddressing[i] = baseFaceI-baseStart;
280 directAddressing[i] = -1;
303 label baseFaceI = faceMap[subPatch.start()+i];
313 label patchI = vf.
mesh().boundaryMesh().whichPatch
317 const fvPatch& otherPatch = vf.
mesh().boundary()[patchI];
358 forAll(patchFields, patchI)
363 if (patchMap[patchI] == -1)
416 GeometricBoundaryField& bf = resF.boundaryField();
423 if (patchMap[patchI] != -1)
427 vf.
mesh().boundary()[patchMap[patchI]];
433 forAll(meshPoints, localI)
435 meshPointMap.insert(meshPoints[localI], localI);
445 forAll(subMeshPoints, localI)
448 label meshPointI = pointMap[subMeshPoints[localI]];
452 if (iter != meshPointMap.
end())
454 directAddressing[localI] = iter();
465 resF.dimensionedInternalField(),
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.
const objectRegistry & thisDb() const
Return database. For now is its polyMesh.
virtual label size() const =0
Return size.
Basic pointPatch represents a set of points from the mesh.
This boundary condition provides an 'empty' condition for reduced dimensions cases, i.e. 1- and 2-D geometries. Apply this condition to patches whose normal is aligned to geometric directions that do not constitue solution directions.
This boundary condition is not designed to be evaluated; it is assmued that the value is assigned via...
Mesh data needed to do the Finite Volume discretisation.
virtual const labelList & meshPoints() const =0
Return mesh points.
bool set(const label) const
Is element set.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
static const pointMesh & New(const polyMesh &mesh)
Foam::emptyFvsPatchField.
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.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
void size(const label)
Override size to be inconsistent with allocated storage.
InternalField & internalField()
Return internal field.
DimensionedInternalField & dimensionedInternalField()
Return dimensioned internal field.
Mesh representing a set of points created from polyMesh.
const Mesh & mesh() const
Return mesh.
const Time & time() const
Return the top-level database.
const polyPatch & patch() const
Return the polyPatch.
Abstract base class for point-mesh patch fields.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A calculated boundary condition for pointField.
const pointBoundaryMesh & boundary() const
Return reference to boundary mesh.
direct fvPatchFieldMapper
const dimensionSet & dimensions() const
Return dimensions.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Pre-declare SubField and related Field type.
const word & name() const
Return name.
An empty boundary condition for pointField.
label nInternalFaces() const
Generic GeometricField class.
direct pointPatchFieldMapper
const Time & time() const
Return time.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable
A List obtained as a section of another List.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Foam::calculatedFvsPatchField.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
virtual label size() const
Return size.
label start() const
Return start label of this patch in the polyMesh face list.
A class for managing temporary objects.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
label whichFace(const label l) const
Return label of face in patch from global face label.
static const DimensionedField< Type, GeoMesh > & null()
Return a null DimensionedField.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.