abstract foxes.models.wake_models.DistSlicedWakeModel.calc_wakes_x_yz(algo, mdata, fdata, tdata, downwind_index, x, yz)[source]

Calculate wake deltas.

Parameters

algo: foxes.core.Algorithm

The calculation algorithm

mdata: foxes.core.MData

The model data

fdata: foxes.core.FData

The farm data

tdata: foxes.core.TData

The target point data

downwind_index: int

The index in the downwind order

x: numpy.ndarray

The x values, shape: (n_states, n_targets)

yz: numpy.ndarray

The yz values for each x value, shape: (n_states, n_targets, n_yz_per_target, 2)

Returns

wdeltas: dict

The wake deltas. Key: variable name str, value: numpy.ndarray, shape: (n_st_sel, n_yz_per_target)

st_sel: numpy.ndarray of bool

The state-target selection, for which the wake is non-zero, shape: (n_states, n_targets)