Power Accounting Bus Creator
Create power information bus
Libraries:
Powertrain Blockset /
Utilities /
Power Accounting
Description
Creates a power information bus for reporting system power and energy consumption. You can associate the block to a parent system, select types of power signals to track, and add signal descriptions. If you want to generate a power and energy report, you must use this block to log the power signals in your plant model blocks. The Powertrain Blockset™ plant blocks use the Power Accounting Bus Creator to log the power signals. The documentation for each block includes information about the logged power bus signals.
The system-level power and energy accounting satisfies the conservation of energy.
To add the Power Accounting Bus Creator to your plant block, follow these steps:
Add the Power Accounting Bus Creator block to your block.
Select the types of power signals that you want to log. See Power Signals.
Associate the Power Accounting Bus Creator with a parent subsystem. See Block Association.
Connect the power signals to the Power Accounting Bus Creator.
Follow the sign convention.
To ensure that your plant block conserves energy, include all power associated with the block.
In the Power Accounting Bus Creator:
On the Transferred power tab, specify these parameters:
Associated Port
Description
On the Not Transferred power tab, specify the Description parameter:
In the plant block, connect the transferred power signals to the Power Accounting Bus Creator ports that are specified with the Associated Port parameter.
Power Signals
The Power Accounting Bus Creator sorts the signals into three power types.
Power Type | Description | Examples | |
---|---|---|---|
Ptrans | Transferred | Power transferred between blocks:
|
|
Pnottrans | Not transferred | Power crossing the block boundary, but not transferred:
|
|
Pstore | Stored | Stored energy rate of change:
| Energy rate of change:
|
Block Association
When you add the Power Accounting Bus Creator to your plant block, you associate the signals to a parent block. There are two association methods.
Method | Description | Example |
---|---|---|
| Power Accounting Bus Creator associates the power bus signals with the parent block. | In the conventional vehicle reference application, navigate to the The Associated
block parameter is set to
|
| Power Accounting Bus Creator associates the power bus signals with a reference block. Use the Library block name parameter to specify the block. | In the Ideal Fixed Gear
Transmission block, navigate to the The Power Accounting Bus Creator block uses these parameter settings to associate the power signals to the Ideal Fixed Gear Transmission block.
|
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2019a