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