85 return rho0_ + psi_*
p;
102template<
class Specie>
109template<
class Specie>
116template<
class Specie>
119 return -
log((rho0_ + psi_*
p)/(rho0_ + psi_*Pstd))/(
T*psi_);
123template<
class Specie>
130template<
class Specie>
137template<
class Specie>
146template<
class Specie>
152 scalar Y1 = this->
Y();
153 Specie::operator+=(pf);
155 if (
mag(this->
Y()) > SMALL)
158 const scalar Y2 = pf.Y()/this->
Y();
160 psi_ = Y1*psi_ + Y2*pf.psi_;
161 rho0_ = Y1*rho0_ + Y2*pf.rho0_;
166template<
class Specie>
169 Specie::operator*=(
s);
175template<
class Specie>
184 static_cast<const Specie&
>(pf1)
185 +
static_cast<const Specie&
>(pf2)
188 if (
mag(sp.Y()) < SMALL)
199 const scalar Y1 = pf1.Y()/sp.Y();
200 const scalar Y2 = pf2.Y()/sp.Y();
202 return linear<Specie>
205 Y1*pf1.psi_ + Y2*pf2.psi_,
206 Y1*pf1.rho0_ + Y2*pf2.rho0_
212template<
class Specie>
216 const linear<Specie>& pf
219 return linear<Specie>
221 s*
static_cast<const Specie&
>(pf),
228template<
class Specie>
231 const linear<Specie>& pf1,
232 const linear<Specie>& pf2
237 static_cast<const Specie&
>(pf1)
238 ==
static_cast<const Specie&
>(pf2)
241 const scalar Y1 = pf1.Y()/sp.Y();
242 const scalar Y2 = pf2.Y()/sp.Y();
244 return linear<Specie>
247 Y2*pf2.psi_ - Y1*pf1.psi_,
248 Y2*pf2.rho0_ - Y1*pf1.rho0_
compactSpatialTensor S
The joint motion sub-space (3-DoF)
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
tmp< GeometricField< Type, faPatchField, areaMesh > > H() const
Return the H operation source.
Central-differencing interpolation scheme class.
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
autoPtr< linear > clone() const
Construct and return a clone.
void operator*=(const scalar)
A class for handling words, derived from Foam::string.
PtrList< volScalarField > & Y
const volScalarField & psi
const volScalarField & Cv
const volScalarField & Cp
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dimensionedScalar log(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.