Installation
Download opensg
The OpenSG source code is hosted on the opensg GitHub repository. OpenSG users are recommended to clone the Github repository. Cloning the repository allows users to easily pull the latest updates to the opensg source code. These updates may improve the code’s speed, accuracy and add additional functionality or advanced features.
To download OpenSG using git, type the following in a git interface:
git clone https://github.com/wenbinyugroup/opensg
Installation
To install OpenSG and create an environment where the code runs correctly, is is recommended to use the environment.yml file to create the environment via conda. If you are unfamiliar with conda, please refer to the conda documentation.
Download the OpenSG repository:
git clone https://github.com/wenbinyugroup/opensg
Create the conda environment named opensg_env using the environment.yml file:
conda env create -f environment.yml
Activate the environment:
conda activate opensg_env
Note
On some systems, there is a bug where gmsh must be installed through pip, rather than conda, to interface with dolfinx correctly. If this bug occurs for you please run the following commands:
conda remove gmsh
pip install gmsh
Troubleshooting
If you encounter issues during installation:
Environment Issues: Make sure you’re using the correct conda environment
Dependencies: Check that all required packages are installed correctly
GMSH Issues: Try the pip installation method for gmsh if conda installation fails
DOLFINx Compatibility: Ensure you have a compatible version of DOLFINx installed
For additional help, please check the contributing page or create an issue on the GitHub repository.