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 return p/(
rho(p, T)*this->
R()*
T);
199 template<
class Specie>
210 template<
class Specie>
223 template<
class Specie>
224 inline void Foam::adiabaticPerfectFluid<Specie>::operator+=
233 template<
class Specie>
236 Specie::operator*=(s);
242 template<
class Specie>
254 template<
class Specie>
263 s*
static_cast<const Specie&
>(pf),
272 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.
const dimensionedScalar Pstd
Standard pressure.
#define noCoefficientMixing(Type)
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)
#define R(A, B, C, D, E, F, K, M)
Adiabatic perfect fluid equation of state for liquids:
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
scalar alphav(const scalar p, const scalar T) const
Return volumetric coefficient of thermal expansion [1/T].
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.