All parameters are accessible through the DWSIM property interface for automation:
# Get a property value (returns in SI units)value=mshx.GetPropertyValue("Heat Duty")# Wvalue=mshx.GetPropertyValue("MITA (Calculated)")# Kvalue=mshx.GetPropertyValue("UA (Calculated)")# W/K
# Set a property value (expects SI units)mshx.SetPropertyValue("MITA",10.0)# Kmshx.SetPropertyValue("UA",2000.0)# W/Kmshx.SetPropertyValue("Pressure Drop 1",5000)# Pamshx.SetPropertyValue("Outlet Temperature 1",350)# K
# Get the SI unit string for a propertyunit=mshx.GetPropertyUnit("Heat Duty")# "W"unit=mshx.GetPropertyUnit("MITA")# "K"unit=mshx.GetPropertyUnit("UA")# "W/K"
Unit Conversion
All property values are stored and returned in SI units. The DWSIM editor handles conversion to the user's selected unit system automatically. When using the automation API, always provide values in SI.