All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
adiabaticPerfectFluid< Specie > Class Template Reference

Adiabatic perfect fluid equation of state. More...

Inheritance diagram for adiabaticPerfectFluid< Specie >:
Collaboration diagram for adiabaticPerfectFluid< Specie >:

Public Member Functions

 adiabaticPerfectFluid (const Specie &sp, const scalar p0, const scalar rho0, const scalar gamma, const scalar B)
 Construct from components. More...
 
 adiabaticPerfectFluid (const dictionary &dict)
 Construct from dictionary. More...
 
 adiabaticPerfectFluid (const word &name, const adiabaticPerfectFluid &)
 Construct as named copy. More...
 
autoPtr< adiabaticPerfectFluidclone () const
 Construct and return a clone. More...
 
scalar rho (scalar p, scalar T) const
 Return density [kg/m^3]. More...
 
scalar H (const scalar p, const scalar T) const
 Return enthalpy contribution [J/kg]. More...
 
scalar Cp (scalar p, scalar T) const
 Return Cp contribution [J/(kg K]. More...
 
scalar E (const scalar p, const scalar T) const
 Return internal energy contribution [J/kg]. More...
 
scalar Cv (scalar p, scalar T) const
 Return Cv contribution [J/(kg K]. More...
 
scalar Sp (const scalar p, const scalar T) const
 Return entropy contribution to the integral of Cp/T [J/kg/K]. More...
 
scalar Sv (const scalar p, const scalar T) const
 Return entropy contribution to the integral of Cv/T [J/kg/K]. More...
 
scalar psi (scalar p, scalar T) const
 Return compressibility [s^2/m^2]. More...
 
scalar Z (scalar p, scalar T) const
 Return compression factor []. More...
 
scalar CpMCv (scalar p, scalar T) const
 Return (Cp - Cv) [J/(kg K]. More...
 
void write (Ostream &os) const
 Write to Ostream. More...
 
void operator+= (const adiabaticPerfectFluid &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static autoPtr< adiabaticPerfectFluidNew (const dictionary &dict)
 
static word typeName ()
 Return the instantiated type name. More...
 

Static Public Attributes

static const bool incompressible = false
 Is the equation of state is incompressible i.e. rho != f(p) More...
 
static const bool isochoric = false
 Is the equation of state is isochoric i.e. rho = const. More...
 

Friends

adiabaticPerfectFluid operator+ (const adiabaticPerfectFluid &, const adiabaticPerfectFluid &)
 
adiabaticPerfectFluid operator* (const scalar s, const adiabaticPerfectFluid &)
 
adiabaticPerfectFluid operator== (const adiabaticPerfectFluid &, const adiabaticPerfectFluid &)
 
Ostreamoperator (Ostream &, const adiabaticPerfectFluid &)
 

Detailed Description

template<class Specie>
class Foam::adiabaticPerfectFluid< Specie >

Adiabatic perfect fluid equation of state.

Coefficient mixing is very inaccurate and not supported, so this equation of state is not applicable to mixtures.

Source files

Definition at line 50 of file adiabaticPerfectFluid.H.

Constructor & Destructor Documentation

◆ adiabaticPerfectFluid() [1/3]

adiabaticPerfectFluid ( const Specie &  sp,
const scalar  p0,
const scalar  rho0,
const scalar  gamma,
const scalar  B 
)
inline

Construct from components.

Definition at line 32 of file adiabaticPerfectFluidI.H.

References Foam::name().

Here is the call graph for this function:

◆ adiabaticPerfectFluid() [2/3]

adiabaticPerfectFluid ( const dictionary dict)

Construct from dictionary.

Definition at line 33 of file adiabaticPerfectFluid.C.

◆ adiabaticPerfectFluid() [3/3]

adiabaticPerfectFluid ( const word name,
const adiabaticPerfectFluid< Specie > &   
)
inline

Construct as named copy.

Member Function Documentation

◆ clone()

Foam::autoPtr< Foam::adiabaticPerfectFluid< Specie > > clone ( ) const
inline

Construct and return a clone.

Definition at line 67 of file adiabaticPerfectFluidI.H.

References adiabaticPerfectFluid< Specie >::New().

Here is the call graph for this function:

◆ New()

Foam::autoPtr< Foam::adiabaticPerfectFluid< Specie > > New ( const dictionary dict)
inlinestatic

Definition at line 79 of file adiabaticPerfectFluidI.H.

References dict, and adiabaticPerfectFluid< Specie >::rho().

Referenced by adiabaticPerfectFluid< Specie >::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 142 of file adiabaticPerfectFluid.H.

◆ rho()

Foam::scalar rho ( scalar  p,
scalar  T 
) const
inline

Return density [kg/m^3].

Definition at line 94 of file adiabaticPerfectFluidI.H.

References adiabaticPerfectFluid< Specie >::H(), and Foam::pow().

Referenced by adiabaticPerfectFluid< Specie >::New().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ H()

Foam::scalar H ( const scalar  p,
const scalar  T 
) const
inline

Return enthalpy contribution [J/kg].

Definition at line 105 of file adiabaticPerfectFluidI.H.

References adiabaticPerfectFluid< Specie >::Cp().

Referenced by adiabaticPerfectFluid< Specie >::rho().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cp()

Foam::scalar Cp ( scalar  p,
scalar  T 
) const
inline

Return Cp contribution [J/(kg K].

Definition at line 117 of file adiabaticPerfectFluidI.H.

References adiabaticPerfectFluid< Specie >::E().

Referenced by adiabaticPerfectFluid< Specie >::H().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ E()

Foam::scalar E ( const scalar  p,
const scalar  T 
) const
inline

Return internal energy contribution [J/kg].

Definition at line 128 of file adiabaticPerfectFluidI.H.

References adiabaticPerfectFluid< Specie >::Cv().

Referenced by adiabaticPerfectFluid< Specie >::Cp().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cv()

Foam::scalar Cv ( scalar  p,
scalar  T 
) const
inline

Return Cv contribution [J/(kg K].

Definition at line 140 of file adiabaticPerfectFluidI.H.

References adiabaticPerfectFluid< Specie >::Sp().

Referenced by adiabaticPerfectFluid< Specie >::E().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Sp()

Foam::scalar Sp ( const scalar  p,
const scalar  T 
) const
inline

Return entropy contribution to the integral of Cp/T [J/kg/K].

Definition at line 151 of file adiabaticPerfectFluidI.H.

References n, Foam::pow(), Foam::constant::standard::Pstd, and adiabaticPerfectFluid< Specie >::Sv().

Referenced by adiabaticPerfectFluid< Specie >::Cv().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Sv()

Foam::scalar Sv ( const scalar  p,
const scalar  T 
) const
inline

Return entropy contribution to the integral of Cv/T [J/kg/K].

Definition at line 165 of file adiabaticPerfectFluidI.H.

References NotImplemented, and adiabaticPerfectFluid< Specie >::psi().

Referenced by adiabaticPerfectFluid< Specie >::Sp().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ psi()

Foam::scalar psi ( scalar  p,
scalar  T 
) const
inline

Return compressibility [s^2/m^2].

Definition at line 177 of file adiabaticPerfectFluidI.H.

References Foam::pow().

Referenced by adiabaticPerfectFluid< Specie >::Sv().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Z()

Foam::scalar Z ( scalar  p,
scalar  T 
) const
inline

Return compression factor [].

Definition at line 189 of file adiabaticPerfectFluidI.H.

References adiabaticPerfectFluid< Specie >::CpMCv().

Here is the call graph for this function:

◆ CpMCv()

Foam::scalar CpMCv ( scalar  p,
scalar  T 
) const
inline

Return (Cp - Cv) [J/(kg K].

Definition at line 197 of file adiabaticPerfectFluidI.H.

Referenced by adiabaticPerfectFluid< Specie >::Z().

Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 48 of file adiabaticPerfectFluid.C.

References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), Foam::vtkWriteOps::write(), and Ostream::write().

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const adiabaticPerfectFluid< Specie > &  )
inline

Definition at line 210 of file adiabaticPerfectFluidI.H.

References NotImplemented.

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 219 of file adiabaticPerfectFluidI.H.

References NotImplemented, and s().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

adiabaticPerfectFluid operator+ ( const adiabaticPerfectFluid< Specie > &  ,
const adiabaticPerfectFluid< Specie > &   
)
friend

◆ operator*

adiabaticPerfectFluid operator* ( const scalar  s,
const adiabaticPerfectFluid< Specie > &   
)
friend

◆ operator==

adiabaticPerfectFluid operator== ( const adiabaticPerfectFluid< Specie > &  ,
const adiabaticPerfectFluid< Specie > &   
)
friend

◆ operator

Ostream& operator ( Ostream ,
const adiabaticPerfectFluid< Specie > &   
)
friend

Member Data Documentation

◆ incompressible

const bool incompressible = false
static

Is the equation of state is incompressible i.e. rho != f(p)

Definition at line 151 of file adiabaticPerfectFluid.H.

◆ isochoric

const bool isochoric = false
static

Is the equation of state is isochoric i.e. rho = const.

Definition at line 154 of file adiabaticPerfectFluid.H.


The documentation for this class was generated from the following files: