PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
GoldsbyKohlstedt.hh
Go to the documentation of this file.
1 /* Copyright (C) 2015, 2016, 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 
20 #ifndef _GOLDSBYKOHLSTEDT_H_
21 #define _GOLDSBYKOHLSTEDT_H_
22 
23 #include <string> // for string
24 #include "pism/rheology/FlowLaw.hh" // for FlowLaw
25 #include "pism/util/EnthalpyConverter.hh" // for EnthalpyConverter, Enthalp...
26 namespace pism { class Config; }
27 
28 namespace pism {
29 namespace rheology {
30 
31 // Hybrid (Goldsby-Kohlstedt/Glen) ice flow law
32 
33 struct GKparts {
35 };
36 
37 //! A hybrid of Goldsby-Kohlstedt (2001) ice (constitutive form) and Paterson-Budd (1982)-Glen (viscosity form).
38 /*!
39  Each FlowLaw has both a forward flow law in "constitutive law" form ("flow_from_temp()") and an
40  inverted-and-vertically-integrated flow law ("effective_viscosity()"). Only the
41  former form of the flow law is known for Goldsby-Kohlstedt. If one can
42  invert-and-vertically-integrate the G-K law then one can build a "trueGKIce"
43  derived class.
44 */
45 class GoldsbyKohlstedt : public FlowLaw {
46 public:
47  GoldsbyKohlstedt(const std::string &prefix,
48  const Config &config,
50 protected:
51  virtual double flow_impl(double stress, double E,
52  double pressure, double grainsize) const;
53 
54  // NB! not virtual
55  double softness_impl(double E, double p) const __attribute__((noreturn));
56  double hardness_impl(double E, double p) const;
57  virtual double flow_from_temp(double stress, double temp,
58  double pressure, double gs) const;
59  GKparts flowParts(double stress, double temp, double pressure) const;
60 
62  //--- diffusional flow ---
64  //--- dislocation creep ---
66  //--- easy slip (basal) ---
68  //--- grain boundary sliding ---
71 };
72 
73 //! Derived class of GoldsbyKohlstedt for testing purposes only.
74 /*!
75  GoldsbyKohlstedtStripped is a simplification of Goldsby-Kohlstedt. Compare to that
76  used in Peltier et al 2000, which is even simpler.
77 */
79 public:
80  GoldsbyKohlstedtStripped(const std::string &prefix,
81  const Config &config, EnthalpyConverter::Ptr EC);
82 
83 protected:
84  virtual double flow_from_temp(double stress, double temp,
85  double pressure, double gs) const;
86 
88 };
89 
90 } // end of namespace rheology
91 } // end of namespace pism
92 
93 
94 #endif /* _GOLDSBYKOHLSTEDT_H_ */
A class for storing and accessing PISM configuration flags and parameters.
std::shared_ptr< EnthalpyConverter > Ptr
EnthalpyConverter::Ptr EC() const
Definition: FlowLaw.cc:70
virtual double flow_from_temp(double stress, double temp, double pressure, double gs) const
GoldsbyKohlstedtStripped(const std::string &prefix, const Config &config, EnthalpyConverter::Ptr EC)
Derived class of GoldsbyKohlstedt for testing purposes only.
virtual double flow_impl(double stress, double E, double pressure, double grainsize) const
double hardness_impl(double E, double p) const
double softness_impl(double E, double p) const __attribute__((noreturn))
GKparts flowParts(double stress, double temp, double pressure) const
virtual double flow_from_temp(double stress, double temp, double pressure, double gs) const
GoldsbyKohlstedt(const std::string &prefix, const Config &config, EnthalpyConverter::Ptr EC)
A hybrid of Goldsby-Kohlstedt (2001) ice (constitutive form) and Paterson-Budd (1982)-Glen (viscosity...
#define __attribute__(x)