mu2mech is a multiscale phase field modeling software designed for Linux-based systems. This README provides instructions for installing and running the software.
- numpy
- pyside2
- pyvista
- pyvistaqt
- matplotlib
- ffmpeg-python
- pyyaml
- ffmpeg
Follow the steps below to install and run mu2mech on your Ubuntu system:
- Download files
-
Download or clone the repository
Click Code->Download ZIP
Or
In terminal type command
git clone https://github.com/mu2mech/mu2mech
-
Install python and pip package manager
sudo apt install python3 sudo apt install python3-pip -
Create and activate a Python environment:
- Open a terminal and execute the following commands:
python3 -m venv ~/mu2mech-env source ~/mu2mech-env/bin/activate
- Open a terminal and execute the following commands:
-
Install packages:
- Install Python packages:
pip install -r requirements.txt
- Install the ffmpeg library:
sudo apt install ffmpeg
- Install Python packages:
-
Run the program:
- Activate environment if not activated
source ~/mu2mech-env/bin/activate
- Execute the following command:
python3 mu2mech.py
- Activate environment if not activated
If you encounter any errors during the installation or execution of mu2mech, refer to the following solutions:
-
ImportError: libOpenGL.so.0: cannot open shared object file: No such file or directory
- Resolve this issue by installing the libopengl0 package:
sudo apt install libopengl0 -y
- Resolve this issue by installing the libopengl0 package:
-
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
- Reinstall the libxcb-xinerama0 package to fix this problem:
sudo apt-get install --reinstall libxcb-xinerama0
- Reinstall the libxcb-xinerama0 package to fix this problem: