forked from OpenFAST/r-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
updateInputFiles.m
45 lines (34 loc) · 1.31 KB
/
updateInputFiles.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
%% example files in the OpenFAST glue-code regression tests:
caseFile = './glue-codes/fast/CaseList.md';
[pathstr] = fileparts(caseFile);
fid = fopen(caseFile);
caseNames = textscan(fid,'%s');
caseNames = caseNames{1};
fclose(fid);
for i= 1:length(caseNames)
casePath = [ pathstr filesep caseNames{i} ];
ConvertFAST8_16to17( [casePath filesep caseNames{i} '.fst'], casePath );
end
%% example files in the OpenFAST BeamDyn regression tests:
caseFile = './modules-local/beamdyn/CaseList.md';
[pathstr] = fileparts(caseFile);
fid = fopen(caseFile);
caseNames = textscan(fid,'%s');
caseNames = caseNames{1};
fclose(fid);
for i= 1:length(caseNames)
casePath = [ pathstr filesep caseNames{i} ];
ConvertBeamDynDriver( [casePath filesep 'bd_driver.inp'], casePath );
end
%% example files in the OpenFAST BeamDyn documentation:
docsPath = '../../docs/source/user/beamdyn/examples/';
caseNames = strcat(docsPath, {'bd_driver_dynamic_nrel_5mw.inp', 'bd_driver_static_nrel_5mw.inp'} );
for i= 1:length(caseNames)
ConvertBeamDynDriver( caseNames{i}, docsPath );
end
%% example files in the OpenFAST AeroDyn documentation:
docsPath = '../../docs/source/user/aerodyn/examples/';
caseNames = strcat(docsPath, {'ad_driver_example.inp'} );
for i= 1:length(caseNames)
ConvertAeroDynDriver( caseNames{i}, docsPath );
end