Main Content

Update and Simulate a Model

Create or Open a Model

You can create a model manually or import it from a supported CAD application. For an example showing how to create a model manually, seeModel an Open-Loop Kinematic Chain. For an example showing how to import a model, seeImport a Robotic Arm CAD Model.

Update the Block Diagram

In theModelingtab, clickUpdate Model. Mechanics Explorer opens with a static visualization of the model in its initial state.

检查模型组装

Check the model assembly in the visualization pane of Mechanics Explorer. Look for bodies placed and oriented in unexpected ways. Use the Simscape™ Variable Viewer or theSimscape Multibody™Model Report to identify any assembly issues. For an example showing the use of Model Report, seeModel a Closed-Loop Kinematic Chain.

Configure the Solver Settings

Open the Configuration Parameters. In theModelingtab, clickModel Settings. Pick a solver and specify the desired step sizes. Ensure that the time steps are small enough to accurately capture the fastest meaningful changes in your model. Use care, though, as small time steps slow down simulation.

Run Simulation and Analyze Results

ClickRun. Mechanics Explorer plays a physics-based animation of your model. Examine any data generated during simulation, for example, through Simulink®Scope plots. For an example showing how to work with sensing data from a model, seeSense Motion Using a Transform Sensor Block.