SAMSIM
|
Computes all heat fluxes. More...
Functions/Subroutines | |
subroutine | sub_heat_fluxes () |
Computes surface temperature and heatfluxes. More... | |
Computes all heat fluxes.
Everything related to heat fluxes happens in sub_heat_fluxes, which is why it is a very crucial part of SAMSIM.
COPYRIGHT
This file is part of SAMSIM.
SAMSIM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
SAMSIM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with SAMSIM. If not, see http://www.gnu.org/licenses/.
subroutine mo_heat_fluxes::sub_heat_fluxes | ( | ) |
Computes surface temperature and heatfluxes.
Major subroutine, calculates all atmospheric energy fluxes and applies both atmospheric and oceanic fluxes. Is one of the only subroutines to directly use mo_data because so many variables are needed.
There are three different ways to calculate atmospheric heat fluxes implemented which are defined using boundflux_flag.
For 1 and 2 the surface temperature in turn determines the atmospheric heat flux into the snow or ice. Atmoflux_flag is important for boundflux_flag 2, as it determines which atmospheric fluxes are used.
Melting occurs when the surface T is above the melting temperature of the top layer
Boundflux_flag 1 and 3 are not made to work with snow. If you need snow you'll have to implement snow cover yourself. For a detailed look at what is happening see the source code.
The snow layer is treated differently based on the snow thickness.