Code Monkey home page Code Monkey logo

Comments (3)

gustavochm avatar gustavochm commented on July 21, 2024

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.

GregorySchwing avatar GregorySchwing commented on July 21, 2024

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.

gustavochm avatar gustavochm commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.