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

RhoConst (rho = const) of state. More...

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

Public Member Functions

 rhoConst (const Specie &sp, const scalar rho)
 Construct from components. More...
 
 rhoConst (const dictionary &dict)
 Construct from dictionary. More...
 
 rhoConst (const word &name, const rhoConst &)
 Construct as named copy. More...
 
autoPtr< rhoConstclone () 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 rhoConst &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static word typeName ()
 Return the instantiated type name. More...
 

Static Public Attributes

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

Friends

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

Detailed Description

template<class Specie>
class Foam::rhoConst< Specie >

RhoConst (rho = const) of state.

Source files

Definition at line 47 of file rhoConst.H.

Constructor & Destructor Documentation

◆ rhoConst() [1/3]

rhoConst ( const Specie &  sp,
const scalar  rho 
)
inline

Construct from components.

Definition at line 32 of file rhoConstI.H.

References Foam::name().

Here is the call graph for this function:

◆ rhoConst() [2/3]

rhoConst ( const dictionary dict)

Construct from dictionary.

Definition at line 32 of file rhoConst.C.

◆ rhoConst() [3/3]

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

Construct as named copy.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 58 of file rhoConstI.H.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 113 of file rhoConst.H.

◆ rho()

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

Return density [kg/m^3].

Definition at line 67 of file rhoConstI.H.

◆ H()

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

Return enthalpy contribution [J/kg].

Definition at line 74 of file rhoConstI.H.

◆ Cp()

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

Return Cp contribution [J/(kg K].

Definition at line 81 of file rhoConstI.H.

◆ E()

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

Return internal energy contribution [J/kg].

Definition at line 88 of file rhoConstI.H.

◆ Cv()

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

Return Cv contribution [J/(kg K].

Definition at line 95 of file rhoConstI.H.

◆ 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 102 of file rhoConstI.H.

◆ 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 109 of file rhoConstI.H.

◆ psi()

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

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

Definition at line 116 of file rhoConstI.H.

◆ Z()

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

Return compression factor [].

Definition at line 123 of file rhoConstI.H.

◆ CpMCv()

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

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

Definition at line 130 of file rhoConstI.H.

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 42 of file rhoConst.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 rhoConst< Specie > &  )
inline

Definition at line 139 of file rhoConstI.H.

References Foam::mag(), and Y.

Here is the call graph for this function:

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 152 of file rhoConstI.H.

References Foam::mag(), and s().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

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

◆ operator*

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

◆ operator==

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

◆ operator

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

Member Data Documentation

◆ incompressible

const bool incompressible = true
static

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

Definition at line 122 of file rhoConst.H.

◆ isochoric

const bool isochoric = true
static

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

Definition at line 125 of file rhoConst.H.


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