GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fedebenelli/PyForFluids: PyForFluids: Fluids Properties Based on Equations of State

BranchesTags
Open more actions menu

Latest commit

 

History

521 Commits
521 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
pyforfluids
pyforfluids
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.header-template
.header-template
 
 
CMakeLists.txt
CMakeLists.txt
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
README.md
README.md
 
 
apt.txt
apt.txt
 
 
pyproject.toml
pyproject.toml
 
 
requirements_dev.txt
requirements_dev.txt
 
 
setup.py
setup.py
 
 
tox.ini
tox.ini
 
 

Repository files navigation

Warning

This project is no longer under development, we are migrating all to yaeos

PyForFluids

Binder Documentation Status

PyForFluids (Python-Fortran-Fluids) is a Python package focused in the calculation of Fluid properties based on Ecuations of State (EoS). It provides a simple interface to work from Python but also exploits the high performance Fortran code for the more heavy calculations.

It’s designed with modularity in mind, in a way that new thermodyinamic models are easy to add, they even can be written either in Python or Fortran.

  • Multifluid equations:

    • GERG-2008 Paper link
  • Cubic EoS:

    • PengRobinson
    • SoaveRedlichKwong
    • Mixing Rules:
      • Quadratic (Classic Van der Waals)
      • Constant $k_{ij}$ and $l_{ij}$

Available properties

  • Reduced Temperature and Density
  • Ideal Helmholtz Energy (Ao)
  • Residual Helmholtz Energy (Ar)
  • Compresibility Factor (Z)
  • Isochoric Heat (Cv)
  • Isobaric Heat (Cp)
  • Speed of sound (w)
  • Isothermal throttling coefficent (δ)
  • Pressure derivatives:
    • Temperature
    • Density
    • Volume
  • Pressure (P)
  • Entropy (S)
  • Gibbs Free Energy (G)
  • Enthalpy (H)
  • Joule-Thompson coefficent
  • Isoentropic exponent
  • Virial Terms:
    • B
    • C

Motivation

While nowadays there are a lot of tools for calculation of thermodynamic properties of fluids, most of them either are hard to mantain and don't have an integrated testing system or are embeded to other softwares (as spredsheat software) limiting the things that can be done to that enviroment.

PyForFluids aims to be a tool:

  • With high performance, since most of it's calculations are done in Fortran
  • Easy to scale due to it's modular design using the power of Python objects.
  • Continuosly tested (at every push)to spot any problems as soon as possible.

Instalation

For installing PyForFluids you just need to:

pip install pyforfluids

Make sure to check the requirements first!

Requirements

Be sure to install numpyand a fortran compiler previously, since both are needed for the compilation of Fortran code.

NumPy

pip install numpy

Fortran Compiler

Linux
  • Debian-based (Debian, Ubuntu, Mint,...)
sudo apt install gfortran
  • Arch-based (Arch, Manjaro, Garuda, ...)
sudo pacman -S gfortran
Windows

We recommended using the Windows Subsystem for Linux WSL

If WSL ain't being used, the native Windows wheels will be download instead, so no need to worry!

MacOS
brew install gfortran

Authors

Federico E. Benelli ([email protected]); M. Candelaria Arpajou

About

PyForFluids: Fluids Properties Based on Equations of State

Topics

equation-of-statefluidsthermodynamics

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity

Stars

38 stars

Watchers

4 watching

Forks

7 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.