Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PrecipitationScaling.hh
Go to the documentation of this file.
1// Copyright (C) 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2020, 2021, 2023 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#ifndef PRECIPITATIONSCALING_H
20#define PRECIPITATIONSCALING_H
21
22#include "pism/coupler/AtmosphereModel.hh"
23
24namespace pism {
25
26class ScalarForcing;
27
28namespace atmosphere {
29
30/** Scaling precipitation using air temperature offsets
31 *
32 * This class implements the adjustment used to capture the influence of changing air
33 * temperature on precipitation. It uses scalar temperature offsets read from a file as an
34 * input.
35 *
36 * @f[
37 * P_{G}(x,y,t) = P_{G}(x,y,0)exp\left[\frac{0.169}{d}\left({\Delta}T(t)+ {\Delta}T_{SC}(t)\right)\right]
38 * @f]
39
40 * where @f$P_G(x,y,0)@f$ is the precipitation for the present
41 * Greenland ice sheet, obtained from the atmosphere model used as an
42 * input of this class. The time dependent precipitation is
43 * @f$P_G(x,y,t)@f$, @f$d@f$ is the @f${\delta}_{18}@f$ conversion factor
44 * of @f$2.4^{\circ}C/\frac{0}{00}@f$, and @f${\Delta}T_{SC}@f$ is a
45 * correction term for the change of altitude of the central dome
46 * during the Greenland ice sheet's evolution. The coefficient
47 * " @f$ 0.169/d @f$ " corresponds to a 7.3% change of precipitation rate
48 * for every @f$1^{\circ}C@f$ of temperature change (Huybrechts et al.
49 * 2002).
50 *
51 * One possible scheme for @f${\Delta}T_{SC}(t)@f$ (used in PISM) is
52 * to take it to be zero, which regards the height correction as
53 * belonging to the set of uncertainties related to the conversion
54 * between isotopic and temperature signals.
55 */
57public:
58 PrecipitationScaling(std::shared_ptr<const Grid> g, std::shared_ptr<AtmosphereModel> in);
59 virtual ~PrecipitationScaling() = default;
60
61protected:
62 void init_impl(const Geometry &geometry);
63 void update_impl(const Geometry &geometry, double t, double dt);
64
65 void init_timeseries_impl(const std::vector<double> &ts) const;
66
67 const array::Scalar& precipitation_impl() const;
68
69 void precip_time_series_impl(int i, int j, std::vector<double> &values) const;
70
71protected:
73 std::shared_ptr<ScalarForcing> m_forcing;
74 mutable std::vector<double> m_scaling_values;
75
76 std::shared_ptr<array::Scalar> m_precipitation;
77};
78
79} // end of namespace atmosphere
80} // end of namespace pism
81
82#endif /* PRECIPITATIONSCALING_H */
A purely virtual class defining the interface of a PISM Atmosphere Model.
std::shared_ptr< ScalarForcing > m_forcing
void init_timeseries_impl(const std::vector< double > &ts) const
void update_impl(const Geometry &geometry, double t, double dt)
void precip_time_series_impl(int i, int j, std::vector< double > &values) const
const array::Scalar & precipitation_impl() const
std::shared_ptr< array::Scalar > m_precipitation
void init_impl(const Geometry &geometry)
static const double g
Definition exactTestP.cc:36