如何在 Dymola 中追踪用于计算管道质量的参数和方程式?

How to trace the parameters and equations that are used to calculate the mass on the pipeline in Dymola?

Modelica 中的组件包含用于计算整个系统的状态和变量的方程式、参数。例如,在发电厂模型中,关键变量是压力、热函和质量流量。 假设我对某些管道上的质量流量感兴趣,我如何追踪用于计算该管道质量流量的方程和参数?

在Simulation Setup, Translation中,激活"Provide variable dependencies for plotting",这相当于设置标志Advanced.GenerateVariableDependencies := true;。 在结果中,您可以右键单击变量并单击 "Plot Dependencies",然后您将看到方程式是如何计算的。

作为替代方案,在模拟设置、转换中,激活 "Generate listing of translated Modelica code in dsmodel.mof",然后在该 dsmodel.mof 文件中搜索变量名称。