Inizializzazione delle variabili
Il risolutore di Simscape™ calcola le condizioni iniziali per la simulazione del modello identificando i valori iniziali di tutte le variabili del sistema per soddisfare tutte le equazioni del modello. È possibile intervenire sul calcolo delle condizioni iniziali specificando la priorità e i valori target iniziali per le variabili del blocco. È inoltre possibile inizializzare le variabili di un intero modello a partire da un punto operativo salvato. Dopo aver inizializzato le variabili del blocco e prima della simulazione del modello, è possibile aprire il visualizzatore delle variabili per verificare quali target della variabile sono stati soddisfatti.
App
| Variable Viewer | View variable initialization results for Simscape models |
| Simscape Initialization Analyzer | Analyze solver performance during transient initialization (Da R2026a) |
Oggetti
simscape.op.OperatingPoint | Operating point object containing hierarchical target data for variable initialization |
simscape.op.Target | Variable initialization target object |
Funzioni
Impostazioni modello
| Enable operating point initialization | Option to specify whether to use operating point data to initialize the model |
| Model operating point | Name of operating point to use to initialize the model |
Argomenti
- Configure the Variable Viewer
How to use and customize the Variable Viewer.
- 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.
- 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.

