43 auto& result = tresult.ref();
55 if (faceLabels[i] < pMesh.
nFaces())
58 faceID = bm[
patchID].whichFace(faceLabels[i]);
60 result[i] = df[
patchID][faceID];
74 const labelList& faceLabels = mesh_.faceLabels();
77 auto& result = tresult.ref();
85 if (faceLabels[i] < pMesh.
nFaces())
88 faceID = bm[
patchID].whichFace(faceLabels[i]);
90 result[i] =
f[faceID];
105 const labelList& faceLabels = mesh_.faceLabels();
108 auto& result = tresult.ref();
120 if (faceLabels[i] < pMesh.
nFaces())
123 faceID = bm[
patchID].whichFace(faceLabels[i]);
125 result[i] = df[
patchID].patchInternalField()()[faceID];
141 const labelList& faceLabels = mesh_.faceLabels();
154 if (faceLabels[i] < pMesh.
nFaces())
157 faceID = bm[
patchID].whichFace(faceLabels[i]);
198 const labelList& faceLabels = mesh_.faceLabels();
206 if (faceLabels[i] < pMesh.
nFaces())
209 faceID = bm[
patchID].whichFace(faceLabels[i]);
Generic templated field type.
Generic GeometricBoundaryField class.
Generic GeometricField class.
const Internal & internalField() const
Return a const-reference to the dimensioned internal field.
void size(const label n)
Older name for setAddressableSize.
const labelList & faceLabels() const noexcept
Return the underlying polyMesh face labels.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
label whichPatch(const label faceIndex) const
Return patch index for a given face label.
Mesh consisting of general polyhedral cells.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
label nFaces() const noexcept
Number of mesh faces.
A class for managing temporary objects.
tmp< Field< Type > > mapToSurface(const GeometricBoundaryField< Type, fvPatchField, volMesh > &df) const
Map volume boundary field to surface.
void mapToVolume(const GeometricField< Type, faPatchField, areaMesh > &af, GeometricBoundaryField< Type, fvPatchField, volMesh > &bf) const
Map surface field to volume boundary field.
void mapToField(const GeometricField< Type, faPatchField, areaMesh > &af, Field< Type > &f) const
Map surface field to field.
tmp< Field< Type > > mapInternalToSurface(const GeometricBoundaryField< Type, fvPatchField, volMesh > &df) const
Map patch internal field to surface.
static constexpr const zero Zero
Global zero (0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
vsm mapToVolume(Cs, Cvf.boundaryFieldRef())
#define forAll(list, i)
Loop across all elements in list.