45 void Foam::fv::isotropicDamping::add
51 eqn -=
fvm::Sp(forceCoeff, eqn.psi());
52 eqn += forceCoeff*value_;
61 const word& modelType,
66 damping(name, modelType, dict, mesh),
67 value_(
"value",
dimVelocity, coeffs_.lookup(
"value"))
81 add(this->forceCoeff(), eqn);
92 add(rho*forceCoeff(), eqn);
117 coeffs_.lookup(value_.name())
defineTypeNameAndDebug(option, 0)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
addToRunTimeSelectionTable(option, fixedTemperatureConstraint, dictionary)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
DimensionedField< scalar, volMesh > Internal
Type of the internal field from which this GeometricField is derived.
Macros for easy insertion into run-time selection tables.
bool read(const char *, int32_t &)
virtual bool read(const dictionary &dict)
Read dictionary.
isotropicDamping(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
A class for handling words, derived from string.
virtual bool read(const dictionary &dict)
Read dictionary.
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.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Source term to momentum equation.
Base fvOption for damping functions.
Mesh data needed to do the Finite Volume discretisation.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
Calculate the matrix for implicit and explicit sources.
const dimensionSet dimVelocity