WATER95 Reference

Installation

Unzip the package, put the content into any directory you like and add it to the MATLAB path, e.g. with the following command (inside Matlab!)

     addpath('my_favorite_directory')
  

Usage

The following table shows all user level routines of the WATER95 package. All parameters and results are in standard SI units.

Name Interface Purpose
saturationPressure [pS, rhop, rhopp] = saturationPressure(T) returns saturation pressure and densities of the liquid and vapor phase as functions of T
pressure [p, x] = pressure(rho, T) returns pressure and dryness fraction as functions of rho and T
enthalpy [h, x] = enthalpy(rho, T) returns specific enthalpy and dryness fraction as functions of rho and T
entropy [s, x] = entropy(rho, T) returns specific entropy and dryness fraction as functions of rho and T
heatCapacityV [cV, x] = heatCapacityV(rho, T) returns specific isochoric heat capacity and dryness fraction as functions of rho and T
heatCapacityP [cP, x] = heatCapacityP(rho, T) returns specific isobaric heat capacity and dryness fraction as functions of rho and T
soundVelocity [w, x] = soundVelocity(rho, T) returns sound velocity and dryness fraction as functions of rho and T
saturationTemperature T = saturationTemperature(p) returns the saturation temperature as function of p
density rho = density(p, T) returns the density as function of p and T
temperature [T, x] = temperature(p, rho) returns temperature and dryness fraction as functions of p and rho
temperaturePS [T, x] = temperaturePS(p, s) returns temperature and dryness fraction as functions of p and s
temperatureRS T = temperatureRS(rho, s) returns the temperature as function of rho and s
densityTX rho = densityTX(T, x) returns the density of wet steam given by temperature and dryness fraction
drynessFractionTS x = drynessFractionTS(T, s) returns the dryness fraction as function of T and s
isentropic [pi,vi,Ti,si,xi] = isentropic(p1, v1, v2, N, logFlag) returns values of p, v, T, s, x along an isentropic going from (p1,v1) to v2
isobaric [pi,vi,Ti,si,xi] = isobaric(p1, v1, v2, N, logFlag) returns values of p, v, T, s, x along an isobaric going from (p1,v1) to v2
isochoric [pi,vi,Ti,si,xi] = isochoric(p1, v1, p2, N) returns values of p, v, T, s, x along an isochoric going from (p1,v1) to p2
isothermal [pi,vi,Ti,si,xi] = isothermal(p1, v1, v2, N, NP,logFlag) returns values of p, v, T, s, x along an isothermal going from (p1,v1) to v2
isentropicTPP [pi,vi,Ti,si,xi] = isentropicTPP(T1, p1, p2, N, logFlag) returns values of p, v, T, s, x along an isentropic going from (T1,p1) to p2
isothermalTPP [pi,vi,Ti,si,xi] = isothermalTPP(T1, p1, p2, N, NP, logFlag) returns values of p, v, T, s, x along an isothermal going from (T1,p1) to p2
clausiusRankineCornerPoints [pi,vi,Ti,si,xi,hi] = clausiusRankineCornerPoints(T1, p1, p2) returns corner points of a Clausius-Rankine cycle defined by p1, p2 and T1
efficiencyCR [eta rW] = efficiencyCR(T1, p1, p2) returns the efficiency eta and the work efficiency rW for a Clausius-Rankine process
clausiusRankine [pi,vi,Ti,si,xi, N] = clausiusRankine(T1, p1, p2, logFlag, N) returns points along a Clausius-Rankine cycle defined by p1, p2 and T1
plotPVandTS plotPVandTS(pi,vi,Ti,si, N) plots a p-v and a T-s diagram for the given data
plotIsothermes plotIsothermes() plots a semilog p-v-diagram with isothermes for several (fixed) Ts
plotSaturationValues plotSaturationValues() plots diagrams of pS(T), rho(T), h(T) and s(T) on the saturation curve
plotIsochore plotIsochore(rho, Tmax, Tmin) plots a p-T diagram of an isochore for given rho from Tmin to Tmax
plotIsochoreDisplay plotIsochoreDisplay() plots p-T diagrams of isochores for several (fixed) rhos
plotPhaseDiagram plotPhaseDiagram() plots the phase boundaries in a p-T diagram
getHotSteamTable [p, T, v, h, s] = getHotSteamTable() returns a hot steam table with a range of useful values
getWetSteamTable [T, p, vp, vpp, hp, hpp, sp, spp] = getWetSteamTable() returns a wet steam table with a range of useful values
getWaterTable [p, T, v, h, s] = getWaterTable() returns a water table with a range of useful values
publishSaturationTable publishSaturationTable(T, p, vp, vpp, hp, hpp, sp, spp) creates a HTML document displaying the given values in table form
publishWaterTable publishWaterTable(p, T, v, h, s, outfile, title) creates a HTML document displaying the given values in table form
getCriticalValues [Tc rhoc] = getCriticalValues() returns the critical values of T and rho
getTriplePointTemperature Tt = getTriplePointTemperature() returns the temperature at the triple point
celsiusToKelvin T = celsiusToKelvin(t) converts temperatures from Celsius to Kelvin
vectorize1d Y = vectorize1d(func, A) applies the scalar function func(a) to the array A
vectorize2d Y = vectorize2d(func, A, B) applies the scalar function func(a,b) to the arrays A, B
getSecondResult y = getSecondResult(func, x1 [, x2]) returns the second result of a function with one or two output values
getThirdResult y = getThirdResult(func, x1 [, x2]) returns the third result of a function with one or two output values