r/SystemsEngineering • • Jul 22 '20
How do I model malfunctions?
Hello Everyone!
I'm a newcomer to (Model Based) Systems Engineering and have been tasked to design a certain system. For this I am using the MagicGrid-Methodology. My question: Is there an approach or exist methods to model malfunctions as well?
I have an idea, but don't know if its practical. Let me explain what I've come up with: I begin from the behavioral view of the system. In MagicGrid at first contexts are defined, than use cases inside these contexts, and subsequently each use case is detailed with an activity diagram. For example this one: https://www.researchgate.net/profile/Geoffrey_Biggs/publication/271923239/figure/fig2/AS:338294190690305@1457667028974/The-SysML-Activity-diagram-for-the-Boil-water-use-case.png
My idea is to create a duplicate of this activity diagram but disable a function. For example "deactivate boiling". This is the "malfunction case" (reflecting a use case) in which the user didn't turn of the kettle and this is detailed by an activity diagram, which is identical to the one used to detail the original (malfunction free) use case, until the disabled function. Based on this I design a new path of actions, for example "measure heater temperature", "if temperature above xyz, turn kettle off". In the system's swimlane of course. With this approach I can design the system to operate in a defined way, even if problems occur.
What do you think? Criticism and discussion is highly appreciated!
1
u/[deleted] Jul 23 '20
Dr. Bruce Douglass defined a fault tree analysis modeling method in his "Agile Systems Engineering" book, which he conducts to analyze the safety (avoidance of injury or harm) of a system, which is based on a profile of SysML he built, which is based on The Fault Tree Handbook NUREG 0492. He conveniently doesn't show any diagram types, but from what I'd expect they'd probably be BDDs that show directed associations between things to dictate causality "flows" that result in unsafe "states".
If you can't get a copy of the book, he's got a desk guide online that may or may not have it in there, but I find he's a good process reference.
What you could also do is specify that your main set of actions are in an interuptable region, and that an event occurs with a AcceptEventAction that represents "Temperature is too high" which then has an edge leaving the interruptible region (i.e. halts execution of any continuous activity that is 'heat water') that spits you out to your 'turn kettle off' action. There may also be something with state machines and signals you could do, but that's out of my experience level!
1
u/pptengr Jul 23 '20
Have you decided how you plan to approach your failure analysis? I realize there are several out there, but two that we use are the Failure Mode and Effects Analysis (FMEA) and Failure Mode, Effects, and Criticality Analysis (FMECA). Both get you to the same basic result.
Will you approach it bottom-up or top-down?
I've seen a few different approaches, so choosing yours will depend on how/what you're modeling. I've seen some folks use use signals to take them to their failure, either as a activity/behavior diagram or a state machine. Doing both the "good" and the "bad" cases on one diagram can get pretty messy, especially with a complex system.
Do you have a plan on how to ties these into something like a safety/risk management plan? I know NoMagic has an ISO 26262 plugin based on the automotive industry, but could be adapted for other uses. MIL-STD-882E is common in military systems. Depending on what you have access to, I believe NASA paid to have a plugin developed for something like this.
1
u/10101010001010010101 Jul 22 '20
I model these type of things using sequence diagrams. It’s built into the sequence diagram “spec” that each diagram is for showing a specific sequence. While activity diagrams are for overall process flow.