Open rafmudaf opened 2 years ago
One solution could be to have separate flow fields and grids for turbine calculations and full flow field/visualization calculations. Then if a user were to call calculate_wake
after initialization, followed by a visualization call, the previous turbine calculations (for the input wind information) would be retained. This seems a cleaner solution to me than the current way that recalculates the wake with a turbine grid after a plane is calculated (fully acknowledging that I originally proposed the current solution).
Bug description Since the
FlorisInterface.calculate_*_plane()
routines require using a single atmospheric condition, doing any calculations calling these also requires using a single atmospheric condition. For example, the last line hereturbine_powers
should have powers for two atmospheric conditions but instead it only has one.Expected behavior I would like for the
FlorisInterface
routines to have an API that better supports interoperability between them. Ideally, the routines would only docalculate_wake
when its clear to the user that it is required, and storing previous data to be reset later would be more robust and clear to the user.