计算操作分规格使用Model Linearizer
您可以计算Simulink的稳态操作点金宝app®通过在模型状态,输出和输入上指定约束,并找到满足这些约束的模型操作条件的模型。有关稳态操作点的更多信息,请参阅关于操作点and计算稳态操作点。
要找到Simulink模型的操作点,您可以使用金宝appModel Linearizer,如本示例所示。
另外,您可以修剪模型:
在里面稳态经理。有关更多信息,请参阅使用稳态管理器计算规格中的操作点。
At the command line. For more information, seeCompute Operating Points from Specifications at the Command Line。
在此示例中,您计算一个操作点以满足状态规格。使用类似的方法,您可以定义输出或输入规格。另外,您可以定义状态,输出和输入规格的组合;也就是说,您不必仅使用状态规格。
For more information on trimming your model to meet specifications, see计算稳态操作点from Specifications。
打开Model Linearizer
打开the Simulink model.
sys =“ scdspeed'; open_system(sys)
打开Model Linearizer,在Simulin金宝appk模型窗口中应用画廊,单击Model Linearizer。
定义操作点规格
在里面Model Linearizer,在线性分析tab, in the操作点下拉列表,选择修剪模型
。
在里面Trim the model dialog box, on the规格选项卡,您可以定义模型状态,输入和输出的规格。对于此示例,单击状态标签。
默认情况下,状态选项卡,该软件指定这两个模型状态都处于平衡状态,如查看标记所示稳定状态柱子。Both states are also specified as unknown values; that is, their steady-state values are calculated during trimming, with an initial guess specified in theValue柱子。
Change the second state, the engine angular velocity, to be a known value. In theKnowncolumn, select the corresponding row and, in theValue列,将值设置为180
。
您还可以在修剪过程中指定模型状态的界限。对于此示例,约束第一个状态0.5
and0.7
。为此,请在MinimumandMaximum列分别。
修剪模型
To compute the operating point that meets these specifications, clickStart trimming。
这software uses an optimization search to find the operating point that meets your specifications.
这Trim progress viewer shows the optimization progress and that the optimization algorithm terminated successfully. The(最大错误)列显示每次迭代时的最大约束违规行为。这Blockcolumn shows the block to which the constraint violation applies.
这trimmed operating point,OP_TRIM1
,出现在线性分析工作区。
评估所产生的工作点值是否符合规格,线性分析工作区,双击OP_TRIM1
。
在“编辑对话框”中状态标签,实际价值第一个状态属于期望的值bounds, and the actual angular velocity is180
, as specified.
这实际DX列显示了操作点状态值的变化速率。由于这些值接近零,因此状态没有变化,表明操作点处于稳态状态。
约束状态衍生物
当您修剪模型以满足状态规范时,您还可以约束不处于稳态状态的状态的衍生产品。使用此类约束,您可以将衍生物修剪为已知的非零值,或指定无法达到稳态状态的状态的衍生公差。
例如,假设您想找到发动机角速度为180 rad/s的工作条件,并且角度加速度为50
rad/s2。为此,首先打开修剪模型对话框。在里面Model Linearizer, in the操作点下拉列表,选择修剪模型
。
在里面稳定状态列,在相应的行中清除选择。然后,在dx MinimumandDX最大值列,将两个状态派生范围设置为50
。
要计算操作点,请单击Start trimming。
在里面Model Linearizer, in the线性分析工作区,双击OP_TRIM2
。
在“编辑对话框”中,在第二行中实际DXcolumn matches the所需的DX柱子。因此,操作点符合指定的状态导数约束。
After trimming your model, you can:
在结果工作点上线性化模型。有关更多信息,请参阅在修剪工作点线性化。
在生成点模拟您的模型。有关更多信息,请参阅在特定操作点模拟模金宝app拟模型。