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

reducedUnits Class Reference

Collaboration diagram for reducedUnits:

List of all members.


Public Member Functions

 reducedUnits ()
 Construct with no argument, uses default values:.
 reducedUnits (scalar refLength, scalar refTime, scalar refMass)
 Construct from components.
 reducedUnits (const IOdictionary &reducedUnitsDict)
 Construct from dictionary.
 ~reducedUnits ()
void setRefValues (scalar refLength, scalar refTime, scalar refMass)
void setRefValues (const IOdictionary &reducedUnitsDict)
scalar refLength () const
scalar refTime () const
scalar refMass () const
scalar refTemp () const
scalar refEnergy () const
scalar refForce () const
scalar refVelocity () const
scalar refVolume () const
scalar refPressure () const
scalar refMassDensity () const
scalar refNumberDensity () const

Static Public Attributes

static const scalar kb = 1.3806504e-23
 Static data someStaticData.

Friends

Ostream & operator<< (Ostream &, const reducedUnits &)

Detailed Description

Source files

Definition at line 46 of file reducedUnits.H.


Constructor & Destructor Documentation

reducedUnits (  ) 

Construct with no argument, uses default values:.

length = 1nm mass = 1.660538782e−27kg (unified atomic mass unit) temperature = 1K (therefore, energy = 1*kb)

Definition at line 65 of file reducedUnits.C.

reducedUnits ( scalar  refLength,
scalar  refTime,
scalar  refMass 
)

Construct from components.

Definition at line 76 of file reducedUnits.C.

reducedUnits ( const IOdictionary &  reducedUnitsDict  ) 

Construct from dictionary.

Definition at line 90 of file reducedUnits.C.

~reducedUnits (  ) 

Definition at line 102 of file reducedUnits.C.


Member Function Documentation

void setRefValues ( scalar  refLength,
scalar  refTime,
scalar  refMass 
)

Definition at line 109 of file reducedUnits.C.

void setRefValues ( const IOdictionary &  reducedUnitsDict  ) 

Definition at line 126 of file reducedUnits.C.

Foam::scalar refLength (  )  const [inline]

Definition at line 20 of file reducedUnitsI.H.

Foam::scalar refTime (  )  const [inline]

Definition at line 26 of file reducedUnitsI.H.

Foam::scalar refMass (  )  const [inline]

Definition at line 32 of file reducedUnitsI.H.

Foam::scalar refTemp (  )  const [inline]

Definition at line 38 of file reducedUnitsI.H.

Foam::scalar refEnergy (  )  const [inline]

Definition at line 44 of file reducedUnitsI.H.

Foam::scalar refForce (  )  const [inline]

Definition at line 50 of file reducedUnitsI.H.

Foam::scalar refVelocity (  )  const [inline]

Definition at line 56 of file reducedUnitsI.H.

Foam::scalar refVolume (  )  const [inline]

Definition at line 62 of file reducedUnitsI.H.

Foam::scalar refPressure (  )  const [inline]

Definition at line 68 of file reducedUnitsI.H.

Foam::scalar refMassDensity (  )  const [inline]

Definition at line 74 of file reducedUnitsI.H.

Foam::scalar refNumberDensity (  )  const [inline]

Definition at line 80 of file reducedUnitsI.H.


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &  ,
const reducedUnits &   
) [friend]


Member Data Documentation

const Foam::scalar kb = 1.3806504e-23 [static]

Static data someStaticData.

Definition at line 95 of file reducedUnits.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd