foxes.core.WakeFrame.calc_centreline_integral(algo, mdata, fdata, downwind_index, variables, x, dx, wake_models=None, self_wake=True, **ipars)[source]

Integrates variables along the centreline.

Parameters

algo: foxes.core.Algorithm

The calculation algorithm

mdata: foxes.core.MData

The model data

fdata: foxes.core.FData

The farm data

downwind_index: int

The index in the downwind order

variables: list of str

The variables to be integrated

x: numpy.ndarray

The wake frame x coordinates of the upper integral bounds, shape: (n_states, n_points)

dx: float

The step size of the integral

wake_models: list of foxes.core.WakeModels

The wake models to consider, default: from algo

self_wake: bool

Flag for considering only wake from states_source_turbine

ipars: dict, optional

Additional interpolation parameters

Returns

results: numpy.ndarray

The integration results, shape: (n_states, n_points, n_vars)