__init__([pint_registry])
|
Create a PyomoUnitsContainer instance. |
convert(src[, to_units])
|
This method returns an expression that contains the explicit conversion from one unit to another. |
convert_temp_C_to_K(value_in_C)
|
Convert a value in degrees Celsius to Kelvin Note that this method converts a numerical value only. |
convert_temp_F_to_R(value_in_F)
|
Convert a value in degrees Fahrenheit to Rankine. |
convert_temp_K_to_C(value_in_K)
|
Convert a value in Kelvin to degrees Celsius. |
convert_temp_R_to_F(value_in_R)
|
Convert a value in Rankine to degrees Fahrenheit. |
convert_value(num_value[, from_units, to_units])
|
This method performs explicit conversion of a numerical value from one unit to another, and returns the new value. |
get_units(expr)
|
Return the Pyomo units corresponding to this expression (also performs validation and will raise an exception if units are not consistent). |
load_definitions_from_file(definition_file)
|
Load new units definitions from a file |
load_definitions_from_strings(...)
|
Load new units definitions from a string |
set_pint_registry(pint_registry)
|
|