41 patchMeanVelocityForce,
50 Foam::fv::patchMeanVelocityForce::patchMeanVelocityForce
52 const word& sourceName,
53 const word& modelType,
59 patch_(coeffs_.lookup(
"patch")),
65 <<
"Cannot find patch " << patch_
83 *mesh_.boundary()[patchi_].magSf()
85 sum(mesh_.boundary()[patchi_].magSf())
101 forAll(processorCyclicPatches, pcpi)
109 *mesh_.boundary()[
patchi].magSf()
112 sumAmagUsumA.
y() +=
sum(mesh_.boundary()[
patchi].magSf());
118 return sumAmagUsumA.
x()/sumAmagUsumA.
y();
defineTypeNameAndDebug(option, 0)
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
addToRunTimeSelectionTable(option, fixedTemperatureConstraint, dictionary)
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Macros for easy insertion into run-time selection tables.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
const Boundary & boundaryField() const
Return const-reference to the boundary field.
A class for handling words, derived from string.
static bool & parRun()
Is this a parallel run?
virtual scalar magUbarAve(const volVectorField &U) const
Calculate and return the magnitude of the mean velocity.
Mesh data needed to do the Finite Volume discretisation.
static labelList patchIDs(const word &cyclicPolyPatchName, const polyBoundaryMesh &bm)
Return the indices of a processorCyclicPolyPatchs.
label findPatchID(const word &patchName) const
Find patch index given a name.
Calculates and applies the force necessary to maintain the specified mean velocity.