Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
perfectFluid Class Reference

Perfect gas equation of state. More...

Public Member Functions

 perfectFluid (const Specie &sp, const scalar R, const scalar rho0)
 
 perfectFluid (const dictionary &dict)
 
 perfectFluid (const word &name, const perfectFluid &)
 
autoPtr< perfectFluidclone () const
 
scalar R () const
 
scalar rho (scalar p, scalar T) const
 
scalar H (const scalar p, const scalar T) const
 
scalar Cp (scalar p, scalar T) const
 
scalar E (const scalar p, const scalar T) const
 
scalar Cv (scalar p, scalar T) const
 
scalar S (const scalar p, const scalar T) const
 
scalar psi (scalar p, scalar T) const
 
scalar Z (scalar p, scalar T) const
 
scalar CpMCv (scalar p, scalar T) const
 
void write (Ostream &os) const
 
void operator+= (const perfectFluid &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static autoPtr< perfectFluidNew (const dictionary &dict)
 
static word typeName ()
 

Static Public Attributes

static const bool incompressible = false
 
static const bool isochoric = false
 

Friends

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

Detailed Description

Perfect gas equation of state.

Source files

Definition at line 48 of file perfectFluid.H.

Constructor & Destructor Documentation

◆ perfectFluid() [1/3]

perfectFluid ( const Specie &  sp,
const scalar  R,
const scalar  rho0 
)
inline

Definition at line 28 of file perfectFluidI.H.

◆ perfectFluid() [2/3]

perfectFluid ( const dictionary dict)

Definition at line 27 of file perfectFluid.C.

◆ perfectFluid() [3/3]

perfectFluid ( const word name,
const perfectFluid  
)
inline

Member Function Documentation

◆ clone()

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

Definition at line 57 of file perfectFluidI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

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

Definition at line 66 of file perfectFluidI.H.

References dict, and Foam::New().

Here is the call graph for this function:

◆ typeName()

static word typeName ( )
inlinestatic

Definition at line 125 of file perfectFluid.H.

◆ R()

Foam::scalar R ( ) const
inline

Definition at line 77 of file perfectFluidI.H.

◆ rho()

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

Definition at line 84 of file perfectFluidI.H.

References p, R, and Foam::T().

Here is the call graph for this function:

◆ H()

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

Definition at line 91 of file perfectFluidI.H.

◆ Cp()

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

Definition at line 98 of file perfectFluidI.H.

◆ E()

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

Definition at line 105 of file perfectFluidI.H.

◆ Cv()

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

Definition at line 112 of file perfectFluidI.H.

◆ S()

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

Definition at line 119 of file perfectFluidI.H.

References Foam::log(), Foam::constant::standard::Pstd, and R.

Here is the call graph for this function:

◆ psi()

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

Definition at line 126 of file perfectFluidI.H.

References R, and Foam::T().

Here is the call graph for this function:

◆ Z()

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

Definition at line 133 of file perfectFluidI.H.

◆ CpMCv()

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

Definition at line 140 of file perfectFluidI.H.

References p, R, rho, Foam::sqr(), and Foam::T().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

Definition at line 38 of file perfectFluid.C.

References Ostream::beginBlock(), Ostream::endBlock(), os(), Foam::vtk::write(), and Ostream::writeEntry().

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const perfectFluid )
inline

Definition at line 153 of file perfectFluidI.H.

References Foam::mag(), and Y.

Here is the call graph for this function:

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 172 of file perfectFluidI.H.

References s.

Friends And Related Function Documentation

◆ operator+

perfectFluid operator+ ( const perfectFluid ,
const perfectFluid  
)
friend

◆ operator*

perfectFluid operator* ( const scalar  s,
const perfectFluid  
)
friend

◆ operator==

perfectFluid operator== ( const perfectFluid ,
const perfectFluid  
)
friend

◆ operator

Ostream& operator ( Ostream ,
const perfectFluid  
)
friend

Member Data Documentation

◆ incompressible

const bool incompressible = false
static

Definition at line 134 of file perfectFluid.H.

◆ isochoric

const bool isochoric = false
static

Definition at line 137 of file perfectFluid.H.


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