OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

specie Class Reference

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

Inheritance diagram for specie:
Collaboration 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 &)
Ostream & operator<< (Ostream &, const specie &)

Detailed Description

Base class of the thermophysical property types.

Source files

Definition at line 49 of file specie.H.


Constructor & Destructor Documentation

specie ( const word &  name,
const scalar  nMoles,
const scalar  molWeight 
) [inline]

Construct from components with name.

Definition at line 29 of file specieI.H.

References Foam::name().

Here is the call graph for this function:

specie ( const specie &  st  )  [inline]

Construct as copy.

Definition at line 57 of file specieI.H.

specie ( const word &  name,
const specie &  st 
) [inline]

Construct as named copy.

Definition at line 66 of file specieI.H.

specie ( Istream &  is  ) 

Construct from Istream.

Definition at line 36 of file specie.C.


Member Function Documentation

scalar W (  )  const [inline]

Molecular weight [kg/kmol].

Definition at line 77 of file specieI.H.

scalar nMoles (  )  const [inline]

No of moles of this species in mixture.

Definition at line 83 of file specieI.H.

scalar R (  )  const [inline]

Gas constant [J/(kg K)].

Definition at line 89 of file specieI.H.

Referenced by perfectGas::psi().

Here is the caller graph for this function:

void operator= ( const specie &  st  )  [inline]

Definition at line 97 of file specieI.H.

References specie::RR.

void operator+= ( const specie &  st  )  [inline]

Definition at line 105 of file specieI.H.

void operator-= ( const specie &  st  )  [inline]

Definition at line 117 of file specieI.H.

void operator*= ( const scalar  s  )  [inline]

Reimplemented in icoPolynomial< PolySize >, and perfectGas.

Definition at line 133 of file specieI.H.


Friends And Related Function Documentation

specie operator+ ( const specie &  st1,
const specie &  st2 
) [friend]

Definition at line 141 of file specieI.H.

specie operator- ( const specie &  st1,
const specie &  st2 
) [friend]

Definition at line 154 of file specieI.H.

specie operator* ( const scalar  s,
const specie &  st 
) [friend]

Definition at line 171 of file specieI.H.

specie operator== ( const specie &  st1,
const specie &  st2 
) [friend]

Definition at line 181 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 80 of file specie.H.

Referenced by eConstThermo< equationOfState >::h(), and specie::operator=().

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

Standard pressure [Pa].

Standard pressure (default in [Pa]).

Definition at line 83 of file specie.H.

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

Standard temperature [K].

Standard temperature (default in [K]).

Definition at line 86 of file specie.H.


The documentation for this class was generated from the following files:
  • src/thermophysicalModels/specie/specie/specie.H
  • src/thermophysicalModels/specie/specie/specie.C
  • src/thermophysicalModels/specie/specie/specieI.H
Copyright © 2000-2009 OpenCFD Ltd