PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
greens.hh
Go to the documentation of this file.
1 // Copyright (C) 2007--2009, 2014, 2015, 2017, 2019 Ed Bueler
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 __greens_hh
20 #define __greens_hh
21 
22 #include <gsl/gsl_interp.h> // for gsl_interp_accel
23 #include <gsl/gsl_spline.h> // for gsl_spline
24 
25 namespace pism {
26 namespace bed {
27 
28 //! @brief The integrand in defining the elastic Green's function from
29 //! the [@ref Farrell] earth model.
30 /*!
31  * For G^E(r), the Green's function of spherical layered elastic earth
32  * model. From data in \ref LingleClark. See also \ref BLKfastearth.
33  */
34 double ge_integrand(unsigned ndim, const double* args, void* data);
35 
37 public:
40  double operator()(double r);
41 private:
42  static const int N = 42;
43  static const double rmkm[N];
44  static const double GE[N];
45 
46  gsl_interp_accel* acc;
47  gsl_spline* spline;
48 
49  // disable copy constructor and the assignment operator:
52 };
53 
54 //! @brief Parameters used to access elastic Green's function from the
55 //! [@ref Farrell] earth model.
56 struct ge_data {
57  double dx, dy;
58  int p, q;
60 };
61 
62 //! @brief Actually compute the response of the viscous half-space
63 //! model in \ref LingleClark, to a disc load.
64 double viscDisc(double t, double H0, double R0, double r,
65  double rho, double rho_ice, double grav, double D, double eta);
66 
67 } // end of namespace bed
68 } // end of namespace pism
69 
70 #endif /* __greens_hh */
static const double rmkm[N]
Definition: greens.hh:43
double operator()(double r)
Definition: greens.cc:62
gsl_spline * spline
Definition: greens.hh:47
static const int N
Definition: greens.hh:42
greens_elastic & operator=(const greens_elastic &)
static const double GE[N]
Definition: greens.hh:44
greens_elastic(const greens_elastic &other)
gsl_interp_accel * acc
Definition: greens.hh:46
const double H0
Definition: exactTestK.c:37
const double rho_ice
Definition: exactTestK.c:31
#define rho
Definition: exactTestM.c:35
static const double grav
Definition: exactTestO.c:26
double ge_integrand(unsigned ndim, const double *args, void *data)
The integrand in defining the elastic Green's function from the [Farrell] earth model.
Definition: greens.cc:30
double viscDisc(double t, double H0, double R0, double r, double rho, double rho_ice, double grav, double D, double eta)
Actually compute the response of the viscous half-space model in LingleClark, to a disc load.
Definition: greens.cc:135
greens_elastic * G
Definition: greens.hh:59
Parameters used to access elastic Green's function from the [Farrell] earth model.
Definition: greens.hh:56