Closed Greg66 closed 3 years ago
Currently, PVF and TVF flashes support only one liquid phase. What is the procedure to calculate an LLE bubble point?
In PVF you just need to define "0" as vapour fraction. This already gives the correct bubble point, just without a second liquid phase.
p.S. how can i attache my simulation file here?
It seems Edge-Browser doesn't allow attaching files. Test_Aniline_Water_LLE.zip
@Greg66 ok but then the procedure would be doing an LLE flash after finding the equilibrium P/T? I've never found a good reference for LLE bubble points.
Hi Daniel, i would have to think about that and check the code again. I just checked the last version of DWSIM 5.8 Update 10 - where it is calculating as expected. :-)
Here some pictures from DWSIM 5.8:
Pic 1: Configuration
Pic 2+3: Calculation results of PVF flash
I hope that will give a clue?
We had an LLE bubble point routine and I don't remember it...🤦🏻♂️
@Greg66 ok but then the procedure would be doing an LLE flash after finding the equilibrium P/T? I've never found a good reference for LLE bubble points.
Hi Daniel, i am sorry this would be the wrong approach. I remember the time when i optimized these 3-Phase flashes i had to adopt a different procedure. In 3-phase region with two liquids the temperature will keep constant until one liquid phase is evaporated completely. Therefore you can't just change the temperature to find the specified vapor fraction. Please do have a look into the old code.
For calculating the boiling point the procedure is quite similar to a single liquid phase. Both liquid phases do have the same vapor pressure for each component. Therefore you just need to do a LLE flash and calculate vapor pressures for phase 1.
Gregor
The code is still here in v6, working on it right now.
Hi Daniel, that seems to be the solution. Well done!
Gregor
IMPORTANT: This section is for code-related bugs. For usage issues, please go to the Support Forums.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior PVF and TVF should be able to calculate two liquid phases
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):