Go to the documentation of this file.
28 template<
class RhoFieldType>
34 const RhoFieldType&
rho,
39 forAll(cellZoneIDs_, zoneI)
49 const label j = this->fieldIndex(i);
51 mu[cellI]*dZones[j] + (
rho[cellI]*
mag(
U[cellI]))*fZones[j];
53 const scalar isoCd =
tr(Cd);
55 Udiag[cellI] += V[cellI]*isoCd;
56 Usource[cellI] -= V[cellI]*((Cd -
I*isoCd) &
U[cellI]);
62 template<
class RhoFieldType>
66 const RhoFieldType&
rho,
71 forAll(cellZoneIDs_, zoneI)
81 const label j = this->fieldIndex(i);
82 const tensor D = dZones[j];
85 AU[cellI] +=
mu[cellI]*D + (
rho[cellI]*
mag(
U[cellI]))*
F;
Templated 3D tensor derived from VectorSpace adding construction from 9 components,...
const dimensionedScalar mu
Atomic mass unit.
#define forAll(list, i)
Loop across all elements in list.
dimensioned< scalar > mag(const dimensioned< Type > &)
const dimensionedScalar F
Faraday constant: default SI units: [C/mol].
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
static const sphericalTensor I(1)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void apply(scalarField &Udiag, vectorField &Usource, const scalarField &V, const RhoFieldType &rho, const scalarField &mu, const vectorField &U) const
Apply.
dimensionedScalar tr(const dimensionedSphericalTensor &dt)