Calculate dissipated power losses and return the time series data

`lossesCell = pe_getPowerLossTimeSeries(node)`

`lossesCell = pe_getPowerLossTimeSeries(node,startTime,endTime)`

`lossesCell = pe_getPowerLossTimeSeries(node,startTime,endTime,intervalWidth)`

calculates
dissipated power losses for blocks, based on logged Simscape™ simulation
data, and returns the time series data for each block.`lossesCell`

= pe_getPowerLossTimeSeries(`node`

)

Before you call this function, generate or load the simulation
log variable into your workspace. To generate the variable, simulate
the model with simulation data logging enabled. For more information,
see About Simulation Data Logging (Simscape). To load a previously
saved variable from a file, right-click on the file and select **Load**.

Checking dissipated power allows you to determine if circuit
components are operating within their efficiency requirements. Blocks
in the **Semiconductor** > **Fundamental
Components** library have an internal variable called *power_dissipated*.
This variable represents the instantaneous dissipated power, which
includes only the real power (not the reactive or apparent power)
that the block dissipates. When you log simulation data, the time-value
series for this variable represents the power dissipated by the block
over time. You can view and plot this data using the Simscape Results
Explorer. The `pe_getPowerLossTimeSeries`

function
also allows you to access this data from a cell array.

The `pe_getPowerLossTimeSeries`

function
calculates losses for each block that has a *power_dissipated* variable.
Some blocks have more than one *power_dissipated* variable,
depending on their configuration. For example, for the MOSFET block,
both the `diode`

node and the `ideal_switch`

node
have a `power_dissipated`

logging node. The function
sums the power losses for both nodes to provide the total power loss
for the block.

The nonideal semiconductor blocks also have thermal variants. Thermal variants have thermal ports that allow you to model the heat that is generated due to switching events and conduction losses. If you use a thermal variant, the function calculates power losses based on the thermal parameters that you specify. Essentially, the power dissipated is equal to the heat generated.

If you use a variant without a thermal port, the function calculates power losses based on the electrical parameters that you specify, such as on-state resistance and off-state conductance.

calculates
dissipated power losses for blocks in a model, based on logged Simscape simulation
data, and returns the time series data for each block for time steps
from `lossesCell`

= pe_getPowerLossTimeSeries(`node`

,`startTime`

,`endTime`

)`startTime`

to `endTime`

.
If `startTime`

is equal to `endTime`

,
the interval is effectively zero and the function returns the instantaneous
power for the time step that occurs at that moment.

calculates
dissipated power losses for blocks in a model, based on logged Simscape simulation
data, and returns the time series data for each block for time steps
from `lossesCell`

= pe_getPowerLossTimeSeries(`node`

,`startTime`

,`endTime`

,`intervalWidth`

)`startTime`

to `endTime`

,
with averaging applied over intervals equal to `intervalWidth`

.
If `intervalWidth`

is 0, the function returns the
instantaneous power dissipation.

`pe_getEfficiency`

| `pe_getPowerLossSummary`

| `sscexplore`

- Perform a Power-Loss Analysis
- Data Logging (Simscape)
- About the Simscape Results Explorer (Simscape)

Was this topic helpful?