MapleSim[Multibody][GetModel] - retrieves a stored symbolic model from a MapleSim/Multibody store file (`.lib`)
Calling Sequence
Parameters
Description
Examples
See Also
GetModel(libfile)
libfile - (optional) name of the MapleSim/Multibody store file to open. These files have a `.lib` file extension.
Important: The GetModel 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 GetModel command returns a Maple module previously generated and stored using the MapleSim/Multibody BuildEQs command. The GetModel command is particularly useful for large systems whose symbolic equations take a long time to generate.
If you use the GetModel command with no arguments, a dialog box allows you to select the `.lib` store file.
Important: The GetModel command has been deprecated. Use the templates in the MapleSim document folder to analyze your model instead.
The example shows how the GetModel command can be used to retrieve a stored symbolic model quickly without regenerating the model equations. Construct a store file for the model by using the BuildEQs 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:/SliderCrank.lib
Use `Model := MapleSim:-Multibody:-GetModel("c:/SliderCrank.lib"):` to retrieve stored model.
You can now show one of the outputs of the model. In this example, the mass matrix is shown.
SliderCrank:-xM
By restarting the system, the generated symbolic module `MyModel` is removed from Maple's memory, thus, none of its symbolic entries are accessible.
restart:SliderCrank:-xM
Error, `SliderCrank` does not evaluate to a module
As indicated in the output of BuildEQs, the generated symbolic model can be retrieved using the GetModel command. When they are assigned to a worksheet variable, the properties of the retrieved model are accessible again.
MyModel≔MapleSim:-Multibody:-GetModel⁡C:/SliderCrank.lib:MyModel:-xM
Dynamic Exports, Kinematic Exports, MapleSim, MapleSim[Multibody][BuildEQs], MapleSim[Multibody][BuildExpression](deprecated), MapleSim[Multibody][BuildPlot](deprecated), MapleSim[Multibody][GetMultibodyInput], MapleSim[Multibody][BuildSimulation](deprecated), MapleSim[Multibody][GetModel](deprecated), MapleSim[Multibody][GetMultibodyInput]
Download Help Document