tbasal_resistance.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
---
tbasal_resistance.hh (2314B)
---
1 // Copyright (C) 2004-2015, 2017, 2019 Jed Brown, Ed Bueler, and Constantine Khroulev
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 __basal_resistance_hh
20 #define __basal_resistance_hh
21
22 #include "pism/util/Units.hh"
23
24 namespace pism {
25
26 class Config;
27 class Logger;
28
29 //! Class containing physical constants and the constitutive relation describing till for SSA.
30 /*!
31 This *pseudo* -plastic type can actually describe anything from linearly
32 viscous till to purely plastic till.
33 */
34 class IceBasalResistancePlasticLaw {
35 public:
36 IceBasalResistancePlasticLaw(const Config &config);
37 virtual ~IceBasalResistancePlasticLaw();
38 virtual void print_info(const Logger &log, int threshold, units::System::Ptr system) const;
39 virtual double drag(double tauc, double vx, double vy) const;
40 virtual void drag_with_derivative(double tauc, double vx, double vy,
41 double *drag, double *ddrag) const;
42 protected:
43 double m_plastic_regularize;
44 };
45
46 class IceBasalResistancePseudoPlasticLaw : public IceBasalResistancePlasticLaw{
47 public:
48 IceBasalResistancePseudoPlasticLaw(const Config &config);
49 virtual ~IceBasalResistancePseudoPlasticLaw();
50 virtual void print_info(const Logger &log, int threshold, units::System::Ptr system) const;
51 virtual double drag(double tauc, double vx, double vy) const;
52 virtual void drag_with_derivative(double tauc, double vx, double vy,
53 double *drag, double *ddrag) const;
54 protected:
55 double m_pseudo_q, m_pseudo_u_threshold, m_sliding_scale_factor_reduces_tauc;
56 };
57
58 } // end of namespace pism
59
60 #endif /* __basal_resistance_hh */
61