observation_points
- class off.observation_points.FLORIDynOPs4(number_of_time_steps: int)
Bases:
ObservationPoints
- get_vec_op_to_turbine(index: int) ndarray
Returns a x, y, z vector pointing from the OP to the turbine location in the OP coordinate system. OP coordinate system is usually the wake coordinate system based on the OP data.
- Returns:
1 x 3 matrix where the columns are the x,y,z coordinates
- Return type:
np.ndarray
- get_world_coord() ndarray
Returns the world coordinates of the OPs
- Returns:
[x, y, z] coordinates in world coordinate system
- Return type:
np.ndarray
- init_all_states(wind_speed_u: float, wind_speed_v: float, rotor_pos: ndarray, time_step: float)
Creates a downstream chain of OPs Overwrites the base method of the States class
- Parameters:
wind_speed_u (float) – wind speed in x direction in m/s
wind_speed_v (float) – wind speed in y direction in m/s
rotor_pos (np.ndarray) – 1 x 3 vector with x,y,z location of the rotor in the world coordinate system
time_step (float) – simulation time step in s
- propagate_ops(time_step: float)
Propagates the OPs based on the u and v velocity component
- Parameters:
uv_op (np.ndarray) – m x 2 matrix with wind speeds of all OPs in x and y direction in m/s
time_step (float) – Time step of the simulation in s
- class off.observation_points.FLORIDynOPs6(number_of_time_steps: int)
Bases:
ObservationPoints
- get_world_coord() ndarray
Returns the world coordinates of the OPs
- Returns:
[x, y, z] coordinates in world coordinate system
- Return type:
np.ndarray
- init_all_states(wind_speed_u: float, wind_speed_v: float, rotor_pos: ndarray, time_step: float)
Creates a downstream chain of OPs Overwrites the base method of the States class
- Parameters:
wind_speed_u (float) – wind speed in x direction in m/s
wind_speed_v (float) – wind speed in y direction in m/s
rotor_pos (np.ndarray) – 1 x 3 vector with x,y,z location of the rotor in the world coordinate system
time_step (float) – simulation time step in s
- propagate_ops(time_step: float)
Propagates the OPs based on the u and v velocity component
- Parameters:
uv_op (np.ndarray) – m x 2 matrix with wind speeds of all OPs in x and y direction in m/s
time_step (float) – Time step of the simulation in s
- class off.observation_points.ObservationPoints(number_of_time_steps: int, number_of_states: int, state_names: list)
Bases:
States
,ABC
ObservationPoints is the abstract base class for a list of wake tracers / particles The class inherits get, set & iterate methods from the abstract States class, init is overwritten
- abstract get_vec_op_to_turbine(index: int) ndarray
Returns a x, y, z vector pointing from the OP to the turbine location in the OP coordinate system. OP coordinate system is usually the wake coordinate system based on the OP data.
- Returns:
1 x 3 matrix where the columns are the x,y,z coordinates
- Return type:
np.ndarray
- abstract get_world_coord() ndarray
Returns the x, y, z coordinates of all OPs
- Returns:
m x 3 matrix where the columns are the x,y,z coordinates
- Return type:
np.ndarray
- abstract init_all_states(wind_speed_u: float, wind_speed_v: float, rotor_pos: ndarray, time_step: float)
Creates a downstream chain of OPs Overwrites the base method of the States class
- Parameters:
wind_speed_u (float) – Wind speed in x direction in m/s
wind_speed_v (float) – Wind speed in y direction in m/s
rotor_pos (np.ndarray) – 1 x 3 vector with x,y,z location of the rotor in the world coordinate system
time_step (float) – simulation time step in s
- abstract propagate_ops(time_step: float)
Propagates the OPs based on the u and v velocity component
- Parameters:
uv_op (np.ndarray) – m x 2 matrix with wind speeds of all OPs in x and y direction in m/s
time_step (float) – Time step of the simulation in s
- set_op_propagation_speed(op_propagation_speed: ndarray)
Sets the propagation speed of the OPs, meant as a temporay storage, which ensures that different lengths of OP chains can be used in the simulation
- Parameters:
op_propagation_speed (np.ndarray) – m x 2 matrix with [u,v] velocity component for all OPs