Comments (3)
Dear Greg,
Do you want to plot and work with that data? If so, you can use pandas
to read the CSV or Excel file and then matplotlib
to plot and scipy
for interpolation.
If you also want to model that same data with an equation of state, you can use phasepy
. Phasepy includes cubic equations of state and methods for solving phase equilibria. If you are working with pure fluids you can check the following first part of this notebook or cell 7 of this notebook.
If you use an equation of state, the interpolation is done as you would need to compute the saturation property at the desired condition.
I hope that helps,
Gustavo
from phasepy.
Scipy does a pretty terrible job since I only have points in vapor and liquid. I did try following those examples but I wanted more specifics on how to plot a T-Density curve after fitting an EOS adjusted to my experimental data. I know "flash" objects have this functionality.
from phasepy.
Hi Gregory,
In cell 7 of this notebook shows how to compute the saturation pressure and saturation densities of a pure component. From there, you can plot the T-density plot you want.
Just as a clarification, the flash calculation in phasepy is exclusive of mixtures, and from what I understood, you have a pure fluid.
Gustavo
from phasepy.
Related Issues (17)
- Mixture not working HOT 2
- Installing with “pip install phasepy” not working HOT 10
- Phase diagrams? HOT 16
- Additional properties of a mixture HOT 3
- mix.unifac() HOT 2
- Can't install it on Arch Linux HOT 2
- Does the order in which mixture components are defined is important? HOT 1
- Division Zero Error Zfactor HOT 1
- Add new features HOT 6
- Cannot install phasepy in 3.10 on Windows Environment: Getting Requirements to build wheel did not run successfully HOT 2
- Help with calculating LLEs HOT 1
- Difficulty Installing PhasePy HOT 6
- Thank You for Phasepy and Seeking Guidance HOT 5
- Successful Compilation under Android Termux HOT 5
- Bug due to Numpy (>1.20) deprecating " np.int" HOT 2
- what about gdem and dem method in math.py HOT 2
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 phasepy.