function u = CalcBlockCase2(x,v,d,p)
% model for level and concentration 
q2   = d(1);                           % [kg/s], inlet flow 2
c1    = d(2)*1;                        % [kg/kg] inlet flow 1 concentration 
c2    = d(3)*1;                        % [kg/kg] inlet flow 2 concentration 
%backcalculate u from v
u =  q2 * ((v-c2)/(c1-v));
end