30 template<
class Specie>
48 template<
class Specie>
63 template<
class Specie>
76 template<
class Specie>
83 return rho0_*
pow((
p + B_)/(p0_ + B_), 1.0/gamma_);
87 template<
class Specie>
99 template<
class Specie>
110 template<
class Specie>
122 template<
class Specie>
133 template<
class Specie>
140 scalar
n = 1 - 1.0/gamma_;
147 template<
class Specie>
159 template<
class Specie>
167 (rho0_/(gamma_*(p0_ + B_)))
168 *
pow((
p + B_)/(p0_ + B_), 1.0/gamma_ - 1.0);
172 template<
class Specie>
183 template<
class Specie>
194 template<
class Specie>
207 template<
class Specie>
217 template<
class Specie>
220 Specie::operator*=(
s);
226 template<
class Specie>
238 template<
class Specie>
242 const adiabaticPerfectFluid<Specie>& pf
245 return adiabaticPerfectFluid<Specie>
247 s*
static_cast<const Specie&
>(pf),
256 template<
class Specie>
259 const adiabaticPerfectFluid<Specie>& pf1,
260 const adiabaticPerfectFluid<Specie>& pf2
static const Foam::dimensionedScalar B("B", Foam::dimless, 18.678)
Adiabatic perfect fluid equation of state for liquids:
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
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].
scalar alphav(const scalar p, const scalar T) const
Return volumetric coefficient of thermal expansion [1/T].
scalar e(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar h(const scalar p, const scalar T) const
Return enthalpy contribution [J/kg].
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
autoPtr< adiabaticPerfectFluid > clone() const
Construct and return a clone.
scalar sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [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 Z(scalar p, scalar T) const
Return compression factor [].
void operator*=(const scalar)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const dimensionedScalar Pstd
Standard pressure.
word name(const bool)
Return a word representation of a bool.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
static scalar R(const scalar a, const scalar x)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
#define noCoefficientMixing(Type)