Go to the documentation of this file.
103 #ifndef velocityDampingConstraint_H
104 #define velocityDampingConstraint_H
119 class velocityDampingConstraint
121 public fv::cellSetOption
140 TypeName(
"velocityDampingConstraint");
149 const word& modelType,
const word & name() const noexcept
Return const access to the source name.
A class for handling words, derived from Foam::string.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
TypeName("velocityDampingConstraint")
Runtime type information.
void addDamping(fvMatrix< vector > &eqn)
Constrain the given velocity fields by a given maximum value.
scalar UMax_
Maximum velocity magnitude.
Constrain given velocity fields to dampen velocity fluctuations exceeding a given value within a spec...
virtual void writeData(Ostream &os) const
Write data.
virtual ~velocityDampingConstraint()=default
Destructor.
virtual bool read(const dictionary &dict)
Read dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Mesh data needed to do the Finite Volume discretisation.
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
virtual void constrain(fvMatrix< vector > &eqn, const label fieldi)
Constrain vector matrix.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void operator=(const velocityDampingConstraint &)=delete
No copy assignment.
velocityDampingConstraint(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.