ValveGetPropertyUnit 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
public override string GetPropertyUnit(
	string prop,
	IUnitsOfMeasure su = null
)

Parameters

prop  String
Property identifier string.
su  IUnitsOfMeasure  (Optional)
Unit system to use for the unit label; defaults to SI when Nothing.

Return Value

String
A string representing the unit (e.g., "bar", "K"), or an empty string for dimensionless properties.

See Also