modelPsychrometricData

Produces plot data for psychrometric charts

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This model produces psychrometric data from the moist air model in this library to be plotted in charts. The two most common chart varieties are the Mollier Diagram and the Psychrometric Chart. The first is widely used in some European countries while the second is more common in the Anglo-American world. Specific enthalpy is plotted over absolute humidity in the Mollier Diagram, it is the other way round in the Psychrometric Chart.
It must be noted that the relationship of both axis variables is not right-angled, the absolute humidity follows a slope which equals the enthalpy of vaporization at 0 °C. For better reading and in order to reduce the fog region the humidity axis is rotated to obtain a right-angled plot. Both charts usually contain additional information as isochores or auxiliary scales for e.g., heat ratios. Those information are omitted in this model and the charts below. Other important features of psychrometric chart data are that all mass specific variables (like absolute humidity, specific enthalpy etc.) are expressed in terms of kg dry air and that their baseline of 0 enthalpy is found at 0 °C and zero humidity.


Legend: blue - constant specific enthalpy, red - constant temperature, black - constant relative humidity

The model provides data for lines of constant specific enthalpy, temperature and relative humidity in a Mollier Diagram or Psychrometric Chart as they were used for the figures above. For limitations and ranges of validity please refer to the MoistAir package description. Absolute humidity x is increased with time in this model. The specific enthalpies adjusted for plotting are then obtained from:

  • y_h: constant specific enthalpy
  • y_T: constant temperature
  • y_phi: constant relative humidity

Parameters

TypeNameDefaultDescription
SI.Pressurep_const1e5Pressure
Integern_T11Number of isotherms
SI.TemperatureT_min253.15Lowest isotherm
SI.TemperatureT_step10Temperature step between two isotherms
Integern_h16Number of lines with constant specific enthalpy
SI.SpecificEnthalpyh_min-20e3Lowest line of constant enthalpy
SI.SpecificEnthalpyh_step1e4Enthalpy step between two lines of constant enthalpy
Integern_phi10Number of lines with constant relative humidity
Realphi_min0.1Lowest line of constant humidity
Realphi_step0.1Step between two lines of constant humidity
SI.MassFractionx_min0.00Minimum diagram absolute humidity
SI.MassFractionx_max0.03Maximum diagram absolute humidity
SI.Timet1Simulation time
SI.TemperatureT_const{T_min - T_step + i*T_step for i in 1:n_T}Constant temperatures
SI.SpecificEnthalpyh_const{(i - 1)*h_step + h_min for i in 1:n_h}Constant enthalpies
Realphi_const{(i - 1)*phi_step + phi_min for i in 1:n_phi}Constant relative humidities
RealdiagSlopeMedium.enthalpyOfVaporization(273.15)Rotation of diagram that zero degrees isotherm becomes horizontal outside the fog region
SI.MassFractionx_startx_minInitial absolute humidity in kg water/kg dry air

Components

TypeNameDefaultDescription
SI.MassFractionxAbsolute humidity in kg water/kg dry air
SI.SpecificEnthalpyhx_Th_1+x for constant T
SI.SpecificEnthalpyhx_hConstanst h_1+x
SI.SpecificEnthalpyhx_phih_1+x for constanst phi
SI.SpecificEnthalpyy_TChart enthalpy for constant T
SI.SpecificEnthalpyy_hChart enthalpy for constant h
SI.SpecificEnthalpyy_phiChart enthalpy for constant phi
Medium.BasePropertiesmedium_TMedium properties for constant T
Medium.BasePropertiesmedium_phiMedium properties for constant phi

Contents

NameDescription
MediumUsed medium package