From the example above if the Pressure >= pSatW(273.15) And Pressure <= pSatW(623.15) Then it will look at region2 to calculate the value...is this correct?
Correct. If you follow the link at the top of the code module to B. Spang's page here, he describes the 5 regions defined by the IAPWS for calculating the properties of water. Each function in the module will need these kind of If...Then statements to determine which region it should use to calculate whatever property is requested.
Just pulling the equation out of the spreadsheet and putting it into a more algebraic format, it looks like this is the equation:
meFD=metotal / [Hvap(FD)/Hvap(sys) + 1] where:
meFD=mass evaporated in FD
metotal=total mass evaporated
Hvap(FD)=enthalpy of vaporization at FD vacuum
Hvap(sys)=enthalpy of vaporization at system vacuum
The 101.3 and 1.013 values are there to convert the given kPa(gauge) pressures to the bar(absolute) values required by the functions to calculate the thermodynamic properties of water.
P(bara)=P(kPa)/101.325*1.01325 + 1.01325
There's the basic equation being used. Rather than go through the entire calculation step by step, are there specific quantities/steps that you are having trouble following or understanding?
Edited by MrShorty, 01 April 2014 - 12:05 PM.