变量初始化
Simscape™ 求解器通过查找所有系统变量的初始值来满足所有模型方程,以此计算模型仿真的初始条件。您可以通过指定模块变量的优先级和目标初始值来影响初始条件计算。还可以从保存的工作点初始化整个模型的变量。初始化模块变量后,在对模型进行仿真前,您可以打开变量查看器来查看已满足的变量目标有哪些。
函数
主题
- 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
OperatingPoint
object 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.