This repository is an example of how to embed Julia code in C++. Specifically, it demonstrates how to use the deal.II finite element library with parts of the program, the material law, is using Julia.
This demonstration will be presented at the deal.II Users and Developers Workshop, September 11-15, 2023, in Hannover.
- Install deal.II
- Install Julia and make sure it is available in
PATH
. - Install the Julia package
Tensors.jl:
julia -e 'using Pkg; Pkg.add("Tensors")'
- Run
cmake
andmake
:cmake -DDEAL_II_DIR=/path/to/deal.II . make
- Run the executable
./hyperelasticity