30 template<
class Specie>
46 template<
class Specie>
59 template<
class Specie>
67 template<
class Specie>
80 template<
class Specie>
83 return rho0_ + psi_*
p;
87 template<
class Specie>
94 template<
class Specie>
101 template<
class Specie>
104 return -
log((rho0_ + psi_*p)/(rho0_ + psi_*
Pstd))/(T*psi_);
108 template<
class Specie>
115 template<
class Specie>
122 template<
class Specie>
131 template<
class Specie>
132 inline void Foam::linear<Specie>::operator+=
137 scalar
Y1 = this->
Y();
138 Specie::operator+=(pf);
140 if (
mag(this->
Y()) > SMALL)
143 const scalar
Y2 = pf.Y()/this->
Y();
145 psi_ = Y1*psi_ + Y2*pf.psi_;
146 rho0_ = Y1*rho0_ + Y2*pf.rho0_;
151 template<
class Specie>
154 Specie::operator*=(s);
160 template<
class Specie>
169 static_cast<const Specie&>(pf1)
170 + static_cast<const Specie&>(pf2)
173 if (
mag(sp.Y()) < SMALL)
184 const scalar
Y1 = pf1.Y()/sp.Y();
185 const scalar
Y2 = pf2.Y()/sp.Y();
190 Y1*pf1.psi_ + Y2*pf2.psi_,
191 Y1*pf1.rho0_ + Y2*pf2.rho0_
197 template<
class Specie>
206 s*
static_cast<const Specie&
>(pf),
213 template<
class Specie>
222 static_cast<const Specie&>(pf1)
223 == static_cast<const Specie&>(pf2)
226 const scalar
Y1 = pf1.Y()/sp.Y();
227 const scalar
Y2 = pf2.Y()/sp.Y();
232 Y2*pf2.psi_ - Y1*pf1.psi_,
233 Y2*pf2.rho0_ - Y1*pf1.rho0_
scalar H(const scalar p, const scalar T) const
Return enthalpy departure [J/kg].
PtrList< volScalarField > & Y1
dimensionedScalar log(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by any number of values (e...
static autoPtr< linear > New(const dictionary &dict)
Central-differencing interpolation scheme class.
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
scalar S(const scalar p, const scalar T) const
Return entropy [J/(kg K)].
PtrList< volScalarField > & Y2
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().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))
A class for handling words, derived from string.
void operator*=(const scalar)
const dimensionedScalar Pstd
Standard pressure.
linear(const fvMesh &mesh)
Construct from mesh.
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
PtrList< volScalarField > & Y
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
dimensioned< scalar > mag(const dimensioned< Type > &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
autoPtr< linear > clone() const
Construct and return a clone.
scalar Cp(scalar p, scalar T) const
Return Cp departure [J/(kg K].
scalar Z(scalar p, scalar T) const
Return compression factor [].