ASPECT
adiabatic.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2012 - 2024 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_adiabatic_h
23 #define _aspect_initial_temperature_adiabatic_h
24 
27 #include <aspect/utilities.h>
28 
29 #include <deal.II/base/parsed_function.h>
30 
31 namespace aspect
32 {
33  namespace InitialTemperature
34  {
43  namespace BoundaryLayerAgeModel
44  {
45  enum Kind
46  {
49  function
50  };
51 
58  parse (const std::string &parameter_name,
59  const ParameterHandler &prm);
60  }
61 
70  template <int dim>
71  class Adiabatic : public Interface<dim>, public Utilities::AsciiDataBoundary<dim>
72  {
73  public:
77  Adiabatic ();
78 
79  void initialize () override;
80 
81  // avoid -Woverloaded-virtual:
83 
87  double initial_temperature (const Point<dim> &position) const override;
88 
92  static
93  void
94  declare_parameters (ParameterHandler &prm);
95 
99  void
100  parse_parameters (ParameterHandler &prm) override;
101 
102  private:
107  types::boundary_id surface_boundary_id;
108 
115 
116  /* Age of the lower thermal boundary layer. */
118 
123  double radius;
128  double amplitude;
129  /*
130  * Position of the initial temperature perturbation (in the
131  * center or at the boundary of the model domain).
132  */
134 
135  /*
136  * Deviation from adiabaticity in a subadiabatic mantle
137  * temperature profile. 0 for an adiabatic temperature
138  * profile.
139  */
141 
146 
147  /*
148  * Whether to use the half space cooling model, or the plate cooling
149  * model
150  */
151  std::string cooling_model;
152 
153  /*
154  * Depth to the base of the lithosphere for plate cooling model, in m
155  */
157 
163  std::unique_ptr<Functions::ParsedFunction<1>> function;
164 
168  Functions::ParsedFunction<dim> age_function;
169 
175 
179  double top_boundary_layer_age(const Point<dim> &position) const;
180  };
181  }
182 }
183 
184 
185 #endif
BoundaryLayerAgeModel::Kind top_boundary_layer_age_model
Definition: adiabatic.h:145
void declare_parameters(ParameterHandler &prm)
Definition: compat.h:59
Functions::ParsedFunction< dim > age_function
Definition: adiabatic.h:168
Utilities::Coordinates::CoordinateSystem coordinate_system
Definition: adiabatic.h:174
BoundaryLayerAgeModel::Kind parse(const std::string &parameter_name, const ParameterHandler &prm)
types::boundary_id surface_boundary_id
Definition: adiabatic.h:107