function [strom]=extract_stream_data(a,i,stream,strom)

%a is the name of stream
%i is the simulation number


strom.f(:,i)=stream.Item(a).MassFlowValue*3600;
strom.t(:,i)=stream.Item(a).TemperatureValue;
strom.p(:,i)=stream.Item(a).pressureValue/100;
strom.x(:,i)=stream.Item(a).componentMolarFractionValue;
strom.z(:,i)=stream.Item(a).vapourFractionValue;
    

end



        


