/CADET-Tutorial

CADET python based interactive tutorials and documentation

Primary LanguageJupyter NotebookOtherNOASSERTION

CC BY NC SA 4.0

This work is licensed under a Creative Commons Attribution 4.0 International License.

CC BY 4.0

CADET Tutorials

This is a repository for introductory examples and tutorials of the CADET software for modelling and simulating chromatographic processes.

For more information, see also:

Download the tutorials

To run the tutorials locally, we recommend installing Anaconda. Anaconda is a high-performance scientific distribution of Python that includes many common packages needed for scientific and engineering work. Download the installer from their website and run it for the local user.

The easiest way to download the tutorials is to clone this repository. For this purpuse, make sure, git is installed.

From a git bash run

git clone https://github.com/modsim/CADET-Tutorial

Then, install all the requirements by running

conda install -c conda-forge --file requirements.txt

To install CADET-Python run

pip install cadet-python

For the tutorials on parameter estimation, you also need to install CADET-Match:

pip install cadetmatch

Getting started

Fire up a jupyter-lab from Anaconda Prompt and navigate to the location of this repository using the file manager on the left. Then, start by following the instructions in getting_started.ipynb. It includes a check that everything is installed correctly.

In case you are new to Python and jupyter, we also included a small tutorial (00_Introduction_Python) which covers the necessary basics for the tutorials.

Fixing potential problems.

  • If you get the following error The code execution cannot proceed because VCRUNTIME140_1.dll was not found. Reinstalling the program may fix this problem., please visit https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads and install the latest Microsoft Visual C++ Redistributable.
  • Some of the notebooks include interactive graphs. To enable them, please open an Anaconda prompt and run:
  • For JupyterLab 2.0+
    jupyter labextension install @jupyter-widgets/jupyterlab-manager
    jupyter lab clean
    jupyter lab build
    
  • For JupyterLab 3.0+: install ipympl