Skip to main content

CADET is a python interface to the CADET chromatography simulator

Project description

CADET-Python is a file based Python interface for CADET. CADET must be downloaded from:

https://github.com/modsim/CADET

CADET-Python almost exactly maps to the documented CADET interface except that all dataset names are lowercase. This simplifies useing the interface.

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'

#next run the simulation

print(sim.run())

#load the data 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CADET-Python-0.11.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

CADET_Python-0.11-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file CADET-Python-0.11.tar.gz.

File metadata

  • Download URL: CADET-Python-0.11.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.8

File hashes

Hashes for CADET-Python-0.11.tar.gz
Algorithm Hash digest
SHA256 239bd720f7e393dd0563ef2178311fb4b40279154c2dfa616b455b5d7b738b6d
MD5 18adb778c60fd6050860dd733d34b436
BLAKE2b-256 2f4fa8def6dbb771a87f6336b6a65976efa49842d3418089517fdec36570de10

See more details on using hashes here.

File details

Details for the file CADET_Python-0.11-py3-none-any.whl.

File metadata

  • Download URL: CADET_Python-0.11-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.8

File hashes

Hashes for CADET_Python-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 36187a46e701f0fa6e93a900e4577a9b05aeeb52c8e485c75204f6afdb971263
MD5 7ea6c41afd4737bf1fbca6153743c4e2
BLAKE2b-256 9460e767510b4fd43e51f2edb8a7e3f5a1fb43ef22963904952c1fb3d6d19391

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page