I was trying to extract the viscosity and density from the flowsheet using the code v=obj.GetPhase('perhydrodibenzyltoulene').Properties.viscosity where the value v is used in other equations but it shows the error as
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType' while executing the program
Can some one help in this regard
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry Sir, that was a mistake from my part that I wanted to write phase for the selected phase , even though i wrote the phase v=obj.GetPhase('Overall').Properties.viscosity . I am still getting the same error
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was trying to extract the viscosity and density from the flowsheet using the code v=obj.GetPhase('perhydrodibenzyltoulene').Properties.viscosity where the value v is used in other equations but it shows the error as
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType' while executing the program
Can some one help in this regard
"perhydrodibenzyltoulene" isn't a phase, nihal. You must pay more attention to what you're doing.
https://dwsim.inforside.com.br/api_help60/html/T_DWSIM_Thermodynamics_Streams_MaterialStream.htm
Sorry Sir, that was a mistake from my part that I wanted to write phase for the selected phase , even though i wrote the phase v=obj.GetPhase('Overall').Properties.viscosity . I am still getting the same error