This plugin provides basic thermodynamic cycle modeling tools for OpenMDAO. It's main feature is the inclusion of a FlowStation variable that provides access to isentropic flow relationships.
This is an OpenMDAO plugin, so we assume you have already installed a version of OpenMDAO.
On OS-X it is strongly suggested that you setup Python, and other OpenMDAO pre-reqs with homebrew. You can follow these detailed instructions but once you have homebrew installed and setup, here is the short version:
brew install git
brew install python
brew install gfortran
pip install numpy
pip install scipy
brew install freetype
pip install matplotlib
In addition, this plugin requires Cantera and the python wrapper for it. You can compile cantera from scratch, or follow the instructions below for a bit easier route.
Cantera provides pre-compiled binaries that are by far the easiest choice for windows. You should follow their instructions for the best way to install it and make sure it works.
But note that you need to install version 2.0.2 and NOT the 2.1 beta version. Get only the official release version of it!
https://code.google.com/p/cantera/wiki/WindowsInstallation
Assuming you've used homebrew to get OpenMDAO setup, then just use it to install Cantera too!
brew install cantera
You're best bet is to follow the official instructions.
Make sure you're in an activated OpenMDAO environment. Then you have two options:
This will install the plugin, but you won't have access to the source in order to mess around with it.
plugin install --github pycycle
If you want to have access to the source and make changes to it while you're working then you should do an install from source. Don't be scared by the cantera source install though, compared to that this is pretty easy! It's only two steps.
1)Clone the repository to your local machine. If you want to clone ours:
git clone https://github.com/OpenMDAO-Plugins/pyCycle.git
Or you can fork it and clone that to your local machine. Either way...
-
cd into the pyCycle directory
python setup.py develop