Go to the documentation of this file.
44 velocityDampingConstraint,
69 const scalar magU =
mag(
U[cellI]);
85 <<
"%) of cells" <<
endl;
94 const word& modelType,
119 dict_.writeEntry(name_, os);
127 coeffs_.readEntry(
"UMax", UMax_);
129 if (!coeffs_.readIfPresent(
"UNames", fieldNames_))
131 fieldNames_.resize(1);
132 fieldNames_.first() = coeffs_.getOrDefault<
word>(
"U",
"U");
135 applied_.setSize(fieldNames_.size(),
false);
A class for handling words, derived from Foam::string.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
bool read(const char *buf, int32_t &val)
Same as readInt32.
label nTotalCells() const
Return total number of cells in decomposed mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word name_
Source name.
const GeometricField< Type, fvPatchField, volMesh > & psi() const
const fvMesh & mesh_
Reference to the mesh database.
void addDamping(fvMatrix< vector > &eqn)
Constrain the given velocity fields by a given maximum value.
#define forAll(list, i)
Loop across all elements in list.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
scalar UMax_
Maximum velocity magnitude.
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
virtual void writeData(Ostream &os) const
Write data.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual bool read(const dictionary &dict)
Read dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
virtual void constrain(fvMatrix< vector > &eqn, const label fieldi)
Constrain vector matrix.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const globalMeshData & globalData() const
Return parallel info.
dimensionedScalar cbrt(const dimensionedScalar &ds)
velocityDampingConstraint(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.