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])
64 const label bf(
f-
mesh.nInternalFaces());
65 const label
patchID =
mesh.boundaryMesh().patchID()[bf];
66 const label lf(
mesh.boundaryMesh()[
patchID].whichFace(
f));
67 const scalar da(
mesh.magSf().boundaryField()[
patchID][lf]);
tmp< GeometricField< Type, faPatchField, areaMesh > > average(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Area-weighted average a edgeField creating a areaField.
#define forAll(list, i)
Loop across all elements in list.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const wordList area
Standard area field types (scalar, vector, tensor, etc)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
const std::string patch
OpenFOAM patch number as a std::string.
void reduce(const List< UPstream::commsStruct > &comms, T &value, const BinaryOp &bop, const int tag, const label comm)
Reduce inplace (cf. MPI Allreduce) using specified communication schedule.
static constexpr const zero Zero
Global zero (0)