45 void Foam::fv::isotropicDamping::readCoeffs()
52 coeffs().lookup(value_.name())
57 void Foam::fv::isotropicDamping::add
63 eqn -=
fvm::Sp(forceCoeff, eqn.psi());
64 eqn += forceCoeff*value_;
73 const word& modelType,
78 damping(name, modelType, dict, mesh),
93 add(this->forceCoeff(), eqn);
101 const word& fieldName
104 add(rho*forceCoeff(), eqn);
113 const word& fieldName
virtual void addSup(fvMatrix< vector > &eqn, const word &fieldName) const
Source term to momentum equation.
defineTypeNameAndDebug(fixedTemperatureConstraint, 0)
A list of keyword definitions, which are a keyword followed by any number of values (e...
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
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.
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)
const dimensionSet dimVelocity
addToRunTimeSelectionTable(fvConstraint, fixedTemperatureConstraint, dictionary)
Base fvModel for damping functions.
Mesh data needed to do the Finite Volume discretisation.
static Vector< scalar > uniform(const scalar &s)
Return a VectorSpace with all elements = s.
Calculate the matrix for implicit and explicit sources.