106 #ifndef fv_velocityDampingConstraint_H 107 #define fv_velocityDampingConstraint_H 123 class velocityDampingConstraint
125 public fv::cellSetOption,
126 public functionObjects::writeFile
151 TypeName(
"velocityDampingConstraint");
160 const word& modelType,
void writeFileHeader(Ostream &os)
Write file header information.
virtual bool read(const dictionary &dict)
Read dictionary.
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
virtual ~velocityDampingConstraint()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
velocityDampingConstraint(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
A class for handling words, derived from Foam::string.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
const word & name() const noexcept
Return const access to the source name.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
virtual void constrain(fvMatrix< vector > &eqn, const label fieldi)
Constrain vector matrix.
Constrain given velocity fields to dampen velocity fluctuations exceeding a given value within a spec...
TypeName("velocityDampingConstraint")
Runtime type information.
void addDamping(fvMatrix< vector > &eqn)
Constrain the given velocity fields by a given maximum value.
Mesh data needed to do the Finite Volume discretisation.
void operator=(const velocityDampingConstraint &)=delete
No copy assignment.
scalar UMax_
Maximum velocity magnitude.
virtual void writeData(Ostream &os) const
Write data.