Is there any code to extract the density and viscosity of the compound using the command rho1=Flowsheet.SelectedCompounds['hydrogen'].density
It was showing the error as it is not attributed to constant property
try tiping Hydrogen instead of hydrogen
Vapor phase density is not available for single compounds. DWSIM calculates the density for the entire vapor phase mixture.
To get the density of the whole vapor phase, use
vapdens = stream.PropertyPackage.AUX_VAPDENS(T_in_K, P_in_Pa) # density in kg/m3
Sir, can you please share some source code regarding extracting and viscosity for the overall compound
Overall compound or overall phase?
visc = stream.GetPhase("Vapor").Properties.viscosity # Pa.s dens = stream.GetPhase("Vapor").Properties.density # kg/m3
Sir, i want from the overall compound
Is there any code to extract the density and viscosity of the compound using the command rho1=Flowsheet.SelectedCompounds['hydrogen'].density
It was showing the error as it is not attributed to constant property
try tiping Hydrogen instead of hydrogen
Vapor phase density is not available for single compounds. DWSIM calculates the density for the entire vapor phase mixture.
To get the density of the whole vapor phase, use
vapdens = stream.PropertyPackage.AUX_VAPDENS(T_in_K, P_in_Pa) # density in kg/m3
Sir, can you please share some source code regarding extracting and viscosity for the overall compound
Overall compound or overall phase?
Sir, i want from the overall compound