主要内容

求解器Pane

The求解器类别包括用于配置模型求解器的参数。求解器在连续的时间内计算动态系统的状态在指定的时间范围内。您还使用这些参数来指定仿真开始和停止时间。

一旦模型编译,求解器信息工具提示显示

  • Compiled solver name

  • Step size (Max step size或者Fixed step size)

Once the model compiles, the status bar displays the solver used for compiling and a carat (^) when:

  • 金宝app®selects a different solver during compilation.

  • You set the step size to汽车. The Solver Information tooltip displays the step size that Simulink calculated.

When configuring the solver, note that:

  • 模拟time is not the same as clock time. For example, running a simulation for 10 seconds usually does not take 10 seconds. Total simulation time depends on factors such as model complexity, solver step sizes, and computer speed.

  • Fixed-step求解器类型是代码生成所需的,除非您使用S函数或RSIM目标。

  • 可变步骤求解器类型可以大大缩短模拟模型所需的时间,在该模型中迅速变化或包含不连续性所需的时间。

Parameter 描述

Start time

Specify the start time for the simulation or generated code as a double-precision value, scaled to seconds.

停止时间

Specify the stop time for the simulation or generated code as a double-precision value, scaled to seconds.

类型

选择要使用的求解器的类型来模拟模型。

求解器

在模拟或代码生成过程中选择要使用的求解器来计算模型的状态。

Max step size

Specify the largest time step that the solver can take.

集成方法

Specify the integration order of the奥登solver

初始步骤大小

Specify the size of the first time step that the solver takes.

Min step size

指定求解器可以采取的最小时间步骤。

相对耐受性

Specify the largest acceptable solver error, relative to the size of each state during each time step. If the relative error exceeds this tolerance, the solver reduces the time step size.

绝对宽容

指定最大的可接受求解器误差,因为测得的状态的值接近零。如果绝对误差超过此公差,则求解器会降低时间步长。

形状保存

在每个时间步骤,使用衍生信息来提高集成精度。

Maximum order

Select the order of the numerical differentiation formulas (NDFs) used in theode15ssolver.

求解器reset method

Select how the solver behaves during a reset, such as when it detects a zero crossing.

Number of consecutive min steps

指定模拟过程中允许的最大连续最小步长违规数量。

求解器雅各布法

指定为隐式求解器计算Jacobian矩阵的方法。

Daessc mode

微调daessc求解器性能。

Treat each discrete rate as a separate task

Specify whether Simulink executes blocks with periodic sample times individually or in groups.

Automatically handle rate transition for data transfer

指定Simulink软件是否会自金宝app动插入具有不同采样率的块之间的隐藏率转换块以确保:任务之间数据传输的完整性;以及可选的数据传输的可选决定。

Deterministic data transfer

Control whether the Rate Transition block parameter确保确定性数据传输(最大延迟)is set for auto-inserted Rate Transition blocks.

Higher priority value indicates higher task priority

在实现异步数据传输时,指定模型针对的实时系统是否将更高或更低的优先级值分配给更高的优先级任务。

Zero-crossing control

Enables zero-crossing detection during model simulation. For most models, this speeds up simulation by enabling the solver to take larger time steps.

Time tolerance

指定一个公差因素,该因子控制了必须将其视为连续的零交叉事件的近距离事件。

Number of consecutive zero crossings

Specify the number of consecutive zero crossings that can occur before Simulink software displays a warning or an error.

Algorithm

Specifies the algorithm to detect zero crossings when a variable-step solver is used.

Signal threshold

Specifies the deadband region used during the detection of zero crossings. Signals falling within this region are defined as having crossed through zero.

Periodic sample time constraint

选择该模型定义的样本时间的约束。如果模型在模拟过程中不满足指定的约束,则Simulink软件将显示错误消息。金宝app

固定步骤尺寸(基本样本时间)

指定所选固定步骤求解器使用的步长。

Sample time properties

指定并将优先级分配给该模型实施的样本时间。

外推令

选择由ode14xsolver to compute a model's states at the next time step from the states at the current time step.

Number of Newton's iterations

Specify the number of Newton's method iterations used by theode14xsolver to compute a model's states at the next time step from the states at the current time step.

Allow tasks to execute concurrently on target

Enable concurrent tasking behavior for model.

自动尺度绝对耐受性

启用自动绝对耐受性适应

Allow multiple tasks to access inputs and outputs

Enable Branched Input Multiple Outputs in rate-based models

Enable zero-crossing detection for fixed-step solver

使用固定步骤启用零交叉检测

Maximum number of bracketing iterations

Specify maximum number of bracketing iterations that will be performed when locating a zero crossing

每个步骤的最大零交叉数

指定最大零交叉数量Simulink将位于一个固定步骤中金宝app

引用模型时使用本地求解器

Speed up simulation in model references using local solvers

These configuration parameters are in the高级参数部分。

Parameter 描述

Enable decoupled continuous integration

Removes the coupling between continuous and discrete rates.

启用最小的零交叉冲击积分

Minimizes the impact of zero-crossings on the integration of continuous states.

相关话题