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");
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 > &)
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
bool read(const char *buf, int32_t &val)
Same as readInt32.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word name_
Source name.
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 (stdout output on master, null elsewhere)
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.
const GeometricField< Type, fvPatchField, volMesh > & psi(const label i=0) const
Return psi.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
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....
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
label nTotalCells() const noexcept
Return total number of cells in decomposed mesh.
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.