% Running simulations of the OLGA system

%Simulating closed loop system one sampling period (Ts)
   t_current1 = OLGAGetTime;
   
   [t, y, p, errmsg] = OLGASimStep(t_current1+Ts);%,U);
   
   
p_downhole(i) = y(1).Data; 
inflow(i) = y(2).Data;
GOR(i) = y(3).Data;
% 
% p_well(i,:) = p(1).Data;
% holdup_well(i,:) = p(2).Data;
