revision: v0.14
units Namespace Reference

Functions

Mdouble fUnit ()
 
Mdouble kUnit ()
 
Mdouble sigUnit ()
 
Mdouble rhoUnit ()
 
Mdouble velUnit ()
 
Mdouble accUnit ()
 

Variables

Mdouble mUnit = 1e-9
 
Mdouble lUnit = 1e-3
 
Mdouble tUnit = 1e-3
 
std::string name
 

Detailed Description

Units:: mass: 1 ug = 1e-9 kg length: 1 mm = 1e-3 m time: 1 ms = 1e-3 s Stress: 1 ug/(mm*ms^2) = 1 Pa Density: 1 ug/mm^3 = 1 kg/m^3

Function Documentation

◆ accUnit()

Mdouble units::accUnit ( )
inline
45 { return lUnit / pow(tUnit, 2); }

References lUnit, and tUnit.

Referenced by main().

◆ fUnit()

Mdouble units::fUnit ( )
inline
30 { return mUnit * lUnit / pow(tUnit, 2); }

References lUnit, mUnit, and tUnit.

Referenced by kUnit().

◆ kUnit()

Mdouble units::kUnit ( )
inline
33 { return fUnit() / lUnit; }

References fUnit(), and lUnit.

◆ rhoUnit()

Mdouble units::rhoUnit ( )
inline
39 { return mUnit / pow(lUnit, 3); }

References lUnit, and mUnit.

Referenced by MercuryProblem::setSpeciesProperties().

◆ sigUnit()

Mdouble units::sigUnit ( )
inline
36 { return mUnit / (lUnit * pow(tUnit, 2)); }

References lUnit, mUnit, and tUnit.

◆ velUnit()

Mdouble units::velUnit ( )
inline
42 { return lUnit / tUnit; }

References lUnit, and tUnit.

Variable Documentation

◆ lUnit

◆ mUnit

Mdouble units::mUnit = 1e-9

Referenced by fUnit(), rhoUnit(), and sigUnit().

◆ name

◆ tUnit

Mdouble units::tUnit = 1e-3

Referenced by accUnit(), fUnit(), main(), sigUnit(), and velUnit().

units::lUnit
Mdouble lUnit
Definition: MercuryProb.h:25
units::tUnit
Mdouble tUnit
Definition: MercuryProb.h:27
units::mUnit
Mdouble mUnit
Definition: MercuryProb.h:23
units::fUnit
Mdouble fUnit()
Definition: MercuryProb.h:30