Flow Characteristics and Relative Permeability Functions for Two Phase Geothermal Reservoirs From a One Dimensional Thermodynamic Model