-
foxes.core.FarmController.calculate(algo, mdata, fdata, pre_rotor, downwind_index=
None
)[source] The main model calculation.
This function is executed on a single chunk of data, all computations should be based on numpy arrays.
Parameters¶
- algo: foxes.core.Algorithm
The calculation algorithm
- mdata: foxes.core.MData
The model data
- fdata: foxes.core.FData
The farm data
- pre_rotor: bool
Flag for running pre-rotor or post-rotor models
- downwind_index: int, optional
The index in the downwind order
Returns¶
- results: dict
The resulting data, keys: output variable str. Values: numpy.ndarray with shape (n_states, n_turbines)