-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathVerticalAerodynamicSurfaces1.m
More file actions
55 lines (41 loc) · 1.24 KB
/
Copy pathVerticalAerodynamicSurfaces1.m
File metadata and controls
55 lines (41 loc) · 1.24 KB
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
47
48
49
50
51
52
53
54
55
function VerticalAerodynamicSurfaces1(geo,result,env)
% Set input file path
InputRelPath = 'Input/';
% Ask user for input filename
[filename, FileExists, meo.UserFileName] = InputConfig1(InputRelPath);
if FileExists ~= 1
DisplayUserUpdate(6)
return
else
DisplayUserUpdate(1)
end
tic
% Read enviroment setup
[env2, meo] = ConfigRead2(filename, meo);
DisplayUserUpdate(2)
% Generate Mesh
[meo] = MeshGenerate4(filename, meo);
DisplayUserUpdate(3)
% Generate Inf. Coeff. Matrix
[gamma2] = GenerateInfCoeff3(meo);
% Run solution for alpha's
[result2, gamma2] = solver2(env2, meo, gamma2);
DisplayUserUpdate(4)
% Save result
SaveResults1(filename, result2,meo)
DisplayUserUpdate(7)
% Stop runtime stopwawtch
toc
% Inform user
DisplayUserUpdate(5, filename)
% Make nice pictures?
UserResponse = input('\n Would you like to make some nice pictures?\nN.B. Computer/MATLAB must be left to run undisturbed while animation is generated\n[Y/N]: ', 's');
if UserResponse == 'Y' || UserResponse == 'y'
MakePictures2(result2,meo,env2,gamma2)
end
% Make nice pictures?
UserResponse = input('\n Would you like to get the full geometry plot?\n[Y/N]: ', 's');
if UserResponse == 'Y' || UserResponse == 'y'
GeometryPlot(geo,meo,result2,result,env,env2)
end
end