foxes.models.rotor_models.CentreRotor.eval_rpoint_results(algo, mdata, fdata, rpoint_results, rpoint_weights, downwind_index=None, copy_to_ambient=False)[source]

Evaluate rotor point results.

This function modifies fdata, either for all turbines or one turbine per state, depending on parameter states_turbine. In the latter case, the turbine dimension of the rpoint_results is expected to have size one.

ParametersΒΆ

algo: foxes.core.Algorithm

The calculation algorithm

mdata: foxes.core.MData

The model data

fdata: foxes.core.FData

The farm data

rpoint_results: dict

The results at rotor points. Keys: variable str. Values: numpy.ndarray, shape if states_turbine is None: (n_states, n_turbines, n_rpoints). Else: (n_states, 1, n_rpoints)

weights: numpy.ndarray

The rotor point weights, shape: (n_rpoints,)

downwind_index: int, optional

The index in the downwind order

copy_to_ambient: bool

If True, the fdata results are copied to ambient variables after calculation