GetModel(deprecated) - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim

MapleSim[Multibody][GetModel] - retrieves a stored symbolic model from a MapleSim/Multibody store file (`.lib`)


Calling Sequence




See Also

Calling Sequence



 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.


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.


By restarting the system, the generated symbolic module `MyModel` is removed from Maple's memory, thus, none of its symbolic entries are accessible.


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.


See Also

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]