Presently, Pingvin is designed to be quite minimal on dependencies. The core solver is written in the Odin programming language and some of the support tools rely on Python packages.
You will need:
-
An Odin compiler
-
Python vtk package
-
Python pyvista package
-
Python gmsh package (or another way to generate a 2D quad mesh)
-
Python scipy package
-
Python click package
-
Python tqdm package
Additionaly, on macos, install zlib via brew:
-
brew install zlib
-
Download the source code from github:
> git clone https://github.com/rjgollan-on-github/pingvin.git pingvin
-
Build the source
> cd pingvin > make install
-
[Linux] Set your environment variables in
.bashrcexport PINGVIN=$HOME/pingvin export PATH=$PINGVIN/inst:$PATH
[Macos] Set your environment variables in
.zshrcexport PINGVIN="$HOME/pingvin" export PATH="$PINGVIN/inst:$PATH" export LIBRARY_PATH="/opt/homebrew/opt/zlib/lib"
-
Set up a Python virtual environment and install required packages
> python(3) -m venv py-env > source py-env/bin/activate > pip install vtk > pip install pyvista > pip install gmsh > pip install scipy > pip install click
Use python3 if your system doesn’t provide a python command that points to a Python 3 installation.
You might need to re-login or source the .bashrc file to get your environment properly set.
