A wind turbine wake modeling software
Further documentation is available at http://floris.readthedocs.io/.
The following packages are used in FLORIS
- NumPy v1.12.1
- SciPy v0.19.1
- matplotlib v2.1.0
- pytest v3.3.1 (optional)
- Sphinx v1.6.6 (optional)
After installing Python3, the remaining required dependencies can be installed with pip referencing the requirements list using this command:
pip install -r requirements.txt
Using pip, FLORIS can be installed in two ways
- local editable install
- using a tagged release version from the pip repo
For consistency between all developers, it is recommended to use Python virtual environments; this link provides a great introduction. Using virtual environments in a Jupyter Notebook is described here.
Local editable installation
The local editable installation allows developers maintain an importable instance of FLORIS while continuing to extend it. The alternative is to constantly update python paths within the package to match the local environment.
Before doing the local install, the source code repository must be cloned directly from GitHub:
git clone https://github.com/wisdem/floris
Then, using the local editable installation is as simple as running the following command from the parent directory of the cloned repository:
pip install -e FLORIS/
Finally, test the installation by starting a python terminal and importing FLORIS:
pip repo installation
The Floris version available through the pip repository is always the latest tagged and released version. This version represents the most recent stable, tested, and validated code.
In this case, there is no need to download the source code directly. FLORIS and its dependencies can be installed with:
pip install floris
floris is an importable package and should be driven by a custom script. We have provided an example driver script at example/example_script.py and a Jupyter notebook detailing a real world use case at example/FLORIS_Run_Notebook.ipynb.
Generally, a Floris class should be instantiated with a path to an input file as the sole argument:
Then, driver programs can calculate the flow field, produce flow field plots, and incorporate the wake estimation into an optimization routine or other functionality.
Copyright 2017 NREL
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.