47 #ifndef meanVelocityForce_H 48 #define meanVelocityForce_H 130 const word& sourceName,
131 const word& modelType,
virtual scalar magUbarAve(const volVectorField &U) const
Calculate and return the magnitude of the mean velocity.
virtual void correct(volVectorField &U)
Correct the pressure gradient.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual bool read(const dictionary &dict)
Read source dictionary.
dimensionedVector gradP("gradP", dimensionSet(0, 1, -2, 0, 0), Zero)
autoPtr< volScalarField > rAPtr_
Matrix 1/A coefficients field pointer.
const fvMesh & mesh() const
Return const access to the mesh database.
void writeProps(const scalar gradP) const
Write the pressure gradient to file (for restarts etc)
scalar relaxation_
Relaxation factor.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Add explicit contribution to momentum equation.
A class for handling words, derived from string.
vector Ubar_
Average velocity.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
scalar dGradP_
Change in pressure gradient.
void update(fvMatrix< vector > &eqn)
Correct driving force for a constant mass flow rate.
TypeName("meanVelocityForce")
Runtime type information.
Mesh data needed to do the Finite Volume discretisation.
Cell-set options abtract base class. Provides a base set of controls, e.g.:
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar gradP0_
Pressure gradient before correction.
vector flowDir_
Flow direction.
Calculates and applies the force necessary to maintain the specified mean velocity.
virtual void constrain(fvMatrix< vector > &eqn, const label fieldi)
Set 1/A coefficient.