Go to the documentation of this file.
41 velocityDampingConstraint,
66 scalar magU =
mag(
U[cellI]);
82 <<
"%) of cells" <<
endl;
91 const word& modelType,
127 if (coeffs_.found(
"UNames"))
129 coeffs_.lookup(
"UNames") >> fieldNames_;
131 else if (coeffs_.found(
"UName"))
133 word UName(coeffs_.lookup(
"UName"));
141 applied_.setSize(fieldNames_.size(),
false);
A class for handling words, derived from string.
Cell-set options abtract base class. Provides a base set of controls, e.g.
#define forAll(list, i)
Loop across all elements in list.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
bool read(const char *, int32_t &)
label nTotalCells() const
Return total number of cells in decomposed mesh.
velocityDampingConstraint(const velocityDampingConstraint &)
Disallow default bitwise copy construct.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word name_
Source name.
dimensioned< scalar > mag(const dimensioned< Type > &)
const GeometricField< Type, fvPatchField, volMesh > & psi() const
const fvMesh & mesh_
Reference to the mesh database.
void addDamping(fvMatrix< vector > &eqn)
List< word > wordList
A List of words.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
virtual void writeData(Ostream &) const
Write data.
scalar UMax_
Maximum velocity.
virtual Ostream & write(const token &)=0
Write next token to stream.
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 any number of values (e....
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
Ostream & indent(Ostream &os)
Indent stream.
defineTypeNameAndDebug(option, 0)
addToRunTimeSelectionTable(option, fixedTemperatureConstraint, dictionary)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
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,...
const globalMeshData & globalData() const
Return parallel info.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
dimensionedScalar cbrt(const dimensionedScalar &ds)
Generic GeometricField class.
word name(const complex &)
Return a string representation of a complex.