30 template<
class Type,
bool Implicit>
37 new LagrangianSubField<Type>
41 eqn_.name() +
":S" + (Implicit ?
'p' :
'u'),
42 eqn_.mesh().mesh().time().name(),
49 dimensioned<Type>(dims,
Zero)
57 template<
class Type,
bool Implicit>
67 template<
class Type,
bool Implicit>
79 template<
class Type,
bool Implicit>
91 template<
class Type,
bool Implicit>
103 template<
class Type,
bool Implicit>
104 template<
template<
class>
class PrimitiveField>
116 template<
class Type,
bool Implicit>
117 template<
template<
class>
class PrimitiveField>
125 S_(tS.isTmp() ? tS.ptr() : tS().
clone().ptr())
131 template<
class Type,
bool Implicit>
139 template<
class Type,
bool Implicit>
146 template<
class Type,
bool Implicit>
154 template<
class Type,
bool Implicit>
157 if (
valid()) S_() = -S_();
163 template<
class Type,
bool Implicit>
164 template<
template<
class>
class PrimitiveField>
170 initialise(
S.dimensions());
175 template<
class Type,
bool Implicit>
176 template<
template<
class>
class PrimitiveField>
187 template<
class Type,
bool Implicit>
193 if (!coeff.
valid())
return;
198 template<
class Type,
bool Implicit>
204 initialise(dt.dimensions());
209 template<
class Type,
bool Implicit>
214 template<
class Type,
bool Implicit>
215 template<
template<
class>
class PrimitiveField>
221 initialise(
S.dimensions());
226 template<
class Type,
bool Implicit>
227 template<
template<
class>
class PrimitiveField>
238 template<
class Type,
bool Implicit>
244 if (!coeff.
valid())
return;
249 template<
class Type,
bool Implicit>
255 initialise(dt.dimensions());
260 template<
class Type,
bool Implicit>
265 template<
class Type,
bool Implicit>
266 template<
template<
class>
class PrimitiveField>
272 if (!
valid())
return;
277 template<
class Type,
bool Implicit>
278 template<
template<
class>
class PrimitiveField>
284 if (!
valid())
return;
290 template<
class Type,
bool Implicit>
296 if (!
valid())
return;
301 template<
class Type,
bool Implicit>
308 template<
class Type,
bool Implicit>
309 template<
template<
class>
class PrimitiveField>
315 if (!
valid())
return;
320 template<
class Type,
bool Implicit>
321 template<
template<
class>
class PrimitiveField>
327 if (!
valid())
return;
333 template<
class Type,
bool Implicit>
339 if (!
valid())
return;
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Class to store a coefficient of a Lagrangian equation.
bool valid() const
Determine whether this coefficient has values or not.
LagrangianCoeff(const LagrangianEqnBase &eqn)
Construct from a reference to the equation.
void operator-=(const LagrangianSubField< Type, PrimitiveField > &)
Subtraction assignment.
const LagrangianEqnBase & eqn() const
Access the equation.
void operator*=(const LagrangianSubField< scalar, PrimitiveField > &)
Multiply assignment.
void operator+=(const LagrangianSubField< Type, PrimitiveField > &)
Addition assignment.
void negate()
In-place negation.
const LagrangianSubField< Type > & S() const
Access the coefficient.
Generic dimensioned Type class.
Reference counter for various OpenFOAM components.
A class for managing temporary objects.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
bool valid(const PtrList< ModelType > &l)
tmp< fvMatrix< Type > > S(const Pair< tmp< volScalarField::Internal >> &, const VolField< Type > &)
void operator+=(fvMatrix< Type > &fvEqn, const CarrierEqn< Type > &cEqn)
Add to a finite-volume equation.
void operator-=(fvMatrix< Type > &fvEqn, const CarrierEqn< Type > &cEqn)
Subtract from a finite-volume equation.