The Simscape™ solver computes the initial conditions for model simulation by finding initial values for all the system variables to satisfy all the model equations. You can affect the initial conditions computation by specifying the priority and target initial values for block variables. You can also initialize variables for a whole model from a saved operating point. After you initialize the block variables and prior to simulating the model, you can open the Variable Viewer to see which of the variable targets have been satisfied.
Operating Points and Targets
Operating Point Object Functions
|Add or update element of operating point
|Access element of operating point data tree
|Get path to node associated with block or subsystem
|Determine whether operating point data contains element at specified path
|Remove element from operating point
|Move element from one path to another
|Create operating point by merging data from two operating points
|Determine whether operating point data contains private data elements
|Remove private data elements from operating point
- Block-Level Variable Initialization
The principles of initializing variables and recommended workflows.
- Set Priority and Initial Target for Block Variables
How to specify target initial values and set priority for block variables.
- Initialize Variables for a Mass-Spring-Damper System
This example shows how you can use block variable initialization, and how it affects the simulation results of a simple mechanical system.
- Variable Viewer
How to use and customize the Variable Viewer.
- Using Operating Point Data for Model Initialization
The principles of initializing model variables from saved operating points, ways to extract data from models, and recommended workflows.
- Initialize Model Using Operating Point from Logged Simulation Data
This example shows how you can create an
OperatingPointobject from logged simulation data and then use this operating point to initialize the model for a subsequent simulation run.
- Indexing into Component Arrays
You can use command-line interface to index into an array of components, for example, to get or set operating point targets for a particular array member, or to plot simulation data.