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 
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:
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
95 
99  void
101 
102  private:
108 
118 
124 
131  double radius;
138  double amplitude;
146 
155 
160 
167  std::string cooling_model;
168 
175 
181  std::unique_ptr<Functions::ParsedFunction<1>> function;
182 
187 
195 
199  double top_boundary_layer_age(const Point<dim> &position) const;
200  };
201  }
202 }
203 
204 
205 #endif
Functions::ParsedFunction< dim > age_function
Definition: adiabatic.h:186
Utilities::Coordinates::CoordinateSystem coordinate_system
Definition: adiabatic.h:194
double top_boundary_layer_age(const Point< dim > &position) const
void parse_parameters(ParameterHandler &prm) override
types::boundary_id surface_boundary_id
Definition: adiabatic.h:107
static void declare_parameters(ParameterHandler &prm)
double initial_temperature(const Point< dim > &position) const override
BoundaryLayerAgeModel::Kind top_boundary_layer_age_model
Definition: adiabatic.h:159
BoundaryLayerAgeModel::Kind parse(const std::string &parameter_name, const ParameterHandler &prm)
unsigned int boundary_id