simulate models with faults by using the multiple simulations panel -凯发k8网页登录

main content

simulate models with faults by using the multiple simulations panel

after adding faults to your model, you can analyze the effects of faults on model behavior through simulation. you may decide that you want to configure many scenarios with combinations of enabled faults. simulink® fault analyzer™ integrates with the panel to run simulations that vary the combinations of enabled faults. for more information, see .

set up and run a design study

to open the multiple simulations panel, in to the fault analyzer tab, in the simulate section, click multiple simulations. before you can select the faults you want to include in the simulations, you need to create a design study. to create the design study in the multiple simulations panel, click the add a new design study button . by default, the multiple simulations panel allows you to run multiple simulations by adjusting parameters or variables. if you have simulink fault analyzer, the multiple simulations panel displays the add a set of faults to the design study button .

this image shows the multiple simulations panel view when the add a set of faults to the design study button is present.

when you click the button, you create a list of the faults in your model called a fault set. you select the faults in the fault set that you want to enable during simulation.

you can create multiple simulations that include fault sets, adjustments to parameters, and adjustments to variables in a single design study. depending on the number of simulations and complexity of your model, your design study might be computationally expensive. if you have a license for parallel computing toolbox™, you can improve simulation speed by enabling parallel simulations. in the run options tab, enable use parallel.

fault combination considerations

the multiple simulations panel determines the number of simulations automatically based on the faults you select in each fault set. if your design study has one fault set, the multiple simulations panel prepares a list of simulations where each simulation activates one of the selected faults. if you add additional fault sets, the multiple simulations panel prepares the simulations as an exhaustive combination of the selected faults across the fault sets.

when preparing a design study with more than one fault set, the multiple simulations panel simulates with errors when these circumstances occur:

  • the same fault is activated.

  • more than one fault on the same model element is activated.

for example, if you create two fault sets for a model with three faults on the same model element, the multiple simulations panel prepares only three simulations. if you create two fault sets for a model with three faults, the multiple simulations panel prepares nine simulations. this image illustrates the total combinations of simulations that the multiple simulations panel prepares, where each line indicates a simulation.

an illustration of the exhaustive combination of simulations in fault sets. each fault set has three faults represented as boxes, and lines connect the faults.

consequentially, at least three of the simulations do not successfully simulate because the same fault is activated more than once. this limitation also means that you cannot add fault sets to the same sequential combination parameter set.

run the design study

after you configure your fault sets, select the design study or studies you want to run by clicking the box next to the design study name in the run column. the run button on the simulink toolstrip changes to run all. click run all to run the simulations. you can watch to simulation progress in the simulation manager in the simulations tab. to open the simulation manager, in the simulation tab, in the review results section, click simulation manager. after simulation, you can also explore the data with the simulation manager or simulation data inspector. to view the simulation results in the simulation data inspector, select one of the simulations in the simulation manager and in the inspect section, click show results.

see also

|

related topics

网站地图