Loading...
Searching...
No Matches
perfectFluid< Specie > Class Template Reference

Perfect gas equation of state. More...

#include <perfectFluid.H>

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

Public Member Functions

 perfectFluid (const Specie &sp, const scalar R, const scalar rho0)
 Construct from components.
 perfectFluid (const dictionary &dict)
 Construct from dictionary.
 perfectFluid (const word &name, const perfectFluid &)
 Construct as named copy.
autoPtr< perfectFluidclone () const
 Construct and return a clone.
scalar R () const
 Return fluid constant [J/(kg K)].
scalar rho (scalar p, scalar T) const
 Return density [kg/m^3].
scalar H (const scalar p, const scalar T) const
 Return enthalpy departure [J/kg].
scalar Cp (scalar p, scalar T) const
 Return Cp departure [J/(kg K].
scalar E (const scalar p, const scalar T) const
 Return internal energy departure [J/kg].
scalar Cv (scalar p, scalar T) const
 Return Cv departure [J/(kg K].
scalar S (const scalar p, const scalar T) const
 Return entropy [J/(kg K)].
scalar psi (scalar p, scalar T) const
 Return compressibility rho/p [s^2/m^2].
scalar Z (scalar p, scalar T) const
 Return compression factor [].
scalar CpMCv (scalar p, scalar T) const
 Return (Cp - Cv) [J/(kg K].
void write (Ostream &os) const
 Write to Ostream.
void operator+= (const perfectFluid &)
void operator*= (const scalar)

Static Public Member Functions

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

Static Public Attributes

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

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

template<class Specie>
class Foam::perfectFluid< Specie >

Perfect gas equation of state.

Source files

Definition at line 84 of file perfectFluid.H.

Constructor & Destructor Documentation

◆ perfectFluid() [1/3]

template<class Specie>
perfectFluid ( const Specie & sp,
const scalar R,
const scalar rho0 )
inline

Construct from components.

Definition at line 27 of file perfectFluidI.H.

References R(), and rho0.

Referenced by operator*, operator+, operator+=(), operator<<, operator==, and perfectFluid().

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

◆ perfectFluid() [2/3]

template<class Specie>
perfectFluid ( const dictionary & dict)

Construct from dictionary.

Definition at line 27 of file perfectFluid.C.

References dict.

◆ perfectFluid() [3/3]

template<class Specie>
perfectFluid ( const word & name,
const perfectFluid< Specie > &  )
inline

Construct as named copy.

References dict, Foam::name(), and perfectFluid().

Here is the call graph for this function:

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 57 of file perfectFluidI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

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

Definition at line 65 of file perfectFluidI.H.

References dict, and Foam::New().

Here is the call graph for this function:

◆ typeName()

template<class Specie>
word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 139 of file perfectFluid.H.

◆ R()

template<class Specie>
Foam::scalar R ( ) const
inline

Return fluid constant [J/(kg K)].

Definition at line 77 of file perfectFluidI.H.

Referenced by CpMCv(), and perfectFluid().

Here is the caller graph for this function:

◆ rho()

template<class Specie>
Foam::scalar rho ( scalar p,
scalar T ) const
inline

Return density [kg/m^3].

Definition at line 84 of file perfectFluidI.H.

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

Referenced by CpMCv().

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

◆ H()

template<class Specie>
Foam::scalar H ( const scalar p,
const scalar T ) const
inline

Return enthalpy departure [J/kg].

Definition at line 91 of file perfectFluidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Cp()

template<class Specie>
Foam::scalar Cp ( scalar p,
scalar T ) const
inline

Return Cp departure [J/(kg K].

Definition at line 98 of file perfectFluidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ E()

template<class Specie>
Foam::scalar E ( const scalar p,
const scalar T ) const
inline

Return internal energy departure [J/kg].

Definition at line 105 of file perfectFluidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Cv()

template<class Specie>
Foam::scalar Cv ( scalar p,
scalar T ) const
inline

Return Cv departure [J/(kg K].

Definition at line 112 of file perfectFluidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ S()

template<class Specie>
Foam::scalar S ( const scalar p,
const scalar T ) const
inline

Return entropy [J/(kg K)].

Definition at line 119 of file perfectFluidI.H.

References Foam::log(), p, Foam::constant::thermodynamic::Pstd, R, and Foam::T().

Here is the call graph for this function:

◆ psi()

template<class Specie>
Foam::scalar psi ( scalar p,
scalar T ) const
inline

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

Definition at line 126 of file perfectFluidI.H.

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

Here is the call graph for this function:

◆ Z()

template<class Specie>
Foam::scalar Z ( scalar p,
scalar T ) const
inline

Return compression factor [].

Definition at line 133 of file perfectFluidI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ CpMCv()

template<class Specie>
Foam::scalar CpMCv ( scalar p,
scalar T ) const
inline

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

Definition at line 140 of file perfectFluidI.H.

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

Here is the call graph for this function:

◆ write()

template<class Specie>
void write ( Ostream & os) const

Write to Ostream.

Definition at line 38 of file perfectFluid.C.

References os().

Here is the call graph for this function:

◆ operator+=()

template<class Specie>
void operator+= ( const perfectFluid< Specie > & )
inline

Definition at line 152 of file perfectFluidI.H.

References Foam::mag(), perfectFluid(), and Y.

Here is the call graph for this function:

◆ operator*=()

template<class Specie>
void operator*= ( const scalar s)
inline

Definition at line 172 of file perfectFluidI.H.

References s().

Here is the call graph for this function:

◆ operator+

template<class Specie>
perfectFluid operator+ ( const perfectFluid< Specie > & ,
const perfectFluid< Specie > &  )
friend

References perfectFluid().

◆ operator*

template<class Specie>
perfectFluid operator* ( const scalar s,
const perfectFluid< Specie > &  )
friend

References perfectFluid(), and s().

◆ operator==

template<class Specie>
perfectFluid operator== ( const perfectFluid< Specie > & ,
const perfectFluid< Specie > &  )
friend

References perfectFluid().

◆ operator<<

template<class Specie>
Ostream & operator<< ( Ostream & ,
const perfectFluid< Specie > &  )
friend

References perfectFluid().

Member Data Documentation

◆ incompressible

template<class Specie>
const bool incompressible = false
static

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

Definition at line 150 of file perfectFluid.H.

◆ isochoric

template<class Specie>
const bool isochoric = false
static

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

Definition at line 155 of file perfectFluid.H.


The documentation for this class was generated from the following files:
  • src/thermophysicalModels/specie/equationOfState/perfectFluid/perfectFluid.H
  • src/thermophysicalModels/specie/equationOfState/perfectFluid/perfectFluid.C
  • src/thermophysicalModels/specie/equationOfState/perfectFluid/perfectFluidI.H