Go to the documentation of this file.
31 if (
faces().empty() || field.empty())
36 if (field.size() !=
faces().size())
40 <<
"field (" << field.size()
41 <<
") != surface (" <<
faces().
size() <<
")"
54 if (checkFieldSize(field))
56 value =
sum(field*magSf());
67 Type value = integrate(field());
78 if (checkFieldSize(field))
80 value =
sum(field*magSf());
106 template<
class ReturnType,
class Type>
113 if (checkFieldSize(field))
119 res[faceI] = field[faceI] & (norm[faceI]/
mag(norm[faceI]));
129 template<
class ReturnType,
class Type>
136 project(res, field());
141 template<
class ReturnType,
class Type>
149 project(tRes(), field);
190 label cellI = pCells[i];
192 cellAvg[cellI] += pfld[pointI];
193 nPointCells[cellI]++;
199 cellAvg[cellI] /= nPointCells[cellI];
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
virtual const faceList & faces() const =0
Faces of surface.
tmp< GeometricField< Type, fvPatchField, volMesh > > pointAverage(const GeometricField< Type, pointPatchField, pointMesh > &pfld) const
Interpolate from points to cell centre.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
Type average(const Field< Type > &) const
Area-averaged value of a field across the surface.
void project(Field< ReturnType > &, const Field< Type > &) const
Project field onto surface.
dimensioned< scalar > mag(const dimensioned< Type > &)
Type integrate(const Field< Type > &) const
Integration of a field across the surface.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void correctBoundaryConditions()
Correct boundary field.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Traits class for primitives.
const labelListList & pointCells() const
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
const Time & time() const
Return the top-level database.
bool checkFieldSize(const Field< Type > &) const
Check field size matches surface size.
void size(const label)
Override size to be inconsistent with allocated storage.
Generic GeometricField class.
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)