function m3 = ValveEq(P2,P3,z,Km3)
m3 = Km3*z*(P2-P3); % Valve equation for m3
end

