37Foam::sampledFaceZone::sampleOnFaces
42 const auto& vField = sampler.
psi();
48 auto& values = tvalues.ref();
52 const label facei = faceId_[i];
53 const label patchi = facePatchId_[i];
58 values[i] = vField.boundaryField()[patchi][facei];
63 values[i] = 0.5*(vField[own[facei]] + vField[nei[facei]]);
73Foam::sampledFaceZone::sampleOnFaces
80 auto& values = tvalues.ref();
84 const label facei = faceId_[i];
85 const label patchi = facePatchId_[i];
95 values[i] = sField[facei];
105Foam::sampledFaceZone::sampleOnPoints
112 auto& values = tvalues.ref();
120 const face&
f = faces()[i];
121 label facei = faceId_[i];
122 const label patchi = facePatchId_[i];
133 const label celli = own[facei];
135 for (
const label pointi :
f)
137 if (pointDone.
set(pointi))
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
void size(const label n)
Older name for setAddressableSize.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
void set(const bitSet &bitset)
Set specified bits from another bitset.
A face is a list of labels corresponding to mesh vertices.
Abstract base class for volume field interpolation.
const GeometricField< Type, fvPatchField, volMesh > & psi() const noexcept
Return the field to be interpolated.
virtual Type interpolate(const vector &position, const label celli, const label facei=-1) const =0
Interpolate field to the given point in the given cell.
virtual const labelList & faceOwner() const
Return face owner.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
virtual const labelList & faceNeighbour() const
Return face neighbour.
A patch is a list of labels that address the faces in the global face list.
label start() const
Return start label of this patch in the polyMesh face list.
static autoPtr< sampledSurface > New(const word &name, const polyMesh &mesh, const dictionary &dict)
Return a reference to the selected surface.
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
A class for managing temporary objects.
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.
#define forAll(list, i)
Loop across all elements in list.