DWSIM provides the nice tool "Insert Snippet" which is smart and makes life pretty easy when you develop custom user model or do any kind of automation!
For example to get vapor phase kinetic viscosity one can simply insert the below snippet
# Get Stream Phase Property: kinematic_viscosity
obj = Flowsheet.GetFlowsheetSimulationObject('MSTR-02')
value = obj.GetPhase('Vapor').Properties.kinematic_viscosity
print value
Questions:
Is always the unit of these values SI?
What if we want to get these values in other system of units?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
DWSIM provides the nice tool "Insert Snippet" which is smart and makes life pretty easy when you develop custom user model or do any kind of automation!
For example to get vapor phase kinetic viscosity one can simply insert the below snippet
Questions:
DWSIM's internal units system is SI. You can use the built-in converter to convert from SI to another supported unit. See https://dwsim.inforside.com.br/api_help60/html/T_DWSIM_SharedClasses_SystemsOfUnits_Converter.htm
Supported units: https://github.com/DanWBR/dwsim6/blob/windows/DWSIM.SharedClasses/UnitsOfMeasure/SystemsOfUnits.vb#L176
Thank you Daniel!