33 template<
class AlphaFieldType,
class RhoFieldType>
34 void Foam::fv::sixDoFAccelerationSource::addForce
36 const AlphaFieldType&
alpha,
37 const RhoFieldType&
rho,
38 fvMatrix<vector>& eqn,
42 const Vector<vector> accelerations
44 accelerations_->value(
mesh().time().userTimeValue())
48 if (
mesh().foundObject<uniformDimensionedVectorField>(
"g"))
75 dimensionSet(0, 0, -1, 0, 0),
82 dimensionSet(0, 0, -2, 0, 0),
static const Foam::dimensionedScalar C("C", Foam::dimTemperature, 234.5)
const volVectorField & C() const
Return cell centres.
const surfaceVectorField & Cf() const
Return face centres.
const fvMesh & mesh() const
Return const access to the mesh database.
Type & lookupObjectRef(const word &name) const
Lookup and return the object reference of the given Type.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
UniformDimensionedField< scalar > uniformDimensionedScalarField
SurfaceField< scalar > surfaceScalarField
const dimensionSet dimAcceleration
UniformDimensionedField< vector > uniformDimensionedVectorField
VolField< scalar > volScalarField
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.