42 patchMeanVelocityForce,
51 void Foam::fv::patchMeanVelocityForce::readCoeffs()
53 patch_ = coeffs().lookup<word>(
"patch");
55 if (
mesh().boundaryMesh().findPatchID(patch_) < 0)
58 <<
"Cannot find patch " << patch_
68 const word& sourceName,
69 const word& modelType,
83 Foam::scalar Foam::fv::patchMeanVelocityForce::magUbarAve
109 forAll(processorCyclicPatches, pcpi)
111 const label patchi = processorCyclicPatches[pcpi];
126 return sumAmagU/sumA;
patchMeanVelocityForce(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
defineTypeNameAndDebug(fixedTemperatureConstraint, 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.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
virtual bool read(const dictionary &dict)
Read source dictionary.
Macros for easy insertion into run-time selection tables.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
Form normalised(const VectorSpace< Form, Cmpt, Ncmpts > &vs)
A class for handling words, derived from string.
static const word null
An empty word.
faceListList boundary(nPatches)
addToRunTimeSelectionTable(fvConstraint, fixedTemperatureConstraint, dictionary)
static bool & parRun()
Is this a parallel run?
dimensionedVector Ubar("Ubar", dimVelocity, laminarTransport)
virtual bool read(const dictionary &dict)
Read dictionary.
Mesh data needed to do the Finite Volume discretisation.
static labelList patchIDs(const word &cyclicPolyPatchName, const polyBoundaryMesh &bm)
Return the indices of a processorCyclicPolyPatchs.
Calculates and applies the force necessary to maintain the specified mean velocity.