49 const word& sourceName,
50 const word& modelType,
55 meanVelocityForce(sourceName, modelType,
dict,
mesh),
56 patch_(coeffs_.
get<
word>(
"patch")),
62 <<
"Cannot find patch " <<
patch_ 80 (flowDir_ &
U.boundaryField()[patchi_])
81 * mesh_.boundary()[patchi_].magSf()
83 sumAmagUsumA[1] +=
sum(mesh_.boundary()[patchi_].magSf());
102 (flowDir_ &
U.boundaryField()[patchi])
103 * mesh_.boundary()[patchi].magSf()
105 sumAmagUsumA[1] +=
sum(mesh_.boundary()[patchi].magSf());
109 mesh_.reduce(sumAmagUsumA, sumOp<scalar>());
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
patchMeanVelocityForce(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &f1)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
word patch_
Name of operand patch.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface...
static bool & parRun() noexcept
Test if this a parallel run.
dimensionedScalar stabilise(const dimensionedScalar &x, const dimensionedScalar &y)
virtual scalar magUbarAve(const volVectorField &U) const
Calculate and return the magnitude of the mean velocity averaged over the specified patch...
Macros for easy insertion into run-time selection tables.
A class for handling words, derived from Foam::string.
label patchi_
Patch index.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Mesh data needed to do the Finite Volume discretisation.
const polyBoundaryMesh & patches
static labelList patchIDs(const word &cyclicPolyPatchName, const polyBoundaryMesh &bm)
Return the indices of a processorCyclicPolyPatchs.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
static constexpr const zero Zero
Global zero (0)