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:
44 
49  void
51 
58  double
59  get_lab_depth (const Point<dim> &position) const;
60 
64  static
65  void
67 
71  void
73 
74  private:
79 
85  std::string data_directory;
86 
91  std::string LAB_file_name;
92 
97  {
99  File
100  };
101 
106 
113  double max_depth;
114  };
115  }
116 
123  template <int dim>
124  class LithosphereMask : public Interface<dim>, public SimulatorAccess<dim>
125  {
126  public:
131  void
132  initialize () override;
133 
139  double
140  initial_temperature (const Point<dim> &position) const override;
141 
145  static
146  void
148 
152  void
154 
155  private:
162 
167  };
168 
169  }
170 }
171 
172 #endif
double get_lab_depth(const Point< dim > &position) const
static void declare_parameters(ParameterHandler &prm)
Utilities::StructuredDataLookup< 2 > lab_depths
static void declare_parameters(ParameterHandler &prm)
void parse_parameters(ParameterHandler &prm) override
double initial_temperature(const Point< dim > &position) const override
LABDepth::LABDepthLookup< dim > lab_depth_lookup