In the process of condensation, latent heat gets converted to sensible heat.
Liquid water is at a lower energy level than water vapor. In the process of condensation, the surplus energy is given back to the thermal domain, i.e., gets converted to entropy.
In our model, humidity is used as an effort variable. It gets multiplied with a quantity that corresponds to the power converted in the process.
The humidity comsumed in the process of condensation is proportional to the difference between the current humidity and the humidity at saturation vapor pressure, i.e., the humidity at the dew point.
No condensation takes place, until the humidty reaches the dew point. Once it passes this point, water vapor is being liquified, such that the relative humidity remains at exactly 100%.
Condensation takes place in our model both at the glass panes of the dome, and also in the bulk of the air. The dome isn't tall enough to produce rain, but it most certainly can produce very dense fog.
Parameters: pao: Atmospheric pressure (default value = 87.848 kPa)
References: