Motivation
With Julia being increasingly turned towards by the scientific computing community, Cantera's support to Julia shall be a valuable feature addition. Two such paths exist to extend Cantera's support to Julia:
Possible solutions
- A complete re-implementation based on the Cantera interpreter like Arrhenius.jl
- Some additions to the source code to make the existing version of Cantera "callable" in Julia.
A possible example of the second method would be to use the PyCall feature of Julia to make the Python implementation of Cantera available in the Julia environment:
using PyCall; pyimport('cantera')
Note that before this can take action, one needs PyCall added using Pkg.add("PyCall") and configure the working environment to include python using ENV["PYTHON"] = "location of the python.exe". Some skepticism exists that such an implementation would be unstable. A better implementation of such a feature would be to use the C++ implementation of cantera directly using Julia ccall()and create an executable.
References-Cantera user's group discussions
- https://groups.google.com/g/cantera-users/c/AkjunMzAkJs
- https://groups.google.com/g/cantera-users/c/WGi-PTq9Wgg/m/M5LTO-1HAwAJ
Motivation
With Julia being increasingly turned towards by the scientific computing community, Cantera's support to Julia shall be a valuable feature addition. Two such paths exist to extend Cantera's support to Julia:
Possible solutions
A possible example of the second method would be to use the
PyCallfeature of Julia to make the Python implementation of Cantera available in the Julia environment:using PyCall; pyimport('cantera')Note that before this can take action, one needs
PyCalladded usingPkg.add("PyCall")and configure the working environment to include python usingENV["PYTHON"] = "location of the python.exe". Some skepticism exists that such an implementation would be unstable. A better implementation of such a feature would be to use the C++ implementation of cantera directly using Juliaccall()and create an executable.References-Cantera user's group discussions