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.
See the debug output for more details:
Calculation spec: Temperature_and_Pressure
Input variables: T = 373.132345797454 K, P = 101325 Pa
Checking mixture composition. Sum must be higher than zero. Sum = 1
Checking flow definition. Mass flow specified, will calculate molar and volumetric flow.
Property Package: Peng-Robinson (PR)
Flash Algorithm: NestedLoops
Calculating phase equilibria...
**Stream is single-compound and attached to the outlet of an unit operation. PH flash equilibrium calculation forced.**
Phase equilibria calculated succesfully.
Calculating phase properties...
Phase properties calculated successfully.
Material Stream calculated successfully.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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: