-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated json5_write so that the resulting file is mostly Json5 (unquo…
…ted keys, non-escaped unicode), where allowed.
- Loading branch information
Showing
13 changed files
with
1,899 additions
and
3,279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
{ | ||
"header": { | ||
"name": "BouncingBall", | ||
"description": "Simple sim explorer with the basic BouncingBall FMU (ball dropped from h=1m", | ||
"modelFile": "OspSystemStructure.xml", | ||
"simulator": "OSP", | ||
"logLevel": "fatal", | ||
"timeUnit": "second", | ||
"variables": { | ||
"g": ["bb","g","Gravity acting on the ball"], | ||
"e": ["bb","e","Coefficient of restitution"], | ||
"v_min": ["bb","v_min","Velocity below which the ball stops bouncing"], | ||
"h": ["bb","h","Position (z) of the ball"], | ||
"v_z": ["bb","der(h)","Derivative of h (speed in z-direction"], | ||
"v": ["bb","v","Velocity of ball"], | ||
"a_z": ["bb","der(v)","Derivative of v (acceleration in z-direction)"]}}, | ||
"base": { | ||
"description": "Variable settings for the base case. All other cases are based on that", | ||
"spec": { | ||
"stepSize": 0.01, | ||
"stopTime": 3.0, | ||
"g": -9.81, | ||
"e": 1.0, | ||
"h": 1.0, | ||
"h@step": "result", | ||
"[email protected]": "result"}}, | ||
"restitution": { | ||
"description": "Smaller coefficient of restitution e", | ||
"spec": { | ||
"e": 0.5}}, | ||
"restitutionAndGravity": { | ||
"description": "Based restitution (e change), change also the gravity g", | ||
"parent": "restitution", | ||
"spec": { | ||
"g": -1.5}}, | ||
"gravity": { | ||
"description": "Gravity like on the moon", | ||
"spec": { | ||
"g": -1.5}}} | ||
header: { | ||
name: 'BouncingBall', | ||
description: 'Simple sim explorer with the basic BouncingBall FMU (ball dropped from h=1m', | ||
modelFile: 'OspSystemStructure.xml', | ||
simulator: 'OSP', | ||
logLevel: 'fatal', | ||
timeUnit: 'second', | ||
variables: { | ||
g: ['bb','g','Gravity acting on the ball'], | ||
e: ['bb','e','Coefficient of restitution'], | ||
v_min: ['bb','v_min','Velocity below which the ball stops bouncing'], | ||
h: ['bb','h','Position (z) of the ball'], | ||
v_z: ['bb','der(h)','Derivative of h (speed in z-direction'], | ||
v: ['bb','v','Velocity of ball'], | ||
a_z: ['bb','der(v)','Derivative of v (acceleration in z-direction)']}}, | ||
base: { | ||
description: 'Variable settings for the base case. All other cases are based on that', | ||
spec: { | ||
stepSize: 0.01, | ||
stopTime: 3.0, | ||
g: -9.81, | ||
e: 1.0, | ||
h: 1.0, | ||
'h@step': 'result', | ||
'[email protected]': 'result'}}, | ||
restitution: { | ||
description: 'Smaller coefficient of restitution e', | ||
spec: { | ||
e: 0.5}}, | ||
restitutionAndGravity: { | ||
description: 'Based restitution (e change), change also the gravity g', | ||
parent: 'restitution', | ||
spec: { | ||
g: -1.5}}, | ||
gravity: { | ||
description: 'Gravity like on the moon', | ||
spec: { | ||
g: -1.5}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
{ | ||
"header": { | ||
"name": "BouncingBall3D", | ||
"description": "Simple sim explorer with the 3D BouncingBall FMU (3D position and speed)", | ||
"modelFile": "OspSystemStructure.xml", | ||
"simulator": "OSP", | ||
"logLevel": "fatal", | ||
"timeUnit": "second", | ||
"variables": { | ||
"g": ["bb","g","Gravity acting on the ball"], | ||
"e": ["bb","e","Coefficient of restitution"], | ||
"x": ["bb","pos","3D Position of the ball in meters"], | ||
"v": ["bb","speed","3D speed of ball in meters/second"], | ||
"x_b": ["bb","p_bounce","Expected 3D Position where the next bounce will occur (in meters)"]}}, | ||
"base": { | ||
"description": "Ball dropping from height 1 m. Results should be the same as the basic BouncingBall", | ||
"spec": { | ||
"stepSize": 0.01, | ||
"stopTime": 3, | ||
"g": 9.81, | ||
"e": 1.0, | ||
"x[2]": 39.37007874015748, | ||
"x@step": "result", | ||
"v@step": "result", | ||
"x_b@step": "res"}}, | ||
"restitution": { | ||
"description": "Smaller coefficient of restitution e", | ||
"spec": { | ||
"e": 0.5}}, | ||
"restitutionAndGravity": { | ||
"description": "Based restitution (e change), change also the gravity g", | ||
"parent": "restitution", | ||
"spec": { | ||
"g": 1.5}, | ||
"assert": { | ||
"1@A": ["g==1.5","Check setting of gravity (about 1/7 of earth)"], | ||
"2@ALWAYS": ["e==0.5","Check setting of restitution"], | ||
"3@F": ["x[2] \u003c 3.0","For long times the z-position of the ball remains small (loss of energy)"], | ||
"[email protected]": ["abs(x[2]) \u003c 0.4","Close to bouncing time the ball should be close to the floor"]}}, | ||
"gravity": { | ||
"description": "Gravity like on the moon", | ||
"spec": { | ||
"g": 1.5}, | ||
"assert": { | ||
"6@ALWAYS": ["g==9.81","Check wrong gravity."]}}} | ||
header: { | ||
name: 'BouncingBall3D', | ||
description: 'Simple sim explorer with the 3D BouncingBall FMU (3D position and speed)', | ||
modelFile: 'OspSystemStructure.xml', | ||
simulator: 'OSP', | ||
logLevel: 'fatal', | ||
timeUnit: 'second', | ||
variables: { | ||
g: ['bb','g','Gravity acting on the ball'], | ||
e: ['bb','e','Coefficient of restitution'], | ||
x: ['bb','pos','3D Position of the ball in meters'], | ||
v: ['bb','speed','3D speed of ball in meters/second'], | ||
x_b: ['bb','p_bounce','Expected 3D Position where the next bounce will occur (in meters)']}}, | ||
base: { | ||
description: 'Ball dropping from height 1 m. Results should be the same as the basic BouncingBall', | ||
spec: { | ||
stepSize: 0.01, | ||
stopTime: 3, | ||
g: 9.81, | ||
e: 1.0, | ||
'x[2]': 39.37007874015748, | ||
'x@step': 'result', | ||
'v@step': 'result', | ||
'x_b@step': 'res'}}, | ||
restitution: { | ||
description: 'Smaller coefficient of restitution e', | ||
spec: { | ||
e: 0.5}}, | ||
restitutionAndGravity: { | ||
description: 'Based restitution (e change), change also the gravity g', | ||
parent: 'restitution', | ||
spec: { | ||
g: 1.5}, | ||
assert: { | ||
'1@A': ['g==1.5','Check setting of gravity (about 1/7 of earth)'], | ||
'2@ALWAYS': ['e==0.5','Check setting of restitution'], | ||
'3@F': ['x[2] < 3.0','For long times the z-position of the ball remains small (loss of energy)'], | ||
'[email protected]': ['abs(x[2]) < 0.4','Close to bouncing time the ball should be close to the floor']}}, | ||
gravity: { | ||
description: 'Gravity like on the moon', | ||
spec: { | ||
g: 1.5}, | ||
assert: { | ||
'6@ALWAYS': ['g==9.81','Check wrong gravity.']}}} |
Oops, something went wrong.