I would like to realize a missile valve in Simscape. For the valve I use the Local Restriction. Now I would like to close the valve when a previously defined mass or volume flow is reached and keep it closed until the end of the simulation.
A first approach was to implement an if-condition in Simulink. I was able to use this to close the valve when a defined mass flow was reached but not able to keep it closed, as it reopens as the mass flow drops.
Does anyone have an idea how I can keep the valve closed state? Is there a corresponding block in Simulink or Simscape?
Thanks a lot and greetings