This repository has been archived by the owner on Oct 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
run_all.bat
107 lines (81 loc) · 4.61 KB
/
run_all.bat
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
@echo off
rem ------------------------------------------------------------
rem This batch runs all FMUs of the FmuSDK and stores simulation
rem results in CSV files, one file per simulation run.
rem Command to run the 32 bit version: run_all
rem Command to run the 64 bit version: run_all -win64
rem Copyright QTronic GmbH. All rights reserved.
rem ------------------------------------------------------------
setlocal
if "%1"=="-win64" (
set FMI_PLATFORM=win64
) else (
set FMI_PLATFORM=win32
)
echo -----------------------------------------------------------
echo Running all FMUs 1.0 of the FmuSDK ...
echo -----------------------------------------------------------
call fmusim me10 fmu10\fmu\me\%FMI_PLATFORM%\bouncingBall.fmu 4 0.01 0 c %1
move /Y result.csv result_me10%FMI_PLATFORM%_bouncingBall.csv
echo -----------------------------------------------------------
call fmusim cs10 fmu10\fmu\cs\%FMI_PLATFORM%\bouncingBall.fmu 4 0.01 0 c %1
move /Y result.csv result_cs10%FMI_PLATFORM%_bouncingBall.csv
echo -----------------------------------------------------------
call fmusim me10 fmu10\fmu\me\%FMI_PLATFORM%\vanDerPol.fmu 5 0.1 0 c %1
move /Y result.csv result_me10%FMI_PLATFORM%_vanDerPol.csv
echo -----------------------------------------------------------
call fmusim cs10 fmu10\fmu\cs\%FMI_PLATFORM%\vanDerPol.fmu 5 0.1 0 c %1
move /Y result.csv result_cs10%FMI_PLATFORM%_vanDerPol.csv
echo -----------------------------------------------------------
call fmusim me10 fmu10\fmu\me\%FMI_PLATFORM%\dq.fmu 1 0.1 0 c %1
move /Y result.csv result_me10%FMI_PLATFORM%_dq.csv
echo -----------------------------------------------------------
call fmusim cs10 fmu10\fmu\cs\%FMI_PLATFORM%\dq.fmu 1 0.1 0 c %1
move /Y result.csv result_cs10%FMI_PLATFORM%_dq.csv
echo -----------------------------------------------------------
call fmusim me10 fmu10\fmu\me\%FMI_PLATFORM%\inc.fmu 15 0.1 0 c %1
move /Y result.csv result_me10%FMI_PLATFORM%_inc.csv
echo -----------------------------------------------------------
call fmusim cs10 fmu10\fmu\cs\%FMI_PLATFORM%\inc.fmu 15 0.1 0 c %1
move /Y result.csv result_cs10%FMI_PLATFORM%_inc.csv
echo -----------------------------------------------------------
call fmusim me10 fmu10\fmu\me\%FMI_PLATFORM%\values.fmu 12 0.1 0 c %1
move /Y result.csv result_me10%FMI_PLATFORM%_values.csv
echo -----------------------------------------------------------
call fmusim cs10 fmu10\fmu\cs\%FMI_PLATFORM%\values.fmu 12 0.1 0 c %1
move /Y result.csv result_cs10%FMI_PLATFORM%_values.csv
echo -----------------------------------------------------------
echo Running all FMUs 2.0 of the FmuSDK ...
echo -----------------------------------------------------------
call fmusim me20 fmu20\fmu\me\%FMI_PLATFORM%\bouncingBall.fmu 4 0.01 0 c %1
move /Y result.csv result_me20%FMI_PLATFORM%_bouncingBall.csv
echo -----------------------------------------------------------
call fmusim cs20 fmu20\fmu\cs\%FMI_PLATFORM%\bouncingBall.fmu 4 0.01 0 c %1
move /Y result.csv result_cs20%FMI_PLATFORM%_bouncingBall.csv
echo -----------------------------------------------------------
call fmusim me20 fmu20\fmu\me\%FMI_PLATFORM%\vanDerPol.fmu 5 0.1 0 c %1
move /Y result.csv result_me20%FMI_PLATFORM%_vanDerPol.csv
echo -----------------------------------------------------------
call fmusim cs20 fmu20\fmu\cs\%FMI_PLATFORM%\vanDerPol.fmu 5 0.1 0 c %1
move /Y result.csv result_cs20%FMI_PLATFORM%_vanDerPol.csv
echo -----------------------------------------------------------
call fmusim me20 fmu20\fmu\me\%FMI_PLATFORM%\dq.fmu 1 0.1 0 c %1
move /Y result.csv result_me20%FMI_PLATFORM%_dq.csv
echo -----------------------------------------------------------
call fmusim cs20 fmu20\fmu\cs\%FMI_PLATFORM%\dq.fmu 1 0.1 0 c %1
move /Y result.csv result_cs20%FMI_PLATFORM%_dq.csv
echo -----------------------------------------------------------
call fmusim me20 fmu20\fmu\me\%FMI_PLATFORM%\inc.fmu 15 0.1 0 c %1
move /Y result.csv result_me20%FMI_PLATFORM%_inc.csv
echo -----------------------------------------------------------
call fmusim cs20 fmu20\fmu\cs\%FMI_PLATFORM%\inc.fmu 15 0.1 0 c %1
move /Y result.csv result_cs20%FMI_PLATFORM%_inc.csv
echo -----------------------------------------------------------
call fmusim me20 fmu20\fmu\me\%FMI_PLATFORM%\values.fmu 12 0.1 0 c %1
move /Y result.csv result_me20%FMI_PLATFORM%_values.csv
echo -----------------------------------------------------------
call fmusim cs20 fmu20\fmu\cs\%FMI_PLATFORM%\values.fmu 12 0.1 0 c %1
move /Y result.csv result_cs20%FMI_PLATFORM%_values.csv
endlocal
rem keep window visible for user
pause