Repository containing my high level programming language interfaces (e.g. python, Julia (one day)) for OpenSMOKEpp.
- Gas Phase kinetic map.
- Gas Phase Thermodynamic properties map.
- Gas Phase Transport properties map. (WIP)
- Batch Reactor.
Incoming
Disclaimer the package is still under active development for this reason at the moment has been tested only on my personal PC and in some other controlled environments, it is not guaranteed to work as is.
- CMake (https://cmake.org/).
- Ninja (https://ninja-build.org/).
- OpenSMOKEpp (https://www.opensmokepp.polimi.it/) distributed under request contact Alberto Cuoci [email protected].
- OpenSMOKEppSolvers (https://www.opensmokepp.polimi.it/) distributed under request contact Alberto Cuoci [email protected].
- Eigen3 (https://eigen.tuxfamily.org/).
- Boost (https://www.boost.org/).
- OpenBLAS (https://www.openblas.net/).
- Working C/C++ compiler (e.g. gnu or llvm compiler).
- Working Fortran compiler (gfortran).
- Strongly recommended Anaconda/Miniconda (https://anaconda.org/).
Once all the necessary requirements are satisfied in order to build and install the package follow the following instructions:
- Clone this repository into your system.
> git clone https://github.com/tdinelli/OpenSMOKEpp_Interfaces.git --depth=1
- Move into the main folder.
> cd OpenSMOKEpp_Interfaces
- Export the following environment variables (with the appropriate paths).
> export CC="/opt/homebrew/opt/llvm/bin/clang" > export CXX="/opt/homebrew/opt/llvm/bin/clang++" > export FC="/opt/homebrew/bin/gfortran-13" > export Boost_ROOT="$HOME/NumericalLibraries/boost/boost-1.83.0-clang-17.0.1" > export BLAS_ROOT="$HOME/NumericalLibraries/openblas/openblas-0.3.24-clang-17.0.3" > export OpenSMOKEpp_ROOT="$HOME/Documents/GitHub/OpenSMOKEpp" > export OpenSMOKEppSolvers_ROOT="$HOME/Documents/GitHub/OpenSMOKEppSolvers" > export Eigen3_ROOT="$HOME/NumericalLibraries/eigen/eigen-3.4.0/share/eigen3/cmake"
- Run the following commands. In order to avoid problems with python versioning and to avoid conflicts between existing python packages it is highly recommended to install the package into a (clean) conda environment.
If you need to debug the installation run the previous command with "-v" at the end. If everything is done correct something like this should appear on the screen.
> python3 -m pip install .
... Successfully built pyOpenSMOKE Installing collected packages: pyOpenSMOKE Successfully installed pyOpenSMOKE-0.0.1