Comments (2)
@RPeter18 can you provide an example that I can probe?
from pvttool.
Dear Simulkade,
I am writing to express my gratitude for your reply. It has been very helpful and has provided me with a better understanding of PR EOS.
I have conducted experiments on the case (test case 2) you provided, only changing the temperature and pressure. I have found that no matter what parameters I input, and no matter how many times I loop, PREOS.m's z_root always has only one real root. This may be the reason why the compressibility factor of the gas phase is equal to that of the liquid phase. Although I do not fully understand this phenomenon yet, I will continue to study it in the hope of your answers. Apart from z_root, the errors in the other data are small, and the results are similar to those of commercial software.
Once again, thank you for your reply. If you have other examples or suggestions, please do not hesitate to contact me.
I wish you good health and success in your work.
Sincerely,
Rpeter.
Code
% test case
% liquid-two-phase phase transition
clc; clear;
% Define the components and load pure physsical properties
[component, comp_flag] = addComponents({'CH4', 'C2H6', 'C4H10', ...
'C6H14', 'C10H22', 'C15H32'});
% Define the thermodynamic models
T0 = 400; % [K]
p0 = 50e5; % [Pa]
thermo1 = addThermo();
thermo1.EOS = @preos;
mixture1 = addMixture(component, T0, p0);
% Define flash options
options.accuracy = 1e-7;
options.iteration = 100;
% Negative flash
[vapor_y, liquid_x, vapor_frac] = ...
vleflashnegative(mixture1, thermo1, options)
[liquid_z, vapor_z, fugacity, HR] = PREOS(mixture1, thermo1);
%why liquid_z = vapor_z??
[s1, sl, sv] = stabilityTest(mixture1, thermo1)
from pvttool.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pvttool.