Hi All,
When i perform a PT flash on a pure water stream , all the values on the output material stream are incorrect.
However if i perform a PH flash for the same stream the values are correct. I have attached my code below where i have just transferred values from one stream to another.
The code was written inside the python scripting unit operation tool and water was the only component used
This is output value i get when i use the code above. By incorrect values i mean that the input and output values are not same.I used the same property values for both material streams and therfore should get identical values. I get identical values only when i use PH flash
When a single-compound stream is connected to the outlet of an unit operation, a PH flash is forced. In this case, you must specify the enthalpy of the outlet stream so it can be calculated correctly. This is because you can't specify a partial vaporization (if required) with T and P only.
Hi All,
When i perform a PT flash on a pure water stream , all the values on the output material stream are incorrect.
However if i perform a PH flash for the same stream the values are correct. I have attached my code below where i have just transferred values from one stream to another.
The code was written inside the python scripting unit operation tool and water was the only component used
Please define what are the correct and incorrect values...
This is output value i get when i use the code above. By incorrect values i mean that the input and output values are not same.I used the same property values for both material streams and therfore should get identical values. I get identical values only when i use PH flash
When a single-compound stream is connected to the outlet of an unit operation, a PH flash is forced. In this case, you must specify the enthalpy of the outlet stream so it can be calculated correctly. This is because you can't specify a partial vaporization (if required) with T and P only.
See the debug output for more details: