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  using namespace dealii;
35 
36  namespace LABDepth
37  {
38  template <int dim>
39  class LABDepthLookup : public SimulatorAccess<dim>
40  {
41  public:
45  LABDepthLookup ();
46 
51  void
52  initialize ();
53 
60  double
61  get_lab_depth (const Point<dim> &position) const;
62 
66  static
67  void
68  declare_parameters (ParameterHandler &prm);
69 
73  void
74  parse_parameters (ParameterHandler &prm);
75 
76  private:
81 
85  std::string data_directory;
86 
90  std::string LAB_file_name;
91 
96  {
98  File
99  };
100 
105 
111  double max_depth;
112  };
113  }
114 
121  template <int dim>
122  class LithosphereMask : public Interface<dim>, public SimulatorAccess<dim>
123  {
124  public:
129  void
130  initialize () override;
131 
137  double
138  initial_temperature (const Point<dim> &position) const override;
139 
143  static
144  void
145  declare_parameters (ParameterHandler &prm);
146 
150  void
151  parse_parameters (ParameterHandler &prm) override;
152 
153  private:
158 
163  };
164 
165  }
166 }
167 
168 #endif
void declare_parameters(ParameterHandler &prm)
LABDepth::LABDepthLookup< dim > lab_depth_lookup
Utilities::StructuredDataLookup< 2 > lab_depths
Definition: compat.h:59
Definition: compat.h:42