ASPECT
lithosphere_mask.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2019 - 2022 by the authors of the ASPECT code.
3 
4  This file is part of ASPECT.
5 
6  ASPECT is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2, or (at your option)
9  any later version.
10 
11  ASPECT is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with ASPECT; see the file LICENSE. If not see
18  <http://www.gnu.org/licenses/>.
19 */
20 
21 
22 #ifndef _aspect_initial_temperature_lithosphere_mask_h
23 #define _aspect_initial_temperature_lithosphere_mask_h
24 
27 #include <aspect/utilities.h>
28 
29 
30 namespace aspect
31 {
32  namespace InitialTemperature
33  {
34  namespace LABDepth
35  {
36  template <int dim>
37  class LABDepthLookup : public SimulatorAccess<dim>
38  {
39  public:
43  LABDepthLookup ();
44 
49  void
50  initialize ();
51 
58  double
59  get_lab_depth (const Point<dim> &position) const;
60 
64  static
65  void
66  declare_parameters (ParameterHandler &prm);
67 
71  void
72  parse_parameters (ParameterHandler &prm);
73 
74  private:
79 
83  std::string data_directory;
84 
88  std::string LAB_file_name;
89 
94  {
97  };
98 
103 
109  double max_depth;
110  };
111  }
112 
119  template <int dim>
120  class LithosphereMask : public Interface<dim>, public SimulatorAccess<dim>
121  {
122  public:
127  void
128  initialize () override;
129 
135  double
136  initial_temperature (const Point<dim> &position) const override;
137 
141  static
142  void
143  declare_parameters (ParameterHandler &prm);
144 
148  void
149  parse_parameters (ParameterHandler &prm) override;
150 
151  private:
156 
161  };
162 
163  }
164 }
165 
166 #endif
LABDepth::LABDepthLookup< dim > lab_depth_lookup
Utilities::StructuredDataLookup< 2 > lab_depths
Definition: compat.h:59
double get_lab_depth(const Point< dim > &position) const
static void declare_parameters(ParameterHandler &prm)