Class to store the coefficients of a term in a carrier equation. More...


Public Member Functions | |
| CarrierEqn (const VolField< Type > &psi) | |
| Construct for a field. More... | |
| CarrierEqn (const word &psiName, const fvMesh &mesh) | |
| Construct from a field name and a reference to the mesh. The field. More... | |
| CarrierEqn (const CarrierEqn< Type > &eqn) | |
| Copy construct. More... | |
| CarrierEqn (const tmp< CarrierEqn< Type >> &tEqn) | |
| Construct from tmp. More... | |
| void | clear () |
| Clear the coefficient values. More... | |
| tmp< VolInternalField< Type > > | residual (const dimensionSet &dims) const |
| Return the residual. More... | |
| void | operator+= (const LagrangianEqn< Type > &lEqn) |
| Addition assignment. More... | |
| void | operator+= (const tmp< LagrangianEqn< Type >> &tlEqn) |
| Addition assignment. More... | |
| void | operator-= (const LagrangianEqn< Type > &lEqn) |
| Subtraction assignment. More... | |
| void | operator-= (const tmp< LagrangianEqn< Type >> &tlEqn) |
| Subtraction assignment. More... | |
| template<class PsiFieldType > | |
| Foam::tmp< Foam::VolInternalField< Type > > | residual (const dimensionSet &dims, const word &psiName, const PsiFieldType &psi) const |
Public Member Functions inherited from refCount | |
| int | count () const |
| Return the current reference count. More... | |
| bool | unique () const |
| Return true if the reference count is zero. More... | |
| void | operator++ () |
| Increment the reference count. More... | |
| void | operator++ (int) |
| Increment the reference count. More... | |
| void | operator-- () |
| Decrement the reference count. More... | |
| void | operator-- (int) |
| Decrement the reference count. More... | |
| void | operator= (const refCount &)=delete |
| Disallow bitwise assignment. More... | |
Public Member Functions inherited from CarrierEqnBase | |
| const word & | name () const |
| Return the equation name. More... | |
| const fvMesh & | mesh () const |
| Return the mesh. More... | |
Public Attributes | |
| CarrierCoeff< Type, false > | Su |
| Explicit coefficient. More... | |
| CarrierCoeff< scalar, true > | Sp |
| Implicit coefficient. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from refCount | |
| refCount () | |
| Construct null initialising count to 0. More... | |
| refCount (const refCount &)=delete | |
| Disallow copy. More... | |
Protected Member Functions inherited from CarrierEqnBase | |
| CarrierEqnBase (const word &name, const fvMesh &mesh) | |
| Construct from components. More... | |
Protected Attributes inherited from CarrierEqnBase | |
| word | name_ |
| Symbolic name of the equation or equation term. More... | |
| const fvMesh & | mesh_ |
| Reference to the mesh. More... | |
Class to store the coefficients of a term in a carrier equation.
Definition at line 51 of file CarrierEqn.H.
| CarrierEqn | ( | const VolField< Type > & | psi | ) |
Construct for a field.
Definition at line 80 of file CarrierEqn.C.
| CarrierEqn | ( | const word & | psiName, |
| const fvMesh & | mesh | ||
| ) |
Construct from a field name and a reference to the mesh. The field.
reference is not set and the field is assumed to be (dimensionless) unity. This is for volume sources which are expressed per unit volume and therefore have no associated field.
Definition at line 98 of file CarrierEqn.C.
| CarrierEqn | ( | const CarrierEqn< Type > & | eqn | ) |
Copy construct.
Definition at line 120 of file CarrierEqn.C.
| CarrierEqn | ( | const tmp< CarrierEqn< Type >> & | tEqn | ) |
Construct from tmp.
Definition at line 130 of file CarrierEqn.C.
| void clear |
Clear the coefficient values.
Definition at line 154 of file CarrierEqn.C.
References Foam::fvc::Sp(), and Foam::fvc::Su().

| Foam::tmp< Foam::VolInternalField< Type > > residual | ( | const dimensionSet & | dims | ) | const |
Return the residual.
Definition at line 163 of file CarrierEqn.C.
References Foam::notNull().

| void operator+= | ( | const LagrangianEqn< Type > & | lEqn | ) |
Addition assignment.
Definition at line 178 of file CarrierEqn.C.
References LagrangianEqn< Type >::allDiagonalSp(), LagrangianEqn< Type >::allDiagonalSu(), Foam::fvc::Sp(), and Foam::fvc::Su().

| void operator+= | ( | const tmp< LagrangianEqn< Type >> & | tlEqn | ) |
Addition assignment.
Definition at line 186 of file CarrierEqn.C.
References Foam::operator+=().

| void operator-= | ( | const LagrangianEqn< Type > & | lEqn | ) |
Subtraction assignment.
Definition at line 194 of file CarrierEqn.C.
References LagrangianEqn< Type >::allDiagonalSp(), LagrangianEqn< Type >::allDiagonalSu(), Foam::fvc::Sp(), and Foam::fvc::Su().

| void operator-= | ( | const tmp< LagrangianEqn< Type >> & | tlEqn | ) |
Subtraction assignment.
Definition at line 202 of file CarrierEqn.C.
References Foam::operator-=().

| Foam::tmp<Foam::VolInternalField<Type> > residual | ( | const dimensionSet & | dims, |
| const word & | psiName, | ||
| const PsiFieldType & | psi | ||
| ) | const |
Definition at line 34 of file CarrierEqn.C.
References Foam::dimTime, Foam::dimVolume, Foam::New(), psi, Foam::fvc::Sp(), and Foam::fvc::Su().

| CarrierCoeff<Type, false> Su |
Explicit coefficient.
Definition at line 79 of file CarrierEqn.H.
Referenced by Foam::operator+=(), and Foam::operator-=().
| CarrierCoeff<scalar, true> Sp |
Implicit coefficient.
Definition at line 82 of file CarrierEqn.H.
Referenced by Foam::operator+=(), and Foam::operator-=().