Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WindIO support in FLORIS
This PR introduces support for WindIO in FLORIS.
It enables running FLORIS wake simulations directly from WindIO-compliant input files, while keeping WindIO as an optional dependency.
Summary of changes
The
fmodelnow includes three new methods:from_windioReads a WindIO YAML farm file and runs a wake model simulation based on its contents.
set_wind_data_from_windioUpdates the wind farm geometry and turbine data based on a specified WindIO wind farm file.
set_farm_from_windioUpdates wind data based on a specified WindIO wind resource file.
Currently supported wind resource formats include:
WindIO parsing and field tracking
WindIO input files are read using the modified dictionary class
read_windio/utils/TrackedDict.This class tracks which WindIO fields are accessed during parsing and emits a warning when keys from the WindIO input are not used. This mechanism helps:
Dependency management
WindIO is imported at runtime and therefore remains an optional dependency of FLORIS.
Users who do not rely on WindIO workflows are not affected.
Impacted areas of the software
Most changes are contained within the
read_windiodirectory and are therefore largely orthogonal to other ongoing or future developments.To comply with the WindIO output standard, a new
keep_inertial_frameoption was added to the initialization ofFlowFieldPlanarGrid.This option allows the FLORIS flow field to be computed on a fixed inertial grid, rather than in a frame aligned with the main wind direction, which is required for compatibility with WindIO outputs.
Optional TODOs
blockage_model,axial_induction_model,rotor_averaging)