Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
adiabaticPerfectFluid< Specie > Class Template Reference

AdiabaticPerfect gas equation of state. More...

Inheritance diagram for adiabaticPerfectFluid< Specie >:
Inheritance graph
[legend]
Collaboration diagram for adiabaticPerfectFluid< Specie >:
Collaboration graph
[legend]

Public Member Functions

 adiabaticPerfectFluid (const Specie &sp, const scalar p0, const scalar rho0, const scalar gamma, const scalar B)
 Construct from components. More...
 
 adiabaticPerfectFluid (Istream &)
 Construct from Istream. 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 s (const scalar p, const scalar T) const
 Return entropy [J/(kmol K)]. More...
 
scalar psi (scalar p, scalar T) const
 Return compressibility rho/p [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/(kmol K]. More...
 
void write (Ostream &os) const
 Write to Ostream. More...
 
void operator+= (const adiabaticPerfectFluid &)
 
void operator-= (const adiabaticPerfectFluid &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static autoPtr< adiabaticPerfectFluidNew (Istream &is)
 
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 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 >

AdiabaticPerfect gas equation of state.

Source files

Definition at line 47 of file adiabaticPerfectFluid.H.

Constructor & Destructor Documentation

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().

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

Here is the call graph for this function:

Here is the caller graph for this function:

Construct from Istream.

Definition at line 32 of file adiabaticPerfectFluid.C.

References adiabaticPerfectFluid< Specie >::adiabaticPerfectFluid(), and IOstream::check().

Here is the call graph for this function:

adiabaticPerfectFluid ( const dictionary dict)

Construct from dictionary.

Definition at line 49 of file adiabaticPerfectFluid.C.

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

Construct as named copy.

Member Function Documentation

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

Construct and return a clone.

Definition at line 67 of file adiabaticPerfectFluidI.H.

Foam::autoPtr< Foam::adiabaticPerfectFluid< Specie > > New ( Istream is)
inlinestatic

Definition at line 78 of file adiabaticPerfectFluidI.H.

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

Definition at line 90 of file adiabaticPerfectFluidI.H.

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

Here is the call graph for this function:

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 152 of file adiabaticPerfectFluid.H.

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

Return density [kg/m^3].

Definition at line 105 of file adiabaticPerfectFluidI.H.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Return entropy [J/(kmol K)].

Definition at line 116 of file adiabaticPerfectFluidI.H.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 130 of file adiabaticPerfectFluidI.H.

References Foam::pow().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Return compression factor [].

Definition at line 142 of file adiabaticPerfectFluidI.H.

References adiabaticPerfectFluid< Specie >::cpMcv().

Here is the call graph for this function:

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

Return (cp - cv) [J/(kmol K].

Definition at line 150 of file adiabaticPerfectFluidI.H.

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

Here is the caller graph for this function:

void write ( Ostream os) const

Write to Ostream.

Definition at line 64 of file adiabaticPerfectFluid.C.

References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), token::SPACE, and write().

Here is the call graph for this function:

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

Definition at line 163 of file adiabaticPerfectFluidI.H.

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

Definition at line 183 of file adiabaticPerfectFluidI.H.

void operator*= ( const scalar  s)
inline

Definition at line 202 of file adiabaticPerfectFluidI.H.

References s().

Here is the call graph for this function:

Friends And Related Function Documentation

adiabaticPerfectFluid operator+ ( const adiabaticPerfectFluid< Specie > &  ,
const adiabaticPerfectFluid< Specie > &   
)
friend
adiabaticPerfectFluid operator- ( const adiabaticPerfectFluid< Specie > &  ,
const adiabaticPerfectFluid< Specie > &   
)
friend
adiabaticPerfectFluid operator* ( const scalar  s,
const adiabaticPerfectFluid< Specie > &   
)
friend
adiabaticPerfectFluid operator== ( const adiabaticPerfectFluid< Specie > &  ,
const adiabaticPerfectFluid< Specie > &   
)
friend
Ostream& operator ( Ostream ,
const adiabaticPerfectFluid< Specie > &   
)
friend

Member Data Documentation

const bool incompressible = false
static

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

Definition at line 161 of file adiabaticPerfectFluid.H.

const bool isochoric = false
static

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

Definition at line 164 of file adiabaticPerfectFluid.H.


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