foamUnits.C File Reference

Print information about dimensions and unit conversions. More...

Go to the source code of this file.

Detailed Description

Print information about dimensions and unit conversions.

Original source file foamUnits.C

Usage
foamUnits foamUnits <unit> foamUnits <unit1> <unit2>

Options:

  • -all \n
    Print information for all available dimensions and units
  • -value \n
    Print the conversion factor value only (e.g., for use in a script)
    Note This utility can be run with no arguments, one argument or two arguments. If no arguments are given this utility will print the names of all dimensions and units. If one argument is given then this is taken to be the name of a dimension or a unit and information will be printed regarding its relationship to the corresponding fundamental dimension or unit. If two arguments are given then these must be units (not dimensions) and conversions between them will be printed.

Example usage: foamUnits foamUnits -all foamUnits specificHeatCapacity foamUnits "(mol/cm^3)^-0.5/s" "(kmol/m^3)^-0.5/s"

Definition in file foamUnits.C.