Skip to content

Velocity_Interpolation_wErrorCov not working for single turbine #9

@ufechner7

Description

@ufechner7

The following Matlab test fails:

clear all
addpath('./WindField/Velocity_Interpolation_wErrorCov/');

% Simple linear data: speed = 5 at t=0, speed = 15 at t=10
times = [0.0, 10.0];
speeds = [5.0, 15.0];
data = [times(:), speeds(:)];  % Column-wise concatenation

% Simple 2x2 identity Cholesky: noise still generated but uncorrelated
chol = chol(eye(2));  % chol returns upper triangular by default in MATLAB

% Define a WindVelMatrix function equivalent
wind = WindVelMatrix(data, chol);

% Test 5: Single turbine (scalar iT input)
iT_scalar = 1;
vel_scalar = getWindSpeedT(wind, iT_scalar, 5.0);

assert(length(vel_scalar) == 1);

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions