This course is a Python-based course for an introduction of UG4.
Please start the course here.
- UG4 on GitHub
- ug4py-base on PyPi
- Ubuntu packages are in binder/apt.txt
- Python packages are in binder/requirements.txt
- Installation script in binder/postBuild
- Install via pip
pip install ug4py-base
- Clone repo:
git clone https://github.com/UG4/py-course-modsim.git
- Run examples, e.g.,:
cd py-course-modsim/content/tutorial-fem
python tutorial-fem-01.py
This is a port of the sibling Lua course.
Installation via pip does not support parallelism via MPI. In this case, a manual build is required.
´´´ cmake -DCMAKE_CXX_COMPILER=/where/is/your/mpicxx -DCMAKE_C_COMPILER=/where/is/your/mpicc -DCMAKE_BUILD_TYPE=Release -DDIM="2;3" -DCPU=1 .. cmake -DPARALLEL=ON -DUSE_PYBIND11=ON -DCMAKE_POLICY_DEFAULT_CMP0057=NEW .. cmake -DLimex=ON -DConvectionDiffusion=ON -DSuperLU6=ON .. ´´´