MRST - MATLAB Reservoir Simulation Toolbox

Function vaporPressure.m
tutorial main page computeComposition.m computeWaterComp.m equationCompositional.m flash_calculation.m getHenryCoef.m
getR.m initStateBravo.m omega_l.m quadraticRelPerm.m runBravo.m setNonlinearSolverParameters.m setupControls.m
setupGeometry.m setupSystem.m solvefi.m vaporPressure.m

Returns the water vapor pressure

function p = vaporPressure(T)

   p = exp(20.386-5132/T)/760; % Formula taken from wikipedia. 1mmHg = 1/760atm

   % Switch to SI units
   p = p*atm;

end

Published October 8, 2014