-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.cpp
More file actions
36 lines (35 loc) · 914 Bytes
/
main.cpp
File metadata and controls
36 lines (35 loc) · 914 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
29
30
31
32
33
34
35
36
#include<string>
#include<vector>
#include "PlungingMotion.h"
using namespace std;
int main(int argc, char *argv[]) {
string dataconfigue("dataconfigue");
int mode = 0;
for(int c=1; c<argc; ++c) {
if(0==string("data").compare(argv[c])) {
dataconfigue = argv[c+1];
}
if(0==string("exp").compare(argv[c])) {
mode = 1;
}
if(0==string("airfoil").compare(argv[c])) {
mode = 2;
}
}
PlungingMotion plungdata(dataconfigue);
int dir = 1;
for(int c=1; c<argc; ++c) {
if(0==string("processinverse").compare(argv[c])) {
dir = -1;
}
}
if(mode==1) {
plungdata.ProcessEXPWingData(dir);
} else if(mode==0) {
plungdata.ProcessCFDWingData(dir);
} else if(mode==2) {
plungdata.ProcessCFDAirfoilData(dir);
}
printf("finished\n");
return 0;
}