31 template<
class Type,
bool Implicit>
34 const LagrangianSubField<Type>& lField
41 new DimensionedField<Type, volMesh>
45 lField.mesh().mesh().name() +
":" + lField.name(),
52 dimensioned<Type>(lField.dimensions(),
Zero)
60 template<
class Type,
bool Implicit>
61 template<
class PsiType>
68 template<
class Type,
bool Implicit>
79 template<
class Type,
bool Implicit>
91 template<
class Type,
bool Implicit>
104 template<
class Type,
bool Implicit>
111 template<
class Type,
bool Implicit>
118 template<
class Type,
bool Implicit>
126 template<
class Type,
bool Implicit>
129 if (
valid()) S_() = -S_();
135 template<
class Type,
bool Implicit>
141 if (!lCoeff.valid())
return;
143 initialise(lCoeff.S());
149 template<
class Type,
bool Implicit>
155 if (!lCoeff.valid())
return;
157 initialise(lCoeff.S());
Functions for accumulating Lagrangian values into cell fields.
Class to store a coefficient of a carrier equation.
bool valid() const
Determine whether this coefficient has values or not.
CarrierCoeff(const VolField< PsiType > &psi)
Construct from a reference to the field.
void negate()
In-place negation.
void clear()
Clear the coefficient values.
const DimensionedField< Type, volMesh > & S() const
Access the field.
Generic GeometricField class.
Class to store a coefficient of a Lagrangian equation.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const volScalarField & psi
tmp< DimensionedField< Type, CellMesh > > accumulate(const DimensionedField< Type, LagrangianMesh, PrimitiveField > &lPsi, const word &name)
bool valid(const PtrList< ModelType > &l)