31 template<
class Type,
bool Implicit>
34 const LagrangianSubField<Type>& lField
41 new DimensionedField<Type, fvMesh>
45 lField.mesh().mesh().name()
47 +
":S" + (Implicit ?
'p' :
'u'),
48 eqn_.mesh().time().name(),
54 dimensioned<Type>(lField.dimensions(),
Zero)
62 template<
class Type,
bool Implicit>
69 template<
class Type,
bool Implicit>
80 template<
class Type,
bool Implicit>
92 template<
class Type,
bool Implicit>
105 template<
class Type,
bool Implicit>
112 template<
class Type,
bool Implicit>
119 template<
class Type,
bool Implicit>
127 template<
class Type,
bool Implicit>
130 if (
valid()) S_() = -S_();
136 template<
class Type,
bool Implicit>
142 if (!lCoeff.valid())
return;
144 initialise(lCoeff.S());
150 template<
class Type,
bool Implicit>
156 if (!lCoeff.valid())
return;
158 initialise(lCoeff.S());
164 template<
class Type,
bool Implicit>
174 template<
class Type,
bool Implicit>
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 CarrierEqnBase &eqn)
Construct from a reference to the equation.
const DimensionedField< Type, fvMesh > & S() const
Access the field.
void negate()
In-place negation.
void clear()
Clear the coefficient values.
Non-templated base class for carrier equations.
Class to store a coefficient of a Lagrangian equation.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), lagrangian::cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
tmp< DimensionedField< Type, CellMesh > > accumulate(const DimensionedField< Type, LagrangianMesh, PrimitiveField > &lPsi, const word &name)
Accumulate a Lagrangian field into a finite volume field.
bool valid(const PtrList< ModelType > &l)