Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | Friends
Boussinesq Class Reference

Incompressible gas equation of state using the Boussinesq approximation for the density as a function of temperature only: More...

Public Member Functions

 Boussinesq (const Specie &sp, const scalar rho0, const scalar T0, const scalar beta)
 Construct from components. More...
 
 Boussinesq (const Boussinesq &sp)
 Construct from Boussinesq. More...
 
 Boussinesq (Istream &)
 Construct from Istream. More...
 
 Boussinesq (const dictionary &dict)
 Construct from dictionary. More...
 
 Boussinesq (const word &name, const Boussinesq &)
 Construct as named copy. More...
 
autoPtr< Boussinesqclone () 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...
 
Boussinesqoperator= (const Boussinesq &)
 
void operator+= (const Boussinesq &)
 
void operator-= (const Boussinesq &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static autoPtr< BoussinesqNew (Istream &is)
 
static autoPtr< BoussinesqNew (const dictionary &dict)
 
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 = false
 Is the equation of state is isochoric i.e. rho = const. More...
 

Private Attributes

scalar rho0_
 Reference density. More...
 
scalar T0_
 Reference temperature. More...
 
scalar beta_
 Thermal expansion coefficient. More...
 

Friends

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

Detailed Description

Incompressible gas equation of state using the Boussinesq approximation for the density as a function of temperature only:

    rho = rho0*(1 - beta*(T - T0))
Source files

Definition at line 52 of file Boussinesq.H.

Constructor & Destructor Documentation

◆ Boussinesq() [1/5]

Boussinesq ( const Specie &  sp,
const scalar  rho0,
const scalar  T0,
const scalar  beta 
)
inline

Construct from components.

Definition at line 33 of file BoussinesqI.H.

◆ Boussinesq() [2/5]

Boussinesq ( const Boussinesq sp)
inline

Construct from Boussinesq.

◆ Boussinesq() [3/5]

Construct from Istream.

◆ Boussinesq() [4/5]

Boussinesq ( const dictionary dict)

Construct from dictionary.

Definition at line 49 of file Boussinesq.C.

◆ Boussinesq() [5/5]

Boussinesq ( const word name,
const Boussinesq  
)
inline

Construct as named copy.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 73 of file BoussinesqI.H.

◆ New() [1/2]

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

Definition at line 85 of file BoussinesqI.H.

◆ New() [2/2]

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

Definition at line 99 of file BoussinesqI.H.

References dict.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 156 of file Boussinesq.H.

◆ rho()

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

Return density [kg/m^3].

Definition at line 114 of file BoussinesqI.H.

References Foam::T().

Here is the call graph for this function:

◆ s()

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

Return entropy [J/(kmol K)].

Definition at line 125 of file BoussinesqI.H.

◆ psi()

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

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

Definition at line 136 of file BoussinesqI.H.

◆ Z()

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

Return compression factor [].

Definition at line 147 of file BoussinesqI.H.

◆ cpMcv()

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

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

Definition at line 158 of file BoussinesqI.H.

References Foam::constant::thermodynamic::RR.

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 63 of file Boussinesq.C.

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

Here is the call graph for this function:

◆ operator=()

Foam::Boussinesq< Specie > & operator= ( const Boussinesq )
inline

Definition at line 172 of file BoussinesqI.H.

References Foam::constant::physicoChemical::b.

◆ operator+=()

void operator+= ( const Boussinesq )
inline

Definition at line 187 of file BoussinesqI.H.

References Foam::constant::physicoChemical::b.

◆ operator-=()

void operator-= ( const Boussinesq )
inline

Definition at line 204 of file BoussinesqI.H.

References Foam::constant::physicoChemical::b.

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 216 of file BoussinesqI.H.

References s().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

Boussinesq operator+ ( const Boussinesq ,
const Boussinesq  
)
friend

◆ operator-

Boussinesq operator- ( const Boussinesq ,
const Boussinesq  
)
friend

◆ operator*

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

◆ operator==

Boussinesq operator== ( const Boussinesq ,
const Boussinesq  
)
friend

◆ operator

Ostream& operator ( Ostream ,
const Boussinesq  
)
friend

Field Documentation

◆ rho0_

scalar rho0_
private

Reference density.

Definition at line 102 of file Boussinesq.H.

◆ T0_

scalar T0_
private

Reference temperature.

Definition at line 105 of file Boussinesq.H.

◆ beta_

scalar beta_
private

Thermal expansion coefficient.

Definition at line 108 of file Boussinesq.H.

◆ incompressible

const bool incompressible = true
static

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

Definition at line 167 of file Boussinesq.H.

◆ isochoric

const bool isochoric = false
static

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

Definition at line 170 of file Boussinesq.H.


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