36 const coeffList& coeffs
82 return 1/(C_[0] + (C_[1] + C_[2]*
T - C_[4]*
p)*
T - C_[3]*
p);
100template<
class Specie>
107template<
class Specie>
114template<
class Specie>
121template<
class Specie>
128template<
class Specie>
135template<
class Specie>
144template<
class Specie>
150 const scalar Y1 = this->
Y();
151 Specie::operator+=(
rp);
153 if (
mag(this->
Y()) > SMALL)
155 C_ = (Y1*C_ +
rp.Y()*
rp.C_)/this->
Y();
160template<
class Specie>
163 Specie::operator*=(
s);
169template<
class Specie>
170inline Foam::rPolynomial<Specie> Foam::operator+
178 static_cast<const Specie&
>(rp1)
179 +
static_cast<const Specie&
>(rp2)
182 if (
mag(sp.Y()) < SMALL)
194 (rp1.Y()*rp1.C_ + rp2.Y()*rp2.C_)/sp.Y()
199template<
class Specie>
200inline Foam::rPolynomial<Specie> Foam::operator*
208 s*
static_cast<const Specie&
>(
rp),
214template<
class Specie>
215inline Foam::rPolynomial<Specie> Foam::operator==
223 static_cast<const Specie&
>(rp1)
224 ==
static_cast<const Specie&
>(rp2)
230 (rp1.Y()*rp1.C_ - rp2.Y()*rp2.C_)/sp.Y()
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,...
Reciprocal polynomial equation of state for liquids and solids.
scalar Cv(scalar p, scalar T) const
Return Cv departure [J/(kg K].
scalar E(const scalar p, const scalar T) const
Return internal energy departure [J/kg].
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
scalar H(const scalar p, const scalar T) const
Return enthalpy departure [J/kg].
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
scalar S(const scalar p, const scalar T) const
Return entropy [J/kg/K].
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar Cp(scalar p, scalar T) const
Return Cp departure [J/(kg K].
static autoPtr< rPolynomial > New(const dictionary &dict)
rPolynomial(const Specie &sp, const coeffList &coeffs)
Construct from components.
scalar Z(scalar p, scalar T) const
Return compression factor [].
autoPtr< rPolynomial > clone() const
Construct and return a clone.
void operator*=(const scalar)
A class for handling words, derived from Foam::string.
PtrList< volScalarField > & Y
regionProperties rp(runTime)
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))
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)