This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Release v0.1.0 * fix module name and bonds * add basic documentation
- Loading branch information
Showing
32 changed files
with
1,595 additions
and
1,436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: ["v*"] | ||
|
||
jobs: | ||
release-crates-io: | ||
name: Release crates.io | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: login | ||
args: ${{ secrets.CRATES_IO_TOKEN }} | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Build Wheels | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Build Wheels | ||
uses: messense/maturin-action@v1 | ||
with: | ||
maturin-version: latest | ||
manylinux: auto | ||
command: build | ||
args: --release --out dist --no-sdist -m build_wheel/Cargo.toml | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist | ||
path: dist | ||
macos: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
architecture: x64 | ||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
default: true | ||
- name: Build wheels - x86_64 | ||
uses: messense/maturin-action@main | ||
with: | ||
target: x86_64 | ||
args: --release --out dist --no-sdist -m build_wheel/Cargo.toml | ||
- name: Build wheels - universal2 | ||
uses: messense/maturin-action@main | ||
with: | ||
args: --release --universal2 --out dist --no-sdist -m build_wheel/Cargo.toml | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist | ||
path: dist | ||
windows: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
target: [x64, x86] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
architecture: ${{ matrix.target }} | ||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
default: true | ||
- name: Build wheels | ||
uses: messense/maturin-action@main | ||
with: | ||
target: ${{ matrix.target }} | ||
args: --release --out dist --no-sdist -m build_wheel/Cargo.toml | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist | ||
path: dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [0.1.0] - 2022-04-22 | ||
### Added | ||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# FeOs - gc-PC-SAFT | ||
|
||
[![crate](https://img.shields.io/crates/v/feos-gc-pcsaft.svg)](https://crates.io/crates/feos-gc-pcsaft) | ||
[![documentation](https://docs.rs/feos-gc-pcsaft/badge.svg)](https://docs.rs/feos-gc-pcsaft) | ||
[![documentation](https://img.shields.io/badge/docs-github--pages-blue)](https://feos-org.github.io/feos/) | ||
|
||
Implementation of the (heterosegmented) group contribution PC-SAFT equation of state[^gross2003][^sauer2014] and corresponding Helmholtz energy functional[^mairhofer2018][^rehner2021] within the FeOs project. This project contains a Rust implementation as well as bindings to Python. | ||
|
||
## Usage in Python | ||
|
||
If you want to use `feos-gc-pcsaft` in Python, take a look at the [`feos`-repository](https://github.com/feos-org/feos). `feos` contains multiple equation of state implementations in a single, easy-to-use Python package. | ||
|
||
## FeOs | ||
|
||
> FeOs is a framework for equations of state and classical density function theory | ||
You can learn more about the principles behind `FeOs` [here](https://feos-org.github.io/feos/). | ||
|
||
## Installation | ||
|
||
Add this to your `Cargo.toml` | ||
|
||
```toml | ||
[dependencies] | ||
feos-gc-pcsaft = "0.1" | ||
``` | ||
|
||
## Test building python wheel | ||
|
||
From within a Python virtual environment with `maturin` installed, type | ||
|
||
``` | ||
maturin build --release --out dist --no-sdist -m build_wheel/Cargo.toml | ||
``` | ||
|
||
[^gross2003]: [J. Gross, O. Spuhl, F. Tumakaka and G. Sadowski (2003). *Industrial & Engineering Chemistry Research*, 42(6), 1266-1274.](https://doi.org/10.1021/ie020509y) | ||
[^sauer2014]: [E. Sauer, M. Stavrou and J. Gross (2014). *Industrial & Engineering Chemistry Research*, 53(38), 14854-14864.](https://doi.org/10.1021/ie502203w) | ||
[^mairhofer2018]: [J. Mairhofer, B. Xiao and J. Gross (2018). *Fluid Phase Equilibria*, 472, 117-127.](https://doi.org/10.1016/j.fluid.2018.05.016) | ||
[^rehner2021]: [P. Rehner, B. Bursik and J. Gross (2021). *Industrial & Engineering Chemistry Research*, 60(19), 7111-7123.](https://doi.org/10.1021/acs.iecr.1c00169) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[package] | ||
name = "feos_gc_pcsaft" | ||
version = "0.1.0" | ||
authors = ["Philipp Rehner <prehner@ethz.ch", "Gernot Bauer <bauer@itt.uni-stuttgart.de>"] | ||
edition = "2021" | ||
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
||
[dependencies] | ||
quantity = "0.5" | ||
feos-core = "0.2" | ||
feos-dft = "0.2" | ||
feos-gc-pcsaft = { path = "..", features = ["python", "micelles"] } | ||
pyo3 = { version = "0.16", features = ["extension-module", "abi3", "abi3-py37"] } | ||
numpy = "0.16" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.