Main Content

分析功率和能量

为了评估动力总成效率,您可以评估和报告组件级块和系统级参考应用程序的动力和能源。

这sereference applications include live scripts that analyze the energy consumption. After you open the reference applications, double-click分析功率和能量打开实时脚本。要生成能量报告,请选择

植物模型块计算传输、存储的ed, and not transferred power. The blocks use the<一种href="//www.tatmou.com/help/autoblks/ref/poweraccountingbuscreator.html">电力会计巴士创建者记录实时脚本使用的电源信号。如果您在参考应用程序中使用自己的块,请添加电力会计巴士创建者到您的子系统记录电源信号。

这live script provides:

  • An overall energy summary that the script exports to an Excel®电子表格。

  • Engine plant, electric plant, and drivetrain efficiencies, including an engine plant histogram of time spent at different efficiencies.

  • 数据记录,以便您可以使用仿真数据检查器分析动力总成效率,功率和能量信号。

实时脚本

这live script uses the<一种href="//www.tatmou.com/help/autoblks/ref/autoblks.pwr.plantinfo.html">一种你toblks.pwr.PlantInfo班级tot你rnondata logging, run the simulation, and report power and energy results. Before running the simulation, the script finds all of the电力会计巴士创建者堵塞s一世nthe model and turns on data logging. During the simulation, the model logs the transferred, not transferred, and stored power. The script uses the logged data to calculate efficiency, energy loss, energy input, and energy output for each component and subsystem. If the component does not conserve energy, the script issues warnings. Finally, the script provides an overall vehicle energy summary, a detailed subsystem summary, and Simulation Data Inspector time series plots.

跑Simulation

运行模拟时,脚本会创建一种你toblks.pwr.PlantInfo目的是分析模型能源和功耗。使用这些属性设置单位:

  • pwrUnits

  • EnrgyUnits

When the script creates the一种你toblks.pwr.PlantInfoobject, the constructor searches the model for电力会计巴士创建者块。从顶级模型开始,构造函数为每个子系统创建一个子对象电力会计巴士创建者块。构造函数停在具有电力会计巴士创建者。

为了跟踪组件之间传输的功率,构造函数使用了定义的传输功率端口电力会计巴士创建者阻止面具。

为了计算效率,一种你toblks.pwr.PlantInfo班级Effproperty implements this equation.

η = | p o t p t - p s t o r e (( p s t o r e > 0 p 一世 n p t - p s t o r e (( p s t o r e < 0 |

为了确定系统是否保守能量,iSenrgyancedmethod checks the energy conservation at each time step. If the energy conservation error is within an error tolerance, the method returns true.

总结

总结提供了在组件和系统级别上存储的效率,能量损失,能源输入,能量输出和能量。摘要包括可以用来调查模型块和子系统的超链接。

脚本使用一种你toblks.pwr.PlantInfo班级XLSSYSSUMMARYmethod to export the analysis to an Excel spreadsheet.

plant Summary

该脚本提供发动机厂,电厂和动力传动系统的效率。具体而言,脚本包括信号能量和发动机效率直方图。

仿真数据检查器摘要

脚本包括一种你toblks.pwr.PlantInfo班级sdiSummary创建模拟数据检查器功率,能量和效率信号图的方法。

电源信号

这system-level power and energy accounting tests that the system satisfies the conservation of energy. If the component does not conserve energy, the live script issues warnings.

电力会计巴士创建者对于参考应用中的植物块,将信号分为三种功率类型。

电源类型 Description Examples

p反式

转移

块之间传递的电源:

  • 正信号表示流入块

  • 负信号表示流出块

  • 曲轴功率从映射的发动机传输到变速箱。

  • Road load power transferred from wheel to vehicle.

  • 热流的速率从油门转移到歧管体积。

p没有trans

未转移

越过块边界但不转移的动力:

  • pos一世t一世ve signals indicate an input

  • 负信号表示损失

  • Rate of heat transfer with the environment.

    • 来自环境是输入(正信号)

    • 环境是损失(负信号)

  • Flow boundary with the environment.

    • 来自环境是输入(正信号)

    • 环境是损失(负信号)

  • 映射的发动机燃油流。

p店铺

Stored

存储的能源变化速率:

  • pos一世t一世ve signals indicate an increase

  • 负信号表示减少

Energy rate of change:

  • Battery storage

  • Kinetic energy in drivetrain components

  • 车辆势能

  • 车速

电源信号满足该方程式。

p t r 一种 n s + p n o t t r 一种 n s = p s t o r e

为了节省能量,传输的功率信号总和必须接近零。

方程使用这些变量。

p反式

转移的功率

p没有trans

不转移电源

p店铺

Stored power

p输入,,,,p输出

Input and output power logged by电力会计巴士创建者堵塞

也可以看看

|

相关示例

更多关于