Getting started
The below will help you quickly install G2Aero.
Requirements
You will need a working Python 3.x installation; You will also need to install the following packages:
numpy
scipy
PyYAML
Installing via conda-forge
conda install -c conda-forge g2aero
Install from source
Alternatively, you can install the latest version directly from the most up-to-date version of the source code by cloning/forking the GitHub repository
git clone https://github.com/NREL/G2Aero.git
Once you have the source, you can build G2Aero (and add it to your environment) by executing
python setup.py install
or
pip install -e .
in the top-level directory. The required Python packages will automatically be installed as well.
You can test your installation by looking for the g2aero executable built by the installation
which g2aero
and by importing the g2aero Python frontend in Python
import g2aero
Testing
To test that the package is working correctly, run
pytest
from the root directory of the package. This will run a basic test problem.