103#ifndef velocityDampingConstraint_H
104#define velocityDampingConstraint_H
119class velocityDampingConstraint
121 public fv::cellSetOption
140 TypeName(
"velocityDampingConstraint");
149 const word& modelType,
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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.
const word & name() const noexcept
Return const access to the source name.
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
Constrain given velocity fields to dampen velocity fluctuations exceeding a given value within a spec...
scalar UMax_
Maximum velocity magnitude.
virtual void writeData(Ostream &os) const
Write data.
velocityDampingConstraint(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
void addDamping(fvMatrix< vector > &eqn)
Constrain the given velocity fields by a given maximum value.
virtual bool read(const dictionary &dict)
Read dictionary.
TypeName("velocityDampingConstraint")
Runtime type information.
virtual void constrain(fvMatrix< vector > &eqn, const label fieldi)
Constrain vector matrix.
velocityDampingConstraint(const velocityDampingConstraint &)=delete
No copy construct.
virtual ~velocityDampingConstraint()=default
Destructor.
void operator=(const velocityDampingConstraint &)=delete
No copy assignment.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.