function y = valve_silo2(x)
FR = x(1); % Flow Rate In
LEVEL = x(2); % Level
VALVE = x(3); % Valve Control
if LEVEL == 0
    y = FR;
else
    y = VALVE;
end