Go to the documentation of this file.
34 void Foam::pressurePIDControlInletVelocityFvPatchVectorField::faceZoneAverage
37 const GeometricField<Type, fvsPatchField, surfaceMesh>&
field,
46 const faceZone& zone =
mesh.faceZones()[
name];
53 const label f(zone[faceI]);
55 if (
mesh.isInternalFace(
f))
57 const scalar da(
mesh.magSf()[
f]);
62 else if (isMasterFace[
f])
67 const scalar da(
mesh.magSf().boundaryField()[
patchID][lf]);
static constexpr const zero Zero
Global zero.
#define forAll(list, i)
Loop across all elements in list.
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.
tmp< GeometricField< Type, faPatchField, areaMesh > > average(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Area-weighted average a edgeField creating a areaField.
word name(const complex &c)
Return string representation of complex.
const std::string patch
OpenFOAM patch number as a std::string.
const wordList area
Standard area field types (scalar, vector, tensor, etc)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)