Skip to content

Commit 4bcac9d

Browse files
committed
WIP
1 parent 5eb96eb commit 4bcac9d

File tree

2 files changed

+37
-11
lines changed

2 files changed

+37
-11
lines changed

testsuite/resources/sim.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
"components": [
55
{
66
"name": "Controller",
7-
"type": "co-simulation",
7+
"type": "FMI 2 CS",
88
"path": "resources/Controller.fmu",
9-
"variables": [
10-
"output"
11-
]
9+
"variables": ["output"]
1210
}
1311
],
1412
"solver": {
@@ -22,18 +20,13 @@
2220
"name": "Plant",
2321
"type": "model exchange",
2422
"path": "resources/Plant.fmu",
25-
"variables": [
26-
"input",
27-
"output"
28-
]
23+
"variables": ["input", "output"]
2924
},
3025
{
3126
"name": "Sensor",
3227
"type": "model exchange",
3328
"path": "resources/Sensor.fmu",
34-
"variables": [
35-
"output"
36-
]
29+
"variables": ["output"]
3730
}
3831
],
3932
"solver": {
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"temp dir": "temp",
3+
"working dir": "working",
4+
"simulation units": [
5+
{
6+
"components": [
7+
{
8+
"name": "",
9+
"type": "FMI 2 ME",
10+
"path": "resources/Controller.fmu",
11+
"variables": {
12+
"output": 15,
13+
"state1": 0
14+
}
15+
}
16+
],
17+
"solver": {
18+
"type": "model exchange",
19+
"solver": "CVODE",
20+
"stepSize": 0.01,
21+
"tolerance": 1e-5
22+
},
23+
"connections": []
24+
}
25+
],
26+
"connections": [],
27+
"result file": "simulation_result.csv",
28+
"simulation settings": {
29+
"start time": 0.0,
30+
"stop time": 10.0,
31+
"tolerance": 1e-6
32+
}
33+
}

0 commit comments

Comments
 (0)