PumpGet Property Unit Method
Returns the display unit string for the specified property.
Definition
Namespace: DWSIM.UnitOperations.UnitOperations
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
A unit string such as "Pa", "kW", or an empty string for dimensionless properties.
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
C#
public override string GetPropertyUnit(
string prop,
IUnitsOfMeasure su = null
)VB
Public Overrides Function GetPropertyUnit (
prop As String,
Optional su As IUnitsOfMeasure = Nothing
) As StringParameters
- prop String
- The property identifier string (e.g. "PROP_PU_0").
- su IUnitsOfMeasure (Optional)
- The unit system to retrieve units from. Defaults to SI if Nothing.
Return Value
StringA unit string such as "Pa", "kW", or an empty string for dimensionless properties.