-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcaller.m
28 lines (24 loc) · 1.17 KB
/
caller.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
%{
Date: 12/12/2022
Author: Martin E. Liza
File: caller.m
Def: Example on how to run parserCaller using matlab.
NOTE: MATLAB has to be called from the CLI; if not MATLAB
wont load the SU2 paths properly.
Req: 1) python3 and all packages listed in the runSimulation.py
Author Date Revision
------------------------------------------------------------
Martin E. Liza 01/29/2022 Initial version.
Martin E. Liza 06/14/2022 Added convergence flag.
Martin E. Liza 12/12/2022 Clened it up and added comments.
%}
% User inputs
SU2_simulation = 'rans'; % inviscid or rans
mach_number = '0.5'; % [ ], 0.8 is the default mach
angle_of_attack = '10'; % [deg], 0.0 is the default angle
abs_path = false; % if false creates in current directory
out_name = 'tomato'; % always give a name
model_name = false; % only for rans, if false default to SA. Other model are
convergence = '5'; % always give a convergence criteria
out = parserCaller(SU2_simulation, model_name, mach_number, ...
angle_of_attack, convergence, abs_path, out_name)