All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
unitConversions.H File Reference

Useful unit conversions. More...

Include dependency graph for unitConversions.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.
 

Functions

scalar degToRad (const scalar deg)
 Convert degrees to radians. More...
 
scalar radToDeg (const scalar rad)
 Convert radians to degrees. More...
 
void addUnits (const word &name, const unitConversion &units)
 Add a unit conversion. More...
 
const HashTable< unitConversion > & units ()
 Get the table of unit conversions. More...
 

Variables

const unitConversion unitless
 
const unitConversion unitAny
 
const unitConversion unitNone
 
const unitConversion unitFraction
 
const unitConversion unitPercent
 
const unitConversion unitRadians
 
const unitConversion unitRotations
 
const unitConversion unitDegrees
 

Detailed Description

Useful unit conversions.

Original source file unitConversions.H

Source files

Definition in file unitConversions.H.