foxes.core.RotorModel.calculate(algo, mdata, fdata, rpoints=None, weights=None, store_rpoints=False, store_rweights=False, store_amb_res=False, downwind_index=None)[source]

Calculate ambient rotor effective results.

Parameters

algo: foxes.core.Algorithm

The calculation algorithm

mdata: foxes.core.MData

The model data

fdata: foxes.core.FData

The farm data

rpoints: numpy.ndarray, optional

The rotor points, or None for automatic for this rotor. Shape: (n_states, n_turbines, n_rpoints, 3)

weights: numpy.ndarray, optional

The rotor point weights, or None for automatic for this rotor. Shape: (n_rpoints,)

store_rpoints: bool, optional

Switch for storing rotor points to mdata

store_rweights: bool, optional

Switch for storing rotor point weights to mdata

store_amb_res: bool, optional

Switch for storing ambient rotor point reults as they come from the states to mdata

downwind_index: int, optional

Only compute for index in the downwind order

Returns

results: dict

results dict. Keys: Variable name str. Values: numpy.ndarray with results, shape: (n_states, n_turbines)