Skip to content

Commit a325cbc

Browse files
committed
Update example models
1 parent 2d77987 commit a325cbc

5 files changed

Lines changed: 53 additions & 63 deletions

File tree

static/examples/bouncing-ball.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"version": "1.0.0",
33
"metadata": {
4-
"created": "2026-01-25T00:40:48.165Z",
5-
"modified": "2026-01-25T00:40:48.165Z",
4+
"created": "2026-05-05T11:55:55.289Z",
5+
"modified": "2026-05-05T11:55:55.289Z",
66
"name": "bouncing-ball"
77
},
88
"graph": {
@@ -99,8 +99,8 @@
9999
"type": "Constant",
100100
"name": "gravity",
101101
"position": {
102-
"x": 390,
103-
"y": 250
102+
"x": 440,
103+
"y": 160
104104
},
105105
"inputs": [],
106106
"outputs": [
@@ -115,7 +115,7 @@
115115
],
116116
"params": {
117117
"value": "-g",
118-
"_rotation": 0
118+
"_rotation": 1
119119
},
120120
"pinnedParams": []
121121
},
@@ -285,7 +285,7 @@
285285
"type": "pathsim.events.ZeroCrossing",
286286
"name": "Bounce",
287287
"position": {
288-
"x": 1320,
288+
"x": 1220,
289289
"y": 200
290290
},
291291
"params": {
@@ -298,7 +298,7 @@
298298
"type": "pathsim.events.Condition",
299299
"name": "Zeno",
300300
"position": {
301-
"x": 1380,
301+
"x": 1280,
302302
"y": 260
303303
},
304304
"params": {
@@ -312,13 +312,13 @@
312312
},
313313
"simulationSettings": {
314314
"duration": "50",
315-
"dt": "",
315+
"dt": null,
316316
"solver": "RKBS32",
317317
"adaptive": true,
318-
"atol": "",
319-
"rtol": "",
320-
"ftol": "",
321-
"dt_min": "",
318+
"atol": null,
319+
"rtol": null,
320+
"ftol": null,
321+
"dt_min": null,
322322
"dt_max": "0.05",
323323
"ghostTraces": 8,
324324
"plotResults": true

static/examples/feedback-system.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"version": "1.0.0",
33
"metadata": {
4-
"created": "2026-01-25T00:44:51.546Z",
5-
"modified": "2026-01-25T00:44:51.546Z",
4+
"created": "2026-05-05T11:54:54.306Z",
5+
"modified": "2026-05-05T11:54:54.306Z",
66
"name": "feedback-system"
77
},
88
"graph": {
@@ -53,7 +53,7 @@
5353
"name": "Feedback",
5454
"position": {
5555
"x": 910,
56-
"y": 460
56+
"y": 480
5757
},
5858
"inputs": [
5959
{
@@ -238,7 +238,7 @@
238238
"atol": "1e-6",
239239
"rtol": "1e-4",
240240
"ftol": "1e-9",
241-
"dt_min": "",
241+
"dt_min": null,
242242
"dt_max": "0.1",
243243
"ghostTraces": 6,
244244
"plotResults": true

static/examples/pid-subsystem.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"version": "1.0.0",
33
"metadata": {
4-
"created": "2026-01-25T00:43:37.789Z",
5-
"modified": "2026-01-25T00:43:37.789Z",
4+
"created": "2026-05-05T11:37:27.297Z",
5+
"modified": "2026-05-05T11:37:27.297Z",
66
"name": "pid-subsystem"
77
},
88
"graph": {
@@ -393,7 +393,8 @@
393393
"sourceNodeId": "pid",
394394
"sourcePortIndex": 0,
395395
"targetNodeId": "4674b251-a882-45b9-baf1-01db4d0f7a22",
396-
"targetPortIndex": 0
396+
"targetPortIndex": 0,
397+
"waypoints": []
397398
},
398399
{
399400
"id": "09fb7ca4-d71c-46dd-b4bf-95d7275f74b2",
@@ -412,8 +413,8 @@
412413
{
413414
"id": "4d19383a-86fe-4605-82d4-405f83b4cb27",
414415
"position": {
415-
"x": 1060,
416-
"y": 350
416+
"x": 1070,
417+
"y": 360
417418
},
418419
"isUserWaypoint": true
419420
}
@@ -445,8 +446,8 @@
445446
"atol": "1e-8",
446447
"rtol": "1e-5",
447448
"ftol": "1e-9",
448-
"dt_min": "",
449-
"dt_max": "",
449+
"dt_min": null,
450+
"dt_max": null,
450451
"ghostTraces": 6,
451452
"plotResults": true
452453
}

static/examples/squarewave-lpf.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"version": "1.0.0",
33
"metadata": {
4-
"created": "2026-01-25T00:49:57.129Z",
5-
"modified": "2026-01-25T00:49:57.130Z",
4+
"created": "2026-05-05T11:33:21.201Z",
5+
"modified": "2026-05-05T11:33:21.201Z",
66
"name": "squarewave-lpf"
77
},
88
"graph": {
@@ -12,7 +12,7 @@
1212
"type": "SquareWaveSource",
1313
"name": "Signal",
1414
"position": {
15-
"x": 710,
15+
"x": 640,
1616
"y": 260
1717
},
1818
"inputs": [],
@@ -36,7 +36,7 @@
3636
"type": "ButterworthLowpassFilter",
3737
"name": "LPF",
3838
"position": {
39-
"x": 880,
39+
"x": 890,
4040
"y": 260
4141
},
4242
"inputs": [
@@ -70,7 +70,7 @@
7070
"type": "Scope",
7171
"name": "Result",
7272
"position": {
73-
"x": 1040,
73+
"x": 1100,
7474
"y": 250
7575
},
7676
"inputs": [
@@ -125,8 +125,8 @@
125125
{
126126
"id": "34f0e638-760e-421b-9d4a-6fc606387a87",
127127
"position": {
128-
"x": 650,
129-
"y": 110
128+
"x": 580,
129+
"y": 60
130130
},
131131
"content": "Filtering the high frequency contents out of a square wave with a low pass filter. \n\nParameters can be pinned, see block property dialog (double click).\n\nHover over **Scope** blocks to see plot preview. Or just pin all previews (P).",
132132
"width": 440,
@@ -140,15 +140,15 @@
140140
"code": ""
141141
},
142142
"simulationSettings": {
143-
"duration": "",
144-
"dt": "",
143+
"duration": null,
144+
"dt": null,
145145
"solver": "SSPRK22",
146146
"adaptive": true,
147-
"atol": "",
147+
"atol": null,
148148
"rtol": "1e-2",
149-
"ftol": "",
150-
"dt_min": "",
151-
"dt_max": "",
149+
"ftol": null,
150+
"dt_min": null,
151+
"dt_max": null,
152152
"ghostTraces": 0,
153153
"plotResults": true
154154
}

static/examples/vanderpol.json

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"version": "1.0.0",
33
"metadata": {
4-
"created": "2026-01-25T00:35:40.025Z",
5-
"modified": "2026-01-25T00:35:40.025Z",
4+
"created": "2026-05-05T11:35:51.117Z",
5+
"modified": "2026-05-05T11:35:51.117Z",
66
"name": "vanderpol"
77
},
88
"graph": {
@@ -37,8 +37,7 @@
3737
],
3838
"params": {
3939
"initial_value": "x20"
40-
},
41-
"color": "#E57373"
40+
}
4241
},
4342
{
4443
"id": "440919f7-c63c-40d7-8f78-67871a0f89f6",
@@ -70,8 +69,7 @@
7069
],
7170
"params": {
7271
"initial_value": "x10"
73-
},
74-
"color": "#E57373"
72+
}
7573
},
7674
{
7775
"id": "03d10f15-3f0e-48f4-881b-281485faefd6",
@@ -112,8 +110,7 @@
112110
"params": {
113111
"operations": "\"-+\"",
114112
"_rotation": 2
115-
},
116-
"color": "#E57373"
113+
}
117114
},
118115
{
119116
"id": "9e7d89cc-bd31-4615-b34b-1b7a11850be3",
@@ -146,8 +143,7 @@
146143
"params": {
147144
"exponent": "2",
148145
"_rotation": 0
149-
},
150-
"color": "#E57373"
146+
}
151147
},
152148
{
153149
"id": "8db3f239-5418-4068-b92c-18ee1d42c427",
@@ -180,8 +176,7 @@
180176
"params": {
181177
"gain": "mu",
182178
"_rotation": 0
183-
},
184-
"color": "#E57373"
179+
}
185180
},
186181
{
187182
"id": "3c9f84cd-ee77-4232-9596-aaf057dd0254",
@@ -205,8 +200,7 @@
205200
"params": {
206201
"value": "1",
207202
"_rotation": 2
208-
},
209-
"color": "#E57373"
203+
}
210204
},
211205
{
212206
"id": "f94de1eb-7d85-42ab-8af5-69e0bd3cbf7d",
@@ -246,8 +240,7 @@
246240
],
247241
"params": {
248242
"_rotation": 2
249-
},
250-
"color": "#E57373"
243+
}
251244
},
252245
{
253246
"id": "ee2391d1-5c61-45de-859b-ff98ad13f4a4",
@@ -288,8 +281,7 @@
288281
"params": {
289282
"operations": "\"+-\"",
290283
"_rotation": 0
291-
},
292-
"color": "#E57373"
284+
}
293285
},
294286
{
295287
"id": "34e172de-4aa4-4f33-9844-f78184aa1a19",
@@ -312,8 +304,7 @@
312304
"outputs": [],
313305
"params": {
314306
"_rotation": 3
315-
},
316-
"color": "#E57373"
307+
}
317308
},
318309
{
319310
"id": "b2b48c31-985f-4917-bef9-6dcecdc2e928",
@@ -336,8 +327,7 @@
336327
"outputs": [],
337328
"params": {
338329
"_rotation": 3
339-
},
340-
"color": "#E57373"
330+
}
341331
}
342332
],
343333
"connections": [
@@ -436,8 +426,7 @@
436426
},
437427
"content": "# Van der Pol\n\nThis is the Van der Pol system \n\n$$ \\ddot{x} - \\mu (1 - x^2) \\dot{x} + x = 0$$\n\nmodeled as discrete components.\n",
438428
"width": 200,
439-
"height": 120,
440-
"color": "#E57373"
429+
"height": 120
441430
}
442431
]
443432
},
@@ -447,14 +436,14 @@
447436
},
448437
"simulationSettings": {
449438
"duration": "3*mu",
450-
"dt": "",
439+
"dt": null,
451440
"solver": "GEAR52A",
452441
"adaptive": true,
453442
"atol": "1e-6",
454443
"rtol": "1e-4",
455444
"ftol": "1e-8",
456-
"dt_min": "",
457-
"dt_max": "",
445+
"dt_min": null,
446+
"dt_max": null,
458447
"ghostTraces": 0,
459448
"plotResults": true
460449
}

0 commit comments

Comments
 (0)