ValveGet Property Unit Method
Returns the display unit string for the specified property in the given unit system.
Definition
Namespace: DWSIM.UnitOperations.UnitOperations
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
A string representing the unit (e.g., "bar", "K"), 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
- Property identifier string.
- su IUnitsOfMeasure (Optional)
- Unit system to use for the unit label; defaults to SI when Nothing.
Return Value
StringA string representing the unit (e.g., "bar", "K"), or an empty string for dimensionless properties.