MapleSim[Multibody][BuildPlot] - plot results from stored MapleSim/Multibody simulations
Calling Sequence
Parameters
Description
Interface
Examples
See Also
BuildPlot(MSimMultibodyModel)
MSimMultibodyModel - Maple module of a system created using the BuildEQs command or retrieved from a MapleSim/Multibody store file (`.lib`) using the GetModel command.
Important: The BuildPlot command has been deprecated. Use the templates in the MapleSim templates folder to analyze your model instead. For more information, see Opening MapleSim Templates.
The BuildPlot command opens a window that allows you to view and work with simulations stored in the selected MSimMultibodyModel. Plots of the model state variables (or any expression containing these variables) and any expressions and functions available through the BuildExpression command can be created.
The BuildPlot command opens the following window. The available actions, indicated by the buttons at the bottom of the window, are described below.
Preview Plot
Displays a preview of the requested plot in the Plot Result section of the window.
Export Result to .cvs
Exports the data displayed in the Plot Result section of the window to a comma-separated value (.cvs) file.
Build Plot
Generates and displays the requested plot in a new window. This window, shown below, allows you to configure how the plot is displayed and provides several export options.
Preview Code
Opens a new window displaying the code that is executed when you click Build Plot. You can copy and paste this code into a Maple worksheet. Note: MapleSim/Multibody ignores any changes made to the code displayed in this window.
Help
Loads this help page into the Maple help page browser.
Important: The BuildPlot command has been deprecated. Use the templates in the MapleSim document folder to analyze your model instead.
The example below shows an embedded MapleSim model of a planar slider-crank mechanism. In this example, the name of the embedded component is Simulation0, and the model name is SliderCrank. When a simulation is created, the results can be plotted using the BuildPlot command.
leArguments≔InputString=MapleSim:-Multibody:-GetMultibodyInput⁡Simulation0,ModelName=SliderCrank,KinSimpType=Simplify,DynSimpType=Simplify,AugType=Lagrange,MaxSmallQOrder=1,SaveToLib=true,SilentMode=false:MapleSim:-Multibody:-BuildEQs⁡op⁡leArguments:
Analyzing system...
Performing constraint analysis...
The system has 1 degree(s) of freedom. It is modeled using 3 generalized coordinate(s) coupled by 2 algebraic constraint(s).
Peforming a dynamic analysis using an augmented Lagrange formulation - system variables shown below:
Dynamic analysis complete.
Saving model for future use...:
Model saved to: C:/Documents and Settings/cschmitke/My Documents/HelpPages/Multibody/Building_Simulations/SliderCrank.lib
Use `Model := MapleSim:-Multibody:-GetModel("C:/Documents and Settings/cschmitke/My Documents/HelpPages/Multibody/Building_Simulations/SliderCrank.lib"):` to retrieve stored model.
The order of the initial conditions must match the order to the variables in the vX state vector:
convert⁡SliderCrank:-vX,list;leICs≔0,0,0,1.5,0,0
ⅆⅆt⁢s_P2⁡t,ⅆⅆt⁢theta_R1⁡t,ⅆⅆt⁢theta_R5⁡t,s_P2⁡t,theta_R1⁡t,theta_R5⁡t
leICs:=0,0,0,1.5,0,0
leArguments≔SliderCrank,SimName=Sim_rkf45,NumericSubs=,ICs=leICs,Integrator=rkf45,RelErrTol=0.001,AbsErrTol=0.001,Baumgarte=1,1,Duration=5,NumStorePoints=200,SilentMode=false:MapleSim:-Multibody:-BuildSimulation⁡op⁡leArguments:
***Generating forward dynamics simulation procedure (pXdot) ***
Order of the State Variable Array:
Order of the Constant Parameter Array:
Order of the Inputs Array:
--------------Processing Xdot-------------
Procedure `pXdot` created in the Maple workspace.
pXdot(NumStates, t, States, StateDerivatives) #compatible with `dsolve/numeric`
4⁢functions+24⁢subscripts+93⁢assignments+80⁢multiplications+58⁢additions+3⁢divisions
----duration: .94e-1 seconds----
***Starting simulation....***
Simulation complete - duration = .62e-1 seconds
Saving simulation for future use...:
Assigning simulation to workspace variable 'Sim_rkf45'.
MapleSim:-Multibody:-BuildPlot⁡SliderCrank
MapleSim, MapleSim[Multibody][BuildEQs], MapleSim[Multibody][BuildExpression](deprecated), MapleSim[Multibody][BuildSimCode](deprecated), MapleSim[Multibody][BuildSimulation](deprecated), MapleSim[Multibody][GetModel](deprecated), MapleSim[Multibody][GetMultibodyInput]
Download Help Document