class foxes.models.wake_frames.YawedWakes(foxes.core.WakeFrame)[source]

Bend the wakes for yawed turbines, based on the Bastankhah 2016 wake model

Notes

Reference: “Experimental and theoretical study of wind turbine wakes in yawed conditions” Majid Bastankhah, Fernando Porté-Agel https://doi.org/10.1017/jfm.2016.595

Attributes

model: Bastankhah2016Model

The model for computing common data

model_pars: dict

Model parameters

K: float

The wake growth parameter k. If not given here it will be searched in the farm data.

YAWM: float

The yaw misalignment YAWM. If not given here it will be searched in the farm data.

base_frame: foxes.core.WakeFrame

The wake frame from which to start

k_var: str

The variable name for k

Public members

YawedWakes(k=None, base_frame=RotorWD(RotorWD), k_var='k', **kwargs)[source]

Constructor.

sub_models()[source]

List of all sub-models

initialize(algo, verbosity=0, force=False)[source]

Initializes the model.

calc_order(algo, mdata, fdata)[source]

” Calculates the order of turbine evaluation.

get_wake_coos(algo, mdata, fdata, pdata, states_source_turbine)[source]

Calculate wake coordinates.

get_centreline_points(algo, mdata, fdata, states_source_turbine, x)[source]

Gets the points along the centreline for given values of x.

get_wake_modelling_data(algo, variable, states_source_turbine, ...)[source]

Return data that is required for computing the wake from source turbines to evaluation points.

calc_centreline_integral(algo, mdata, fdata, ...)[source]

Integrates variables along the centreline.

classmethod new(wframe_type, *args, **kwargs)[source]

Run-time wake frame factory.

__repr__()[source]

Return repr(self).

property model_id

Unique id based on the model type.

var(v)[source]

Creates a model specific variable name.

property initialized

Initialization flag.

load_data(algo, verbosity=0)[source]

Load and/or create all model data that is subject to chunking.

finalize(algo, verbosity=0)[source]

Finalizes the model.

get_data(variable, target, lookup='smfp', mdata=None, ...)[source]

Getter for a data entry in the model object or provided data sources

data_to_store(name, algo, data)[source]

Adds data from mdata to the local store, intended for iterative runs.

from_data_or_store(name, algo, data, ret_dims=False, safe=False)[source]

Get data from mdata or local store