CLASSIC
Canadian Land Surface Scheme including Biogeochemical Cycles
|
Check for freezing or thawing of liquid or frozen water in the soil layers, and adjust layer temperatures and water stores accordingly. More...
Functions/Subroutines | |
subroutine | soilwaterphasechg (TBAR, THLIQ, THICE, HCP, TBARW, HMFG, HTC, FI, EVAP, THPOR, THLMIN, HCPS, DELZW, DELZZ, ISAND, IG, ILG, IL1, IL2, JL) |
Check for freezing or thawing of liquid or frozen water in the soil layers, and adjust layer temperatures and water stores accordingly.
subroutine soilwaterphasechg | ( | real, dimension (ilg,ig), intent(inout) | TBAR, |
real, dimension (ilg,ig), intent(inout) | THLIQ, | ||
real, dimension (ilg,ig), intent(inout) | THICE, | ||
real, dimension (ilg,ig), intent(inout) | HCP, | ||
real, dimension (ilg,ig), intent(out) | TBARW, | ||
real, dimension (ilg,ig), intent(inout) | HMFG, | ||
real, dimension (ilg,ig), intent(inout) | HTC, | ||
real, dimension (ilg), intent(in) | FI, | ||
real, dimension (ilg), intent(in) | EVAP, | ||
real, dimension (ilg,ig), intent(in) | THPOR, | ||
real, dimension(ilg,ig), intent(in) | THLMIN, | ||
real, dimension (ilg,ig), intent(in) | HCPS, | ||
real, dimension (ilg,ig), intent(in) | DELZW, | ||
real, dimension (ilg,ig), intent(in) | DELZZ, | ||
integer, dimension (ilg,ig), intent(in) | ISAND, | ||
integer, intent(in) | IG, | ||
integer, intent(in) | ILG, | ||
integer, intent(in) | IL1, | ||
integer, intent(in) | IL2, | ||
integer, intent(in) | JL | ||
) |
[in,out] | tbar | Temperature of soil layer \([C] (T_g)\) |
[in,out] | thliq | Volumetric liquid water content of soil layer \([m^3 m^{-3}] (\theta_l)\) |
[in,out] | thice | Volumetric frozen water content of soil layer \([m^3 m^{-3}] (\theta_i)\) |
[in,out] | hcp | Heat capacity of soil layer \([J m^{-3} K^{-1}] (C_g)\) |
[out] | tbarw | Temperature of water in soil layer [C] |
[in,out] | hmfg | Energy associated with freezing or thawing of water in soil layer \([W m^{-2}]\) |
[in,out] | htc | Internal energy change of soil layer due to conduction and/or change in mass \([W m^{-2}] (I_g)\) |
[in] | fi | Fractional coverage of subarea in question on modelled area \([ ] (X_i)\) |
[in] | evap | Calculated evaporation rate from soil surface \([m s^{-1}]\) |
[in] | thpor | Pore volume in soil layer \([mm] (\theta_p)\) |
[in] | thlmin | Residual soil liquid water content remaining after freezing or evaporation \([m^3 m^{-3}] (\theta_r)\) |
[in] | hcps | Heat capacity of soil material \([J m^{-3} K^{-1}] (C_m)\) |
[in] | delzw | Permeable thickness of soil layer \([m] (\Delta z_{g,w})\) |
[in] | delzz | Soil layer thicknesses to bottom of permeable depth for standard three-layer configuration,or to bottom of thermal depth for multiple layers \([m] (\Delta z_{g,z})\) |
[in] | isand | Sand content flag |
The adjustments of soil layer temperature and water content in this routine are done over the whole soil profile in the case of multiple soil layers (see the section on assignment of background data), but only to the bottom of the permeable depth in the case of the standard three-layer configuration (0.10, 0.25 and 3.75 m). This is because if the permeable depth lies within the thick third soil layer, it is recognized as desirable to apply the temperature changes only to that upper part of the layer in which the phase change is occurring, in order to avoid systematic damping of the temperature response of the layer. Thus the local array DELZZ (set in subroutine waterCalcPrep) is used here instead of DELZ when referring to the total thermal thickness of the soil layer, where DELZZ=DELZW for the third soil layer when the three-layer configuration is being used, but DELZZ=DELZ for all other cases.
The heat capacity \(C_g\) of the permeable part \(\Delta z_{g, w}\) of the soil layer under consideration is calculated here and in various other places in the subroutine as the weighted average of the heat capacities of the liquid water content \(\theta_l\), the frozen water content \(\theta_i\), and the soil material (taken to apply to the volume fraction not occupied by the pore volume \(\theta_p\)). The heat capacity of air in the pores is neglected:
\(C_g = C_w \theta_l + C_i \theta_i + C_m (1 - \theta_p)\)
Over the impermeable portion of the layer, the heat capacity of rock \(C_r\) is assumed to apply. Thus an effective heat capacity \(C_{g, e}\) (in units of \(J m^{-2} K^{-1}\)) over the soil layer in question, \(\Delta z_{g, z}\), can be calculated as:
\(C_{g, e} = C_g \Delta z_{g, w} + C_r(\Delta z_{g, z} - \Delta z_{g, w})\)
The change of internal energy I in the soil layers as a result of freezing and thawing is calculated as the difference in I between the beginning and end of the subroutine:
\(\Delta I_j = X_i \Delta (C_{g, e} T_g)/\Delta t\)
where \(T_g\) is the temperature of the layer, \(\Delta t\) the length of the time step, and \(X_i\) the fractional coverage of the subarea under consideration relative to the modelled area.
If the soil layer temperature is less than 0 C and the volumetric liquid water content \(\theta_l\) of the layer is greater than the residual water content \(\theta_f\), the water content THFREZ that can be frozen by the available energy sink is calculated from \(C_e\) and \(T_g\). The volumetric water content THEVAP of the first layer that is required to satisfy the surface evaporative flux is determined. For each layer, if THLIQ is found to exceed THLMIN + THEVAP, THFREZ is compared to the available water. If THFREZ \(\leq\) THLIQ – THLMIN – THEVAP, all of the available energy sink is used to freeze part of the liquid water content in the permeable part of the soil layer, the amount of energy involved is subtracted from HTC and added to HMFG, \(C_g\) is recalculated and the layer temperature is set to 0 C. Otherwise, all of the liquid water content of the layer above THLMIN + THEVAP is converted to frozen water, and HMFG and HTC are recalculated to reflect this. Then \(C_g\) is recomputed, and the remaining energy sink is applied to decreasing the temperature of the soil layer (both the permeable and impermeable portions) using \(C_e\).
If the soil layer temperature is greater than 0 C and the volumetric ice content \(\theta_i\) of the layer is greater than zero, the ice content THMELT that can be melted by the available energy is calculated from \(C_e\) and \(T_g\). For each layer, if THMELT \(\leq\) THICE, all of the available energy is used to melt part of the frozen water content of the permeable part of the layer, the amount of energy involved is subtracted from HTC and added to HMFG, \(C_g\) is recalculated and the layer temperature is set to 0 C. Otherwise, all of the frozen water content of the layer is converted to liquid water, and HMFG and HTC are recalculated to reflect this. Then \(C_g\) is recomputed, and the remaining energy is applied to increasing the temperature of the soil layer (both the permeable and impermeable portions) using \(C_e\).
In the final cleanup, the internal energy calculations for this subroutine are completed, and the first half of a new set of internal energy calculations is done to span the subroutines treating ground water movement, which will be completed in subroutine waterUpdates. Lastly, TBARW, the liquid water temperature of each soil layer, is assigned using TBAR.