66 template<
class PsiFieldType>
71 const PsiFieldType&
psi
129 #define CARRIER_EQN_SCALAR_OPERATOR(Op) \
131 template<class Type> \
132 tmp<CarrierEqn<Type>> operator Op \
134 const CarrierEqn<Type>& eqn, \
135 const dimensionedScalar& s \
138 template<class Type> \
139 tmp<CarrierEqn<Type>> operator Op \
141 const tmp<CarrierEqn<Type>>& tEqn, \
142 const dimensionedScalar& s \
145 #define CARRIER_SCALAR_EQN_OPERATOR(Op) \
147 template<class Type> \
148 tmp<CarrierEqn<Type>> operator Op \
150 const dimensionedScalar& s, \
151 const CarrierEqn<Type>& eqn \
154 template<class Type> \
155 tmp<CarrierEqn<Type>> operator Op \
157 const dimensionedScalar& s, \
158 const tmp<CarrierEqn<Type>>& tEqn \
168 #undef CARRIER_EQN_SCALAR_OPERATOR
169 #undef CARRIER_SCALAR_EQN_OPERATOR
#define CARRIER_EQN_SCALAR_OPERATOR(Op)
#define CARRIER_SCALAR_EQN_OPERATOR(Op)
Non-templated base class for carrier equations.
const fvMesh & mesh() const
Return the mesh.
Class to store the coefficients of a term in a carrier equation.
CarrierCoeff< scalar, true > Sp
Implicit coefficient.
void operator+=(const LagrangianEqn< Type > &lEqn)
Addition assignment.
void operator-=(const LagrangianEqn< Type > &lEqn)
Subtraction assignment.
CarrierEqn(const VolField< Type > &psi)
Construct for a field.
void clear()
Clear the coefficient values.
CarrierCoeff< Type, false > Su
Explicit coefficient.
Generic GeometricField class.
This class stores the coefficients of a Lagrangian equation, and facilitates solving that equation an...
Dimension set for the base types.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
Reference counter for various OpenFOAM components.
A class for managing temporary objects.
A class for handling words, derived from string.
const volScalarField & psi
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.