CADET is a python interface to the CADET chromatography simulator
Project description
CADET-Python is a file based Python interface for CADET. For this, CADET must be installed separately (see https://github.com/modsim/CADET).
CADET-Python almost exactly maps to the documented CADET interface except that all dataset names are lowercase. This simplifies using the interface.
To install CADET-Python simply
pip install cadet-python
Usage
This package includes the CADET class and H5 class. H5 can be used as a simple generic HDF5 interface.
As an example look at setting column porosity for column 1. From the CADET manual, the path for this is:
/input/model/unit_001/COL_POROSITY
In the Python interface this becomes:
sim = Cadet()
sim.root.input.model.unit_001.col_porosity = 0.33
Once the simulation has been created it must be saved before it can be run.
sim.filename = "/path/to/where/you/want/the/file.hdf5"
sim.save()
Next the path to CADET needs to be set before a simulation can be run. If running on Microsoft Windows you need the path to cadet-cli.exe
sim.cadet_path = '/path/to/cadet-cli'
run the simulation and load the data
print(sim.run())
sim.load()
At this point any data can be read.
If you have a file you want to read that has already been simulated this is also easy to do.
sim = Cadet()
sim.filename = "/path/to/where/you/want/the/file.hdf5"
sim.load()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file CADET-Python-0.14.tar.gz.
File metadata
- Download URL: CADET-Python-0.14.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95adc8811a2e8e81f70d0507d9cbe5eb6590ae26b3d811c8cb23af3f1795cb23
|
|
| MD5 |
4aab1867e0326dc76f71993291f2a215
|
|
| BLAKE2b-256 |
45557529c6a79369a29c5272b349a6e4a024661234f26d6366bcacad0dc22249
|
File details
Details for the file CADET_Python-0.14-py3-none-any.whl.
File metadata
- Download URL: CADET_Python-0.14-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1d8c143e2057416821ca16fd4852094cf20aa5021b5fb0b2d1edec272cb218a
|
|
| MD5 |
c23b6b81b3163a043cca70bb90134ea8
|
|
| BLAKE2b-256 |
5af2b26d9e71698fa4fdd5a3ded9a6ad2dc05c34ac39a6586e1956285a574f00
|