-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConfigRead2.m
More file actions
28 lines (23 loc) · 805 Bytes
/
ConfigRead2.m
File metadata and controls
28 lines (23 loc) · 805 Bytes
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
function [env2, meo] = ConfigRead2(FileName, meo)
% -------------------------------------------------------------------------
% SwanVLM
% Version 5 (EXPORT)
% April 2009
% Copyright (C) 2008, 2009 Chris Walton (368404)
% ConfigRead.m: Reads enviromental and meshing tabs from input excel file.
% -------------------------------------------------------------------------
% Open user's excel file with xlsread and read the enviroment (second) tab
[num,str]=xlsread(FileName, 2);
% Process numerical data into variables
env2.rho = num(1);
env2.V = num(2);
env2.AlphaMin = num(3);
env2.AlphaMax = num(4);
env2.AlphaStep = num(5);
env2.beta = num(6);
env2.CofG = [num(8) num(9) num(10)];
% Repeat for the mesh tab
[num,str]=xlsread(FileName, 3);
meo.chordwisepanels = num(1);
meo.totalpanels = num(2);
end