Loading...
Searching...
No Matches
reducedUnits Class Reference

#include <reducedUnits.H>

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 ()=default
 Destructor.
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

Ostreamoperator<< (Ostream &, const reducedUnits &)

Detailed Description

Constructor & Destructor Documentation

◆ reducedUnits() [1/3]

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 68 of file reducedUnits.C.

References e.

Referenced by operator<<.

Here is the caller graph for this function:

◆ reducedUnits() [2/3]

reducedUnits ( scalar refLength,
scalar refTime,
scalar refMass )

Construct from components.

Definition at line 78 of file reducedUnits.C.

References refLength(), refMass(), and refTime().

Here is the call graph for this function:

◆ reducedUnits() [3/3]

reducedUnits ( const IOdictionary & reducedUnitsDict)

Construct from dictionary.

Definition at line 93 of file reducedUnits.C.

References setRefValues().

Here is the call graph for this function:

◆ ~reducedUnits()

~reducedUnits ( )
default

Destructor.

References refLength(), refMass(), and refTime().

Here is the call graph for this function:

Member Function Documentation

◆ setRefValues() [1/2]

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

Definition at line 105 of file reducedUnits.C.

References refLength(), refMass(), and refTime().

Referenced by reducedUnits().

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

◆ setRefValues() [2/2]

void setRefValues ( const IOdictionary & reducedUnitsDict)

Definition at line 120 of file reducedUnits.C.

References dictionary::readEntry().

Here is the call graph for this function:

◆ refLength()

Foam::scalar refLength ( ) const
inline

Definition at line 23 of file reducedUnitsI.H.

Referenced by Foam::operator<<(), reducedUnits(), setRefValues(), and ~reducedUnits().

Here is the caller graph for this function:

◆ refTime()

Foam::scalar refTime ( ) const
inline

Definition at line 29 of file reducedUnitsI.H.

Referenced by Foam::operator<<(), reducedUnits(), setRefValues(), and ~reducedUnits().

Here is the caller graph for this function:

◆ refMass()

Foam::scalar refMass ( ) const
inline

Definition at line 35 of file reducedUnitsI.H.

Referenced by Foam::operator<<(), reducedUnits(), setRefValues(), and ~reducedUnits().

Here is the caller graph for this function:

◆ refTemp()

Foam::scalar refTemp ( ) const
inline

Definition at line 41 of file reducedUnitsI.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ refEnergy()

Foam::scalar refEnergy ( ) const
inline

Definition at line 47 of file reducedUnitsI.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ refForce()

Foam::scalar refForce ( ) const
inline

Definition at line 53 of file reducedUnitsI.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ refVelocity()

Foam::scalar refVelocity ( ) const
inline

Definition at line 59 of file reducedUnitsI.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ refVolume()

Foam::scalar refVolume ( ) const
inline

Definition at line 65 of file reducedUnitsI.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ refPressure()

Foam::scalar refPressure ( ) const
inline

Definition at line 71 of file reducedUnitsI.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ refMassDensity()

Foam::scalar refMassDensity ( ) const
inline

Definition at line 77 of file reducedUnitsI.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ refNumberDensity()

Foam::scalar refNumberDensity ( ) const
inline

Definition at line 83 of file reducedUnitsI.H.

Referenced by Foam::operator<<().

Here is the caller graph for this function:

◆ operator<<

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

References reducedUnits().

Member Data Documentation

◆ kb

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

Static data someStaticData.

Definition at line 98 of file reducedUnits.H.

Referenced by Foam::operator<<().


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