Morfeus universal base type for all units
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=:), | private, | allocatable | :: | description | |||
integer, | private | :: | exponents_(num_fundamental) | = | dimensionless | Store the exponents for fundamental units |
|
integer, | private | :: | system | = | dimensionless | Default to SI units |
result is the units of the sum of two dimensional quantities; includes operand consistency check
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | lhs | |||
class(units), | intent(in) | :: | rhs |
result is the units of the ratio of two dimensional quantities; includes units-sysetm consistency check
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | numerator | |||
class(units), | intent(in) | :: | denominator |
result is enumerated value designating units system
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this |
result holds the exponents of each unit in the argument (most useful when the actual argument is an expression)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this |
Return true if units match kilograms (kg/m^3)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this |
Return true if units match joules (J)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this |
Return true if units match meters (m)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this |
Return true if units match kilograms (kg)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this |
Return true if units match Watts (W)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this |
Return true if units match Joules per kilogram (J/kg)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this |
Return true if units match Newtons per square meter (N/m^2)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this |
Return true if units match degrees Kelvin (K)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this |
Return true if units match seconds (s)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this |
Return true if units match meters/second^2 (m/s^2)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this |
result has units of the opearand raised to the power "exponent_"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this | |||
integer, | intent(in) | :: | exponent_ |
Return true if all units exponents are zero; false otherwise.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this |
Mark the object as user-defined
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(object), | intent(inout) | :: | this |
result is the units of the product of two dimensional quantities; includes units-system consistency check
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | lhs | |||
class(units), | intent(in) | :: | rhs |
result is the units of the operand raised to the power "exponent_"; includes check that operand is dimensionless
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | this | |||
real, | intent(in) | :: | exponent_ |
define units
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(inout) | :: | this | |||
integer, | intent(in) | :: | exponents(num_fundamental) | |||
integer, | intent(in) | :: | system |
result is the units of the difference of two dimensional quantities; includes operand consistency check
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(units), | intent(in) | :: | lhs | |||
class(units), | intent(in) | :: | rhs |
Return a boolean result indicating whether this object has been initialized since its declaration
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(object), | intent(in) | :: | this |