Calling Sequence BuildPlot(MSimMultibodyModel)
 Parameters MSimMultibodyModel - Maple module of a system created using the BuildEQs command or retrieved from a MapleSim/Multibody store file (.lib) using the GetModel command.
 Description 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.
 Interface 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.

Examples

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.

 > $\mathrm{leArguments}≔\left['\mathrm{InputString}'=\mathrm{MapleSim}:-\mathrm{Multibody}:-\mathrm{GetMultibodyInput}\left("Simulation0"\right),'\mathrm{ModelName}'="SliderCrank",'\mathrm{KinSimpType}'="Simplify",'\mathrm{DynSimpType}'="Simplify",'\mathrm{AugType}'="Lagrange",'\mathrm{MaxSmallQOrder}'=1,'\mathrm{SaveToLib}'=\mathrm{true},'\mathrm{SilentMode}'=\mathrm{false}\right]:$$\mathrm{MapleSim}:-\mathrm{Multibody}:-\mathrm{BuildEQs}\left(\mathrm{op}\left(\mathrm{leArguments}\right)\right):$
 ${"Analyzing system..."}$
 ${"Performing constraint analysis..."}$
 ${"The system has 1 degree\left(s\right) of freedom. It is modeled using 3 generalized coordinate\left(s\right) coupled by 2 algebraic constraint\left(s\right)."}$
 ${"Peforming a dynamic analysis using an augmented Lagrange formulation - system variables shown below:"}$
 ${"vQ"}{,}\left[\begin{array}{c}{\mathrm{s_P2}}{}\left({t}\right)\\ {\mathrm{theta_R1}}{}\left({t}\right)\\ {\mathrm{theta_R5}}{}\left({t}\right)\end{array}\right]{,}{"vP"}{,}\left[\begin{array}{c}\frac{{ⅆ}}{{ⅆ}{t}}{}{\mathrm{s_P2}}{}\left({t}\right)\\ \frac{{ⅆ}}{{ⅆ}{t}}{}{\mathrm{theta_R1}}{}\left({t}\right)\\ \frac{{ⅆ}}{{ⅆ}{t}}{}{\mathrm{theta_R5}}{}\left({t}\right)\end{array}\right]{,}{"vPdot"}{,}\left[\begin{array}{c}\frac{{{ⅆ}}^{{2}}}{{ⅆ}{{t}}^{{2}}}{}{\mathrm{s_P2}}{}\left({t}\right)\\ \frac{{{ⅆ}}^{{2}}}{{ⅆ}{{t}}^{{2}}}{}{\mathrm{theta_R1}}{}\left({t}\right)\\ \frac{{{ⅆ}}^{{2}}}{{ⅆ}{{t}}^{{2}}}{}{\mathrm{theta_R5}}{}\left({t}\right)\end{array}\right]{,}{"vLambda"}{,}\left[\begin{array}{c}{\mathrm{λ1}}{}\left({t}\right)\\ {\mathrm{λ2}}{}\left({t}\right)\end{array}\right]$
 ${"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\left("C:/Documents and Settings/cschmitke/My Documents/HelpPages/Multibody/Building_Simulations/SliderCrank.lib"\right): to retrieve stored model."}$ (5.1)

The order of the initial conditions must match the order to the variables in the vX state vector:

 > $\mathrm{convert}\left(\mathrm{SliderCrank}:-\mathrm{vX},\mathrm{list}\right);$$\mathrm{leICs}≔\left[0,0,0,1.5,0,0\right]$
 $\left[\frac{{ⅆ}}{{ⅆ}{t}}{}{\mathrm{s_P2}}{}\left({t}\right){,}\frac{{ⅆ}}{{ⅆ}{t}}{}{\mathrm{theta_R1}}{}\left({t}\right){,}\frac{{ⅆ}}{{ⅆ}{t}}{}{\mathrm{theta_R5}}{}\left({t}\right){,}{\mathrm{s_P2}}{}\left({t}\right){,}{\mathrm{theta_R1}}{}\left({t}\right){,}{\mathrm{theta_R5}}{}\left({t}\right)\right]$
 ${\mathrm{leICs}}{:=}\left[{0}{,}{0}{,}{0}{,}{1.5}{,}{0}{,}{0}\right]$ (5.2)
 > $\mathrm{leArguments}≔\left[\mathrm{SliderCrank},'\mathrm{SimName}'="Sim_rkf45",'\mathrm{NumericSubs}'=\left[\right],'\mathrm{ICs}'=\mathrm{leICs},'\mathrm{Integrator}'="rkf45",'\mathrm{RelErrTol}'=0.001,'\mathrm{AbsErrTol}'=0.001,'\mathrm{Baumgarte}'=\left[1,1\right],'\mathrm{Duration}'=5,'\mathrm{NumStorePoints}'=200,'\mathrm{SilentMode}'=\mathrm{false}\right]:$$\mathrm{MapleSim}:-\mathrm{Multibody}:-\mathrm{BuildSimulation}\left(\mathrm{op}\left(\mathrm{leArguments}\right)\right):$
 ${"***Generating forward dynamics simulation procedure \left(pXdot\right) ***"}$
 ${"Order of the State Variable Array:"}$
 $\left[\frac{{ⅆ}}{{ⅆ}{t}}{}{\mathrm{s_P2}}{}\left({t}\right){,}\frac{{ⅆ}}{{ⅆ}{t}}{}{\mathrm{theta_R1}}{}\left({t}\right){,}\frac{{ⅆ}}{{ⅆ}{t}}{}{\mathrm{theta_R5}}{}\left({t}\right){,}{\mathrm{s_P2}}{}\left({t}\right){,}{\mathrm{theta_R1}}{}\left({t}\right){,}{\mathrm{theta_R5}}{}\left({t}\right)\right]$
 ${"Order of the Constant Parameter Array:"}$
 $\left[{}\right]$
 ${"Order of the Inputs Array:"}$
 $\left[{}\right]$
 ${"--------------Processing Xdot-------------"}$
 ${"Procedure pXdot created in the Maple workspace."}$
 ${"pXdot\left(NumStates, t, States, StateDerivatives\right) #compatible with dsolve/numeric"}$
 ${4}{}{\mathrm{functions}}{+}{24}{}{\mathrm{subscripts}}{+}{93}{}{\mathrm{assignments}}{+}{80}{}{\mathrm{multiplications}}{+}{58}{}{\mathrm{additions}}{+}{3}{}{\mathrm{divisions}}$
 ${"----duration: .94e-1 seconds----"}$
 ${""}$
 ${"***Starting simulation....***"}$
 ${"Simulation complete - duration = .62e-1 seconds"}$
 ${"Saving simulation for future use...:"}$
 ${"Assigning simulation to workspace variable \text{'}Sim_rkf45\text{'}."}$ (5.3)
 > $\mathrm{MapleSim}:-\mathrm{Multibody}:-\mathrm{BuildPlot}\left(\mathrm{SliderCrank}\right)$