94#ifndef meanVelocityForce_H
95#define meanVelocityForce_H
113class meanVelocityForce
115 public fv::cellSetOption
137 autoPtr<volScalarField>
rAPtr_;
164 const word& sourceName,
165 const word& modelType,
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
Applies the force within a specified region to maintain the specified mean velocity for incompressibl...
vector Ubar_
Desired mean velocity.
void operator=(const meanVelocityForce &)=delete
No copy assignment.
TypeName("meanVelocityForce")
Runtime type information.
meanVelocityForce(const meanVelocityForce &)=delete
No copy construct.
virtual bool read(const dictionary &dict)
Read source dictionary.
scalar dGradP_
Change in pressure gradient.
autoPtr< volScalarField > rAPtr_
Matrix 1/A coefficients field pointer.
virtual void constrain(fvMatrix< vector > &eqn, const label fieldi)
Set 1/A coefficient.
scalar gradP0_
Pressure gradient before correction.
virtual ~meanVelocityForce()=default
Destructor.
scalar relaxation_
Relaxation factor.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Add explicit contribution to momentum equation.
void writeProps(const scalar gradP) const
Write the pressure gradient to file (for restarts etc)
virtual scalar magUbarAve(const volVectorField &U) const
void update(fvMatrix< vector > &eqn)
Correct driving force for a constant mass flow rate.
vector flowDir_
Flow direction.
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
A class for handling words, derived from Foam::string.
volVectorField gradP(fvc::grad(p))
GeometricField< vector, fvPatchField, volMesh > volVectorField
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.