.FaultTriggering.UsersGuide.Tutorial.AutomaticModelReconfiguration

Information

Model reconfiguration

Using the extra integer parameter that is transmitted with each variable fault, it is possible to use an automatic model reconfiguration to save resources in the case that no fault is modelled. In the figure below a setup of such a reconfiguration is given.


To trigger the reconfiguration, in the textlayer the switching has to be activated. In this case this is done using following code:

  Trivial trivial if fault.externalBooleanFault.faultMode==1;

  Blocked blocked if fault.externalBooleanFault.faultMode==2;

  Simple  simple  if fault.externalBooleanFault.faultMode==3;


This allows the local activation of the individual components. It is not necessary to define conditional connects, as they are automatically disregarded. It is good design practice, that in case of a model selection which is done on the equation layer, a note is made on hte diagram layer. Also using dashed lines helps understadning ht emodel for the end user.

Revisions

Copyright
© 2012-2015, DLR Institute of System Dynamics and Control

Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos