tbootstrapping.hh - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
HTML git clone git://src.adamsgaard.dk/pism
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
tbootstrapping.hh (2541B)
---
1 /* Copyright (C) 2016, 2017 PISM Authors
2 *
3 * This file is part of PISM.
4 *
5 * PISM is free software; you can redistribute it and/or modify it under the
6 * terms of the GNU General Public License as published by the Free Software
7 * Foundation; either version 3 of the License, or (at your option) any later
8 * version.
9 *
10 * PISM is distributed in the hope that it will be useful, but WITHOUT ANY
11 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with PISM; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #ifndef BOOTSTRAPPING_H
21 #define BOOTSTRAPPING_H
22
23 #include "pism/util/EnthalpyConverter.hh"
24
25 namespace pism {
26
27 class IceModelVec2S;
28 class IceModelVec3;
29
30 namespace energy {
31
32 /*!
33 * A heuristic formula for the temperature distribution within a column of ice. Used during
34 * bootstrapping. A simple quartic guess.
35 *
36 * @param[in] EC enthalpy converter
37 * @param[in] H ice thickness
38 * @param[in] z height above the base of the ice, `0 <= z <= H`
39 * @param[in] T_surface surface temperature, in Kelvin
40 * @param[in] G upward basal heat flux, in `W / meter^2`
41 * @param[in] ice_k thermal conductivity of ice
42 */
43 double ice_temperature_guess(EnthalpyConverter::Ptr EC,
44 double H, double z, double T_surface,
45 double G, double ice_k);
46
47 /*!
48 * A heuristic formula for the temperature distribution within a column of ice. Used during
49 * bootstrapping. Uses the surface mass balance to set the vertical velocity at the top surface.
50 *
51 * @param[in] EC enthalpy converter
52 * @param[in] H ice thickness
53 * @param[in] z height above the base of the ice, `0 <= z <= H`
54 * @param[in] T_surface surface temperature, in Kelvin
55 * @param[in] G upward basal heat flux, in `W / meter^2`
56 * @param[in] ice_k thermal conductivity of ice
57 * @param[in] K temperature diffusivity in ice, ice_k / (ice_density * ice_c), where ice_c is the
58 * ice specific heat capacity
59 * @param[in] SMB surface mass balance in `m / second`
60 */
61 double ice_temperature_guess_smb(EnthalpyConverter::Ptr EC,
62 double H, double z, double T_surface,
63 double G, double ice_k, double K, double SMB);
64
65 } // end of namespace energy
66 } // end of namespace pism
67
68 #endif /* BOOTSTRAPPING_H */