11<Lems >
22
3- <Target component =" sim" />
4-
3+ <Target component =" sim" />
4+
55 <Dimension name =" length" l =" 1" />
66 <Dimension name =" time" t =" 1" />
77 <Dimension name =" speed" l =" 1" t =" -1" />
88 <Dimension name =" acceleration" l =" 1" t =" -2" />
9-
9+
1010 <Unit symbol =" s" dimension =" time" />
1111 <Unit symbol =" m" dimension =" length" />
1212 <Unit symbol =" m_per_s" dimension =" speed" />
2020 <Parameter name =" t1" dimension =" time" />
2121 <Parameter name =" t2" dimension =" time" />
2222 <Exposure name =" height" dimension =" time" />
23-
23+
2424 <Constant name =" AccG" dimension =" acceleration" value =" 9.8m_per_s2" />
25-
25+
2626 <Dynamics >
2727 <StateVariable name =" height" exposure =" height" dimension =" length" />
2828 <StateVariable name =" vel" dimension =" speed" />
29-
29+
3030 <OnStart >
3131 <StateAssignment variable =" height" value =" y0" />
3232 <StateAssignment variable =" vel" value =" 0" />
3333 </OnStart >
34-
34+
3535 <ConditionalDerivedVariable name =" effacc" dimension =" acceleration" >
3636 <Case condition =" t .lt. t1" value =" -1 * AccG" />
3737 <Case condition =" t .lt. t2" value =" -0.1 * AccG" />
4848 </OnCondition >
4949 </Dynamics >
5050 </ComponentType >
51-
52-
5351
54-
52+
53+
54+
5555 <ball id =" ball" fbounce =" 0.9" y0 =" 5m" t1 =" 5s" t2 =" 10s" />
56-
57-
56+
57+
5858 <Include file =" SingleSimulation.xml" />
59-
59+
6060
6161
6262 <Simulation id =" sim" length =" 20s" step =" 0.01s" target =" ball" >
6363 <Display id =" disp1" title =" Net1" xmin =" 0" xmax =" 30" ymin =" -1" ymax =" 6" timeScale =" 1s" >
6464 <Line id =" g0" timeScale =" 1s" quantity =" height" scale =" 1m" color =" #0000f0" />
65-
66- </Display >
67-
68-
69-
65+
66+ </Display >
67+
68+
69+
7070 </Simulation >
7171
72- </Lems >
72+ </Lems >
0 commit comments