Python

Purpose

The pre- and post-processing library and the installation scripts require an installation of Python 3.

Installation

On most Unix-like systems, Python and below-mentioned modules can be installed from the package manager (e.g. APT or yum on Linux, Homebrew on macOS). Alternatively, tools such as Anaconda and pip can be used.

Additional Modules

Apart from the plain Python interpreter, some additional modules are needed.

NumPy

Almost all tools depend on NumPy.

vtk

Data visualization depends on the Visualization Toolkit (vtk) respectively its Python bindings.

SciPy

Some tools require SciPy.

h5py

Needed for the post processing of HDF5, h5py files.

Troubleshooting

The DAMASK_prerequisites.sh script located in the DAMASK folder checks whether the required Python modules are installed and working. Run it with

./DAMASK_prerequisites.sh

and view the report system_report.txt with the text editor of your choice.