@@ -276,24 +276,24 @@ You can view and download this file on Github: `HydraulicActuator2Arms.py <https
276
276
mbs.WaitForUserToContinue()
277
277
278
278
# use %timeit to measure time!
279
- exu .SolveDynamic(mbs, simulationSettings, showHints = False )
279
+ mbs .SolveDynamic(simulationSettings, showHints = False )
280
280
281
281
282
282
if True : # use this to reload the solution and use SolutionViewer
283
283
SC .visualizationSettings.general.autoFitScene = False
284
- from exudyn.interactive import SolutionViewer
285
- SolutionViewer(mbs ) # can also be entered in IPython ...
284
+
285
+ mbs. SolutionViewer() # can also be entered in IPython ...
286
286
287
287
exu.StopRenderer() # safely close rendering window!
288
288
289
- from exudyn.plot import PlotSensor
290
- PlotSensor(mbs, sensorNumbers = [sForce,sForce2], components = [exudyn.plot.componentNorm]* 2 , labels = [' connector force arm1' ,' connector force arm1' ], yLabel = ' force (N)' , closeAll = True )
291
- PlotSensor(mbs, sensorNumbers = [sDistance,sDistance2], components = 0 )
292
- PlotSensor(mbs, sensorNumbers = [sPressures]* 2 + [sPressures2]* 2 , components = [0 ,1 ,0 ,1 ], labels = [' p0 arm1' , ' p1 arm1' , ' p0 arm2' , ' p1 arm2' ], yLabel = ' pressure (N/m^2)' )
289
+
290
+ mbs. PlotSensor(sensorNumbers = [sForce,sForce2], components = [exudyn.plot.componentNorm]* 2 , labels = [' connector force arm1' ,' connector force arm1' ], yLabel = ' force (N)' , closeAll = True )
291
+ mbs. PlotSensor(sensorNumbers = [sDistance,sDistance2], components = 0 )
292
+ mbs. PlotSensor(sensorNumbers = [sPressures]* 2 + [sPressures2]* 2 , components = [0 ,1 ,0 ,1 ], labels = [' p0 arm1' , ' p1 arm1' , ' p0 arm2' , ' p1 arm2' ], yLabel = ' pressure (N/m^2)' )
293
293
294
294
# p01 = mbs.GetSensorStoredData(sPressures)
295
295
# p01[:,1] = A[0]*p01[:,1] - A[1]*p01[:,2]
296
- # PlotSensor(mbs, sensorNumbers=p01, components=0, labels=['differential hydraulic force'], yLabel='hydraulic force (N)')
296
+ # mbs. PlotSensor(sensorNumbers=p01, components=0, labels=['differential hydraulic force'], yLabel='hydraulic force (N)')
297
297
298
298
299
299
0 commit comments