Getting Started

Prerequisites

ParaView

If you plan on using PySAGAS with Cart3D solutions, you should also install ParaView, or at least the ParaView Python bindings. If you are using an Anaconda environment, you can install the ParaView Python packages via Conda Forge using the command below:

conda install -c conda-forge paraview

If you already have ParaView installed, you can append the path to the binaries to the Python path using the snippet below.

import sys
sys.path.insert(0, "/opt/ParaView-5.6.2-MPI-Linux-64bit/bin")

# Now the import should work
import paraview

For more information on ParaView’s Python packages, see the ParaView Wiki.

pyOptSparse

PySAGAS shape optimisation modules wrap around pyOptSparse to converge on optimal geometries. Follow the installation instructions, noting that special optimisers require custom builds.

If using an Anaconda environment, you can also install PyOptSparse from Conda forge:

conda install -c conda-forge pyoptsparse

PyMesh

Having PyMesh installed can greatly enhance the capabilities offered by PySAGAS. However, it can be difficult to install. Troubleshooting guide coming soon.

Installation

After installing the dependencies above, clone this repo to your machine.

git clone https://github.com/kieran-mackle/pysagas

Next, use pip to install the pysagas package from the repo you just cloned.

cd pysagas
python3 -m pip install .