55 calcV(*elementLeft, *elementRight,
v_);
56 a_ =
calcA(*elementLeft, *elementRight);
77 const scalar epsTol = elementLeft.
tolerance();
83 bool outOfIndexI =
true;
89 outOfIndexI = (si == -1);
95 si = elementLeft.
nActive() + dif;
98 if (!reduction || (reduction && !(outOfIndexI)))
104 bool outOfIndexJ =
true;
111 outOfIndexJ = (sj==-1);
118 sj = elementLeft.
nActive() + dif;
122 if (!reduction ||(reduction && !(outOfIndexJ)))
127 v[i] += LT(
k, si)*LT(
k, sj)*(
phir[j] - phil[j]);
136 v[i] = (
phir[i] - phil[i])/
sqr(scaleFactor[i]*epsTol);
void calcV(const chemPointISAT &elementLeft, const chemPointISAT &elementRight, scalarField &v)
Compute vector v:
binaryNode * parent_
Parent node.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Leaf of the binary tree. The chemPoint stores the composition 'phi', the mapping of this composition ...
chemPointISAT * leafRight_
Element on the right.
surfaceScalarField phir(fvc::flux(mixture.Udm()))
binaryNode * nodeLeft_
Node which follows on the left.
const scalar & tolerance() const
label k
Boltzmann constant.
binaryNode()
Construct null.
const List< label > & completeToSimplifiedIndex() const
const scalarField & phi() const
const chemistryTabulationMethods::ISAT & table() const
Access to the ISAT table.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
binaryNode * nodeRight_
Node which follows on the right.
scalar calcA(const chemPointISAT &elementLeft, const chemPointISAT &elementRight)
Compute a the product v^T.phih, with phih = (phi0 + phiq)/2.
const scalarSquareMatrix & LT() const
const scalarField & scaleFactor() const
bool reduction() const
Return true if reduction is applied to the state variables.
label & completeSpaceSize()
chemPointISAT * leafLeft_
Element on the left.