CEM and enviro modules as used for umerc#96
Conversation
dev/dynamics/force_sat/bode_fit.m
Outdated
| % load data from MEEM (hardcoded, will replace later) | ||
| dat = readmatrix('mdocean/mdocean/inputs/validation/MEEM_validation/damping.csv'); | ||
| w = dat(:,1); | ||
| mag = dat(:,2); |
There was a problem hiding this comment.
the data you are currently testing with is actually (k, B) rather than (w, mag).
try the following for better test data:
p = parameters();
b = var_bounds();
X = [b.X_noms; 1];
[~, ~, ~, ~, val] = simulation(X,p);
w = val.w;
F = val.gamma_f_over_rho_g * p.rho_w * p.g * p.Hs / (2*sqrt(2)) ;
X = val.X_f;
mag_matrix = X ./ F;
mag = mag_matrix(1,:); % all freqs at lowest wave height
dev/environment/component.m
Outdated
There was a problem hiding this comment.
This file is empty, please check and push again
❌ 40 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
…ax=inf in max CW check
…ring/MDOcean into anthony-enviro
…ring/MDOcean into anthony-enviro
…ring/MDOcean into anthony-enviro
…ring/MDOcean into anthony-enviro
…ring/MDOcean into anthony-enviro
…cean into anthony-enviro
There was a problem hiding this comment.
move to appropriate foldere
There was a problem hiding this comment.
rename to remove _3
| % calibrations of nominal values | ||
| b.F_max_nom = find_nominal_inputs(b, parameters(mode)); | ||
|
|
||
| % FIXME: reminder to uncomment after debugging |
There was a problem hiding this comment.
don't merge this
| nP = numel(pVals); | ||
|
|
||
| % interpolated values | ||
| %varsAll = Tsub.Properties.VariableNames; |
There was a problem hiding this comment.
remove commented
| function [delta_CEM_CO2, CEM_wec_capacity, delta_CEM_grid_cost,margin_to_viability] = CEM_lookup_table(zeta, omega_n, capacity_cost, power_lim_frac, B_p, location, params) | ||
|
|
||
|
|
||
| %if zeta == 0.05 && omega_n == 0.4 && strcmp(location,'ISONE') |
There was a problem hiding this comment.
remove commented
| delta_CEM_CO2 = CEM_CO2_no_wave - CEM_CO2; | ||
|
|
||
| %{ | ||
| isValidLookupLocation = true;% placeholder |
There was a problem hiding this comment.
remove commented
| in.location, in); | ||
|
|
||
|
|
||
| % old code that doesn't normalize with the number of WECs |
There was a problem hiding this comment.
remove commented
No description provided.