Go to the documentation of this file.
37 Foam::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]]);
73 Foam::sampledFaceZone::sampleOnFaces
80 auto&
values = tvalues.ref();
84 const label facei = faceId_[i];
85 const label patchi = facePatchId_[i];
105 Foam::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))
static autoPtr< sampledSurface > New(const word &name, const polyMesh &mesh, const dictionary &dict)
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A class for managing temporary objects.
static constexpr const zero Zero
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
void set(const bitSet &bitset)
const polyBoundaryMesh & boundaryMesh() const
const GeometricField< Type, fvPatchField, volMesh > & psi() const
A patch is a list of labels that address the faces in the global face list.
virtual const labelList & faceOwner() const
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const polyMesh & mesh() const noexcept
A face is a list of labels corresponding to mesh vertices.
Generic GeometricField class.
virtual Type interpolate(const vector &position, const label celli, const label facei=-1) const =0
virtual const labelList & faceNeighbour() const
const Boundary & boundaryField() const