30 template<
class Specie>
50 template<
class Specie>
65 template<
class Specie>
76 template<
class Specie>
92 template<
class Specie>
99 return rho0_*
pow((p + B_)/(p0_ + B_), 1.0/gamma_);
103 template<
class Specie>
115 template<
class Specie>
126 template<
class Specie>
138 template<
class Specie>
149 template<
class Specie>
156 scalar
n = 1 - 1.0/gamma_;
158 -
pow(p0_ + B_, 1.0/gamma_)*(
pow((p + B_), n) -
pow((
Pstd + B_), n))
163 template<
class Specie>
175 template<
class Specie>
183 (rho0_/(gamma_*(p0_ + B_)))
184 *
pow((p + B_)/(p0_ + B_), 1.0/gamma_ - 1.0);
188 template<
class Specie>
195 template<
class Specie>
208 template<
class Specie>
209 inline void Foam::adiabaticPerfectFluid<Specie>::operator+=
218 template<
class Specie>
221 Specie::operator*=(s);
227 template<
class Specie>
239 template<
class Specie>
248 s*
static_cast<const Specie&
>(pf),
257 template<
class Specie>
scalar Z(scalar p, scalar T) const
Return compression factor [].
scalar E(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].
static autoPtr< adiabaticPerfectFluid > New(const dictionary &dict)
A list of keyword definitions, which are a keyword followed by any number of values (e...
adiabaticPerfectFluid(const Specie &sp, const scalar p0, const scalar rho0, const scalar gamma, const scalar B)
Construct from components.
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
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))
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
A class for handling words, derived from string.
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar Sp(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K].
scalar H(const scalar p, const scalar T) const
Return enthalpy contribution [J/kg].
autoPtr< adiabaticPerfectFluid > clone() const
Construct and return a clone.
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
scalar Sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [J/kg/K].
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Adiabatic perfect fluid equation of state.
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
const dimensionedScalar & Pstd
Standard pressure.
void operator*=(const scalar)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.