122 forAll(directAddressing, i)
126 if (baseFacei >= baseStart && baseFacei < baseStart+baseSize)
128 directAddressing[i] = baseFacei-baseStart;
134 directAddressing[i] = -1;
185 const bool negateIfFlipped =
isFlux(
sf);
195 if (patchMap[
patchi] == -1)
264 if (patchMap[
patchi] != -1)
271 forAll(directAddressing, i)
275 if (baseFacei >= baseStart && baseFacei < baseStart+baseSize)
277 directAddressing[i] = baseFacei-baseStart;
304 if (directAddressing[i] == -1)
306 if (
sf.
mesh().isInternalFace(baseFacei))
310 if (cellMap[fc[i]] == own[baseFacei] || !negateIfFlipped)
321 const label basePatchi =
322 sf.
mesh().boundaryMesh().patchIndices()
323 [baseFacei -
sf.
mesh().nInternalFaces()];
324 const label basePatchFacei =
325 sf.
mesh().boundaryMesh()[basePatchi]
326 .whichFace(baseFacei);
374 if (patchMap[
patchi] == -1)
435 if (patchMap[
patchi] != -1)
445 forAll(meshPoints, localI)
447 meshPointMap.
insert(meshPoints[localI], localI);
457 forAll(subMeshPoints, localI)
460 label meshPointi = pointMap[subMeshPoints[localI]];
464 if (iter != meshPointMap.
end())
466 directAddressing[localI] = iter();
#define forAll(list, i)
Loop across all elements in list.
static pointMesh & New(const word &name, const polyMesh &mesh)
Construct and return the named DemandDrivenMeshObject.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
const Mesh & mesh() const
Return mesh.
Pre-declare SubField and related Field type.
Generic GeometricField class.
const Internal::FieldType & primitiveField() const
Return a const-reference to the primitive field.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const Internal & internalField() const
Return a const-reference to the dimensioned internal field.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const Time & time() const
Return time.
const word & name() const
Return name.
void size(const label)
Override size to be inconsistent with allocated storage.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool set(const label) const
Is element set.
A List obtained as a section of another List.
This boundary condition is not designed to be evaluated; it is assumed that the value is assigned via...
Foam::calculatedFvsPatchField.
A calculated boundary condition for pointField.
const word & name() const
Return const reference to name.
Class containing functor to negate primitives. Dummy for all other types.
const labelList & faceMap() const
Return face map.
const labelList & cellMap() const
Return cell map.
const labelList & patchMap() const
Return patch map.
static tmp< VolField< Type > > interpolate(const VolField< Type > &, const fvMesh &sMesh, const labelList &patchMap, const labelList &cellMap, const labelList &faceMap)
Map volume field.
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual label size() const
Return size.
virtual label start() const
Return start label of this patch in the polyMesh face list.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Constraint fvPatchField to hold values for internal face exposed by sub-setting.
Constraint fvsPatchField to hold values for internal face exposed by sub-setting.
Constraint pointPatchField to hold values for internal face exposed by sub-setting.
Mesh representing a set of points created from polyMesh.
const objectRegistry & thisDb() const
Return database. For now is its polyMesh.
const pointBoundaryMesh & boundary() const
Return reference to boundary mesh.
Abstract base class for point-mesh patch fields.
Basic pointPatch represents a set of points from the mesh.
virtual const labelList & meshPoints() const =0
Return mesh points.
virtual label size() const =0
Return size.
label nInternalFaces() const
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
volScalarField sf(fieldObject, mesh)
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool isFlux(const DimensionedField< Type, surfaceMesh > &df)
Check if surfaceField is a flux.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable