generateDCDCConverterROM
Syntax
Description
The generateDCDCConverterROM
function takes a DC-DC power
converter subsystem and creates a reduced-order model (ROM) in the form of a DC-DC
Converter block and parameterizes it based on the voltage and current measurements
in the original model.
The model-order reduction transforms a high-fidelity, computationally expensive model into an equivalent model that is easier to interpret and runs faster. This model is called a reduced-order model. The ROM comprises first-order dynamics, linear voltage droop, tabulated efficiency, and required minimum supply voltage.
You can use the ROM to run faster simulations by replacing the original DC-DC power converter subsystem with the generated ROM subsystem. ROMs enable you to quickly test and analyze system-level scenarios where the DC-DC power converter interacts with other systems.
generateDCDCConverterROM(
generates an
equivalent energy-based model from the DC-DC power converter
sys
)sys
.
generateDCDCConverterROM(
specifies options using one or more name-value arguments in addition to the input argument
in the previous syntax. For example, to specify the reference output voltage as 80 V, set
sys
,Name=Value
)ReferenceOutputVoltage
to 80
.
returns a structure that contains the generated ROM data, including the first-order voltage
regulation time constant, efficiency lookup tables, voltage droop, and the minimum required
supply voltage.ROMParameters
= generateDCDCConverterROM(sys
,Name=Value
)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Limitations
The generated ROM does not include high-order dynamics. If your model must represent high-order dynamic behaviors, do not replace the original system.
The
generateDCDCConverterROM
function only loads these variables into the harness model workspace:Variables that you specify inside the
PreLoadFcn
andPostLoadFcn
model callbacks of your original modelVariables inside the model workspace of your original model
If the blocks of your model uses variables in the
InitFcn
model callback, this function returns an invalid parameter name error when simulating the harness model. For more information about model callbacks, see Model Callbacks.
Version History
Introduced in R2025a