Go to the documentation of this file.
52 #ifndef meanVelocityForce_H
53 #define meanVelocityForce_H
133 const word& sourceName,
134 const word& modelType,
volVectorField gradP(fvc::grad(p))
A class for handling words, derived from Foam::string.
Cell-set options abstract 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 update(fvMatrix< vector > &eqn)
Correct driving force for a constant mass flow rate.
vector flowDir_
Flow direction.
vector Ubar_
Average velocity.
virtual bool read(const dictionary &dict)
Read source dictionary.
scalar dGradP_
Change in pressure gradient.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Add explicit contribution to momentum equation.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
TypeName("meanVelocityForce")
Runtime type information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
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.
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....
virtual void correct(volVectorField &U)
Correct the pressure gradient.