Installation
Using pip and a virtual environment is the easiest way to get started with ddfem. Running
pip install ddfem
will install the basic package. We have mainly tested it with dune as solver backend and provide some extra features when used with dune. Currently the code relies on a pre-release version and the best way to guarantee compatibility is to use
pip install ddfem[dune]
On most machine you will also need to run
pip install mpi4py
The main example intro file in our tutorial can be obtained easily by running
python -m ddfem
This step can take some time (so do it before a coffee break) since it precompiles all required modules. This is done in parallel using 4 processes by default. Change that by adding a parameter to the above call, e.g., to use 8 processes run
python -m ddfem 8
After this step has completed you should find the two files intro.py and intro_nb.ipynb in your folder.
Enjoy - and let us know of any issues you encountered