FreeFOAM The Cross-Platform CFD Toolkit
specie Class Reference

Base class of the thermophysical property types. More...

#include <specie/specie.H>


Detailed Description

+ Inheritance diagram for specie:

List of all members.

Public Member Functions

 specie (const word &name, const scalar nMoles, const scalar molWeight)
 Construct from components with name.
 specie (const specie &)
 Construct as copy.
 specie (const word &name, const specie &)
 Construct as named copy.
 specie (Istream &)
 Construct from Istream.
scalar W () const
 Molecular weight [kg/kmol].
scalar nMoles () const
 No of moles of this species in mixture.
scalar R () const
 Gas constant [J/(kg K)].
void operator= (const specie &)
void operator+= (const specie &)
void operator-= (const specie &)
void operator*= (const scalar)

Static Public Attributes

static const scalar RR = dimensionedConstant("R", 8314.51)
 Universal gas constant [J/(kmol K)].
static const scalar Pstd = dimensionedConstant("Pstd", 1.0e5)
 Standard pressure [Pa].
static const scalar Tstd = dimensionedConstant("Tstd", 298.15)
 Standard temperature [K].

Friends

specie operator+ (const specie &, const specie &)
specie operator- (const specie &, const specie &)
specie operator* (const scalar, const specie &)
specie operator== (const specie &, const specie &)
Ostreamoperator<< (Ostream &, const specie &)

Constructor & Destructor Documentation

specie ( const word name,
const scalar  nMoles,
const scalar  molWeight 
)
inline

Construct from components with name.

Definition at line 37 of file specieI.H.

specie ( const specie st)
inline

Construct as copy.

Definition at line 65 of file specieI.H.

specie ( const word name,
const specie st 
)
inline

Construct as named copy.

Definition at line 74 of file specieI.H.

specie ( Istream is)

Construct from Istream.

Definition at line 44 of file specie.C.

References IOstream::check().


Member Function Documentation

scalar W ( ) const
inline

Molecular weight [kg/kmol].

Definition at line 85 of file specieI.H.

Referenced by icoPolynomial< PolySize >::icoPolynomial().

scalar nMoles ( ) const
inline

No of moles of this species in mixture.

Definition at line 91 of file specieI.H.

Referenced by Foam::operator+(), incompressible::operator+=(), Foam::operator-(), and incompressible::operator-=().

scalar R ( ) const
inline

Gas constant [J/(kg K)].

Definition at line 97 of file specieI.H.

References specie::RR.

Referenced by perfectGas::psi(), and perfectGas::rho().

void operator+= ( const specie st)
inline

Definition at line 113 of file specieI.H.

References Foam::max().

Referenced by incompressible::operator+=(), and icoPolynomial< PolySize >::operator+=().

void operator-= ( const specie st)
inline

Definition at line 125 of file specieI.H.

References Foam::mag().

Referenced by incompressible::operator-=(), and icoPolynomial< PolySize >::operator-=().

void operator*= ( const scalar  s)
inline

Friends And Related Function Documentation

specie operator+ ( const specie st1,
const specie st2 
)
friend

Definition at line 149 of file specieI.H.

specie operator- ( const specie st1,
const specie st2 
)
friend

Definition at line 162 of file specieI.H.

specie operator* ( const scalar  s,
const specie st 
)
friend

Definition at line 179 of file specieI.H.

specie operator== ( const specie st1,
const specie st2 
)
friend

Definition at line 189 of file specieI.H.

Ostream& operator<< ( Ostream ,
const specie  
)
friend

Member Data Documentation

const Foam::scalar RR = dimensionedConstant("R", 8314.51)
static

Universal gas constant [J/(kmol K)].

Universal gas constant (default in [J/(kmol K)])

Definition at line 85 of file specie.H.

Referenced by blobsSheetAtomization::atomizeParcel(), LISA::atomizeParcel(), reitzDiwakar::breakupParcel(), eConstThermo< equationOfState >::cp(), and specie::R().

const Foam::scalar Pstd = dimensionedConstant("Pstd", 1.0e5)
static

Standard pressure [Pa].

Standard pressure (default in [Pa])

Definition at line 88 of file specie.H.

const Foam::scalar Tstd = dimensionedConstant("Tstd", 298.15)
static

Standard temperature [K].

Standard temperature (default in [K])

Definition at line 91 of file specie.H.

Referenced by constTransport< thermo >::alpha(), polynomialTransport< Thermo, PolySize >::alpha(), sutherlandTransport< thermo >::alpha(), and janafThermo< equationOfState >::hc().


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