-
Notifications
You must be signed in to change notification settings - Fork 0
/
B_TS_HH_Gen.m
46 lines (34 loc) · 1.15 KB
/
B_TS_HH_Gen.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
%% B_TS_HH_Gen
% Wrapper script to generate hub height turbsim files
clear; tic;
%% Defaults
% Wind Parameters
Disturbance.U_ref = 10;
Disturbance.Type = 'Turb';
Disturbance.Class = 'A';
% Scripts & Directories
Simulation.Name_TSEdit = 'A3_TSedit_Simple';
save_dir = 'WindFiles';
save_name = '<Class>_<U_ref>_<#>';
%% Variation
N = 2; %6;
%% Loop
for U_index = 1:length(UU)
for C_index = 1:length(CC)
for n = 1:N
%Assign U_ref
Disturbance.U_ref = UU(U_index);
%Assign Class
Disturbance.Class = CC{C_index};
%Save Name
save_name = [Disturbance.Class,'_',num2str(Disturbance.U_ref),'_',num2str(n),'.hh'];
%Debug
disp(['Making HH file ', save_name,', U_ref: ',...
num2str(Disturbance.U_ref), ', Class: ', Disturbance.Class,...
', ',num2str(n),' of ',num2str(N)]);
%Run TurbSim Simulation
A2_1_Sim_TurbSim;
end
end
end
toc;