Welcome to ℜeos
ℜeos is a thermodynamic library written in Rust with a Python interface. It provides tools for calculating thermodynamic properties and phase equilibria.
import numpy as np
from reos.cpa import CPAParameters, CPAPureRecord
from reos.eos import EquationOfState
from reos.state import State
parameters = CPAParameters.from_json(["water", "carbon dioxide"],
rdf_model="kg",
cubic_model="srk",
ppath="../../../parameters/cpa/tsivintzelis2011.json",
bpath= "../../../parameters/cpa/tsivintzelis2011_binary.json")
eos = EquationOfState.cpa(parameters)
# 2. Initialize the state
T = 323.15; P = 1e5; z = np.array([0.75, 0.25])
state = State.tpx(eos, T, P, z)
# 3. Calculate properties
unbonded_sites_fraction = eos.get_assoc_calcs(state.temperature, state.density, state.composition)["X"]
Models
| Model | Description |
|---|---|
| CPA | CPA, SCPA |
| cubic | SRK, PR76, PR78, Twu-91, volume-translation |
Each model implement its analytical expressions of derived properties of Helmholtz potential.
Installation
Python
From pip
pip install reos
From source
You must have rust compiler and maturin/PyO3 installed.
To install the python package in your machine (such pip install -e .) and use the optimized version of the package:
cd pyreos
maturin develop --release
To build the the python wheel, just use
maturin build --release
Project layout
Repository
├── crates
├── parameters
├── pyreos
├── pyreos-dev
└── pyreos-examples
-
parameters: Directory with pure and binary parameters for the current models implemented in Reos -
crates: Containsreos, which is the Rust package that implement all the core functionalites -
pyreos: Rust package that create the Python interface fromreos -
pyreos-dev: Directory used to test functionalites ofreosin Python -
pyreos-examples: Python examples of how to usereos
Python package
-
reos.eos: Enables the creation and manipulation of equations of state with different models. -
reos.state: Provides tools for working with thermodynamic states, including property calculations and phase equilibria. -
reos.{model_name}: Each current model has its own submodule with its name, which contains the pure model record, the binary model record and the parameters objects .
Metadata
Release files for reos 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reos-1.0.0.tar.gz | 64.7 kB | Without provenance | Details for reos-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reos-1.0.0-cp312-cp312-manylinux_2_34_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.34+ x86-64 | Details for reos-1.0.0-cp312-cp312-manylinux_2_34_x86_64.whl |
Total release size: 687.9 kB
Release files / reos-1.0.0.tar.gz
| Download URL | reos-1.0.0.tar.gz |
|---|---|
| Size | 64.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1de74e754d35c5b6f31f3e2567d0622d1d8c5aed02bf3b7b12b10c2c01e658b4
|
|
BLAKE2b-256 checksum How to use checksums |
992c743d03dc08b30ea07a20b399bcec96c6e7426cf91769399921d10cf43f1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / reos-1.0.0-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | reos-1.0.0-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 623.2 kB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
e8ce991d191705f45a7b11ba1f771538d8dffbf7d2cb24a5d4b1940eb7c35cf3
|
|
BLAKE2b-256 checksum How to use checksums |
a6ba6e5e52a2a14a068f4c2f1d80f5abc6ea3431b0b2dfe5486abb9921d01dff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for reos 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.