units.H File Reference

Useful unit conversions. More...

Include dependency graph for units.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 
 Foam::units
 

Functions

const HashTable< unitSet > & table ()
 Get the table of unit conversions. More...
 
void add (const word &name, const unitSet &unit)
 Add a unit conversion. More...
 
const unitSet & lookup (const word &unitName)
 Lookup and return the named unit from the table. More...
 
void setLength (const unitSet &length)
 Set the length scale to the given unit set. More...
 
void setLength (const scalar length)
 Set the length scale to the given value. More...
 
scalar degToRad (const scalar deg)
 Convert degrees to radians. More...
 
scalar radToDeg (const scalar rad)
 Convert radians to degrees. More...
 

Variables

const unitSet unitless
 
const unitSet any
 
const unitSet none
 
const unitSet fraction
 
const unitSet percent
 
const unitSet radians
 
const unitSet rotations
 
const unitSet degrees
 
const unitSet & length = Foam::units::length_
 

Detailed Description

Useful unit conversions.

Original source file units.H

Source files

Definition in file units.H.