Metadata-Version: 2.3
Name: foxes
Version: 1.8.0
Summary: Farm Optimization and eXtended yield Evaluation Software
Keywords: Wind farm,Wake modelling,Wind farm optimization
Author: Jonas Schulte
License: MIT License
         
         Copyright (c) 2022 FraunhoferIWES
         
         Permission is hereby granted, free of charge, to any person obtaining a copy
         of this software and associated documentation files (the "Software"), to deal
         in the Software without restriction, including without limitation the rights
         to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         copies of the Software, and to permit persons to whom the Software is
         furnished to do so, subject to the following conditions:
         
         The above copyright notice and this permission notice shall be included in all
         copies or substantial portions of the Software.
         
         THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         SOFTWARE.
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Operating System :: OS Independent
Requires-Dist: matplotlib>=3.8
Requires-Dist: numpy>=1.26
Requires-Dist: pandas>=2.0
Requires-Dist: scipy>=1.12
Requires-Dist: xarray>=2023
Requires-Dist: netcdf4>=1.5
Requires-Dist: pyyaml>=4.0
Requires-Dist: tqdm>=4.31.1
Requires-Dist: utm>=0.5
Requires-Dist: dask>=2022.0 ; extra == 'dask'
Requires-Dist: distributed>=2022.0 ; extra == 'dask'
Requires-Dist: dask-jobqueue>=0.8 ; extra == 'dask'
Requires-Dist: setuptools>=61.0 ; extra == 'dask'
Requires-Dist: pre-commit>=0.1 ; extra == 'dev'
Requires-Dist: objsize>=0.5 ; extra == 'dev'
Requires-Dist: jupyter>=1.0 ; extra == 'dev'
Requires-Dist: setuptools>=61.0 ; extra == 'doc'
Requires-Dist: sphinx>=5.0 ; extra == 'doc'
Requires-Dist: sphinx-immaterial>=0.10 ; extra == 'doc'
Requires-Dist: myst-nb>=0.1 ; extra == 'doc'
Requires-Dist: ipykernel>=5.0 ; extra == 'doc'
Requires-Dist: ipywidgets>=5.0 ; extra == 'doc'
Requires-Dist: m2r2>=0.2 ; extra == 'doc'
Requires-Dist: lxml-html-clean>=0.4 ; extra == 'doc'
Requires-Dist: dask>=2022.0 ; extra == 'doc'
Requires-Dist: distributed>=2022.0 ; extra == 'doc'
Requires-Dist: metpy>=0.1 ; extra == 'era5'
Requires-Dist: cdo>=0.1 ; extra == 'icon-dream'
Requires-Dist: requests>0.1 ; extra == 'icon-dream'
Requires-Dist: foxes-opt>=0.7 ; extra == 'opt'
Requires-Dist: pytest>=7.0 ; extra == 'test'
Requires-Dist: nbmake>1.0 ; extra == 'test'
Requires-Dist: dask>=2022.0 ; extra == 'test'
Requires-Dist: distributed>=2022.0 ; extra == 'test'
Maintainer: Jonas Schulte
Requires-Python: >=3.9, <3.14
Project-URL: Homepage, https://github.com/FraunhoferIWES/foxes
Project-URL: Documentation, https://fraunhoferiwes.github.io/foxes
Project-URL: Repository, https://github.com/FraunhoferIWES/foxes.git
Project-URL: Bug Tracker, https://github.com/FraunhoferIWES/foxes/issues
Project-URL: Changelog, https://github.com/FraunhoferIWES/foxes/blob/main/CHANGELOG.md
Provides-Extra: dask
Provides-Extra: dev
Provides-Extra: doc
Provides-Extra: era5
Provides-Extra: icon-dream
Provides-Extra: opt
Provides-Extra: test
Description-Content-Type: text/markdown

# Welcome to foxes

![FOXES Logo](Logo_FOXES.svg)

## Overview

The software `foxes` is a modular wind farm simulation and wake modelling toolbox which is based on engineering wake models. It has many applications, for example

- Wind farm optimization, e.g. layout optimization or wake steering,
- Wind farm post-construction analysis,
- Wake model studies, comparison and validation,
- Wind farm simulations invoking complex model chains.

The fast performance of `foxes` is owed to vectorization and parallelization,
and it is intended to be used for large wind farms and large timeseries inflow data.
The parallelization on local or remote clusters is supported, based on
[mpi4py](https://mpi4py.readthedocs.io/en/stable/) or
[dask.distributed](https://distributed.dask.org/en/stable/).
The wind farm
optimization capabilities invoke the [foxes-opt](https://github.com/FraunhoferIWES/foxes-opt) package which
as well supports vectorization and parallelization.

`foxes` is build upon many years of experience with wake model code development at IWES, starting with the C++ based in-house code _flapFOAM_ (2011-2019) and the Python based direct predecessor _flappy_ (2019-2022).

Documentation: [https://fraunhoferiwes.github.io/foxes](https://fraunhoferiwes.github.io/foxes)

Source code: [https://github.com/FraunhoferIWES/foxes](https://github.com/FraunhoferIWES/foxes)

PyPi reference: [https://pypi.org/project/foxes/](https://pypi.org/project/foxes/)

Anaconda reference: [https://anaconda.org/conda-forge/foxes](https://anaconda.org/conda-forge/foxes)

## Citation

Please cite the JOSS paper `"FOXES: Farm Optimization and eXtended yield
Evaluation Software"`

 [![DOI](https://joss.theoj.org/papers/10.21105/joss.05464/status.svg)](https://doi.org/10.21105/joss.05464)

 Bibtex:
 ```
@article{
    Schmidt2023,
    author = {Jonas Schmidt and Lukas Vollmer and Martin Dörenkämper and Bernhard Stoevesandt},
    title = {FOXES: Farm Optimization and eXtended yield Evaluation Software},
    doi = {10.21105/joss.05464},
    url = {https://doi.org/10.21105/joss.05464},
    year = {2023},
    publisher = {The Open Journal},
    volume = {8},
    number = {86},
    pages = {5464},
    journal = {Journal of Open Source Software}
}
 ```

## Requirements

The supported Python versions are `Python 3.9`...`3.13`.

## Installation

Either install via pip:

```console
pip install foxes
```

Alternatively, install via conda:

```console
conda install foxes -c conda-forge
```

## Usage

For detailed examples of how to run _foxes_, check the `examples` and `notebooks` folders in this repository. A minimal running example is the following, based on provided static `csv` data files:

```python
import foxes

if __name__ == "__main__":

    states = foxes.input.states.Timeseries("timeseries_3000.csv.gz", ["WS", "WD","TI","RHO"])

    farm = foxes.WindFarm()
    foxes.input.farm_layout.add_from_file(farm, "test_farm_67.csv", turbine_models=["NREL5MW"])

    algo = foxes.algorithms.Downwind(farm, states, ["Jensen_linear_k007"])
    farm_results = algo.calc_farm()

    print(farm_results)
```

## Testing

For testing, please clone the repository and install the required dependencies:
```console
git clone https://github.com/FraunhoferIWES/foxes.git
cd foxes
pip install -e .[test]
```

The tests are then run by
```console
pytest tests
```

## Contributing

1. Fork _foxes_ on _github_.
2. Create a branch (`git checkout -b new_branch`)
3. Commit your changes (`git commit -am "your awesome message"`)
4. Push to the branch (`git push origin new_branch`)
5. Create a pull request [here](https://github.com/FraunhoferIWES/foxes/pulls)

## Acknowledgements

The development of _foxes_ and its predecessors _flapFOAM_ and _flappy_ (internal - non public) has been supported through multiple publicly funded research projects. We acknowledge in particular the funding by the Federal Ministry of Economic Affairs and Climate Action (BMWK) through the projects _Smart Wind Farms_ (grant no. 0325851B), _GW-Wakes_ (0325397B) and _X-Wakes_ (03EE3008A), as well as the funding by the Federal Ministry of Education and Research (BMBF) in the framework of the project _H2Digital_ (03SF0635). We furthermore acknowledge funding by the Horizon Europe project FLOW (Atmospheric Flow, Loads and pOwer
for Wind energy - grant id 101084205).
