ASPECT
box.h
Go to the documentation of this file.
1 // ------------------------------------------------------
2 //
3 // SPDX-License-Identifier: GPL-2.0-or-later
4 //
5 // SPDX-FileCopyrightText: Copyright (C) 2011-2026 by the ASPECT authors.
6 //
7 // This file is part of ASPECT.
8 //
9 // Detailed license information governing the source code and
10 // contributions can be found in the folder LICENSES and in
11 // LICENSE and CONTRIBUTING.md at the top level directory.
12 //
13 // ------------------------------------------------------
14 
15 
16 #ifndef _aspect_initial_temperature_box_h
17 #define _aspect_initial_temperature_box_h
18 
21 
22 namespace aspect
23 {
24  namespace InitialTemperature
25  {
32  template <int dim>
33  class PerturbedBox : public Interface<dim>, public SimulatorAccess<dim>
34  {
35  public:
39  double initial_temperature (const Point<dim> &position) const override;
40  };
41 
48  template <int dim>
49  class PolarBox : public Interface<dim>, public SimulatorAccess<dim>
50  {
51  public:
55  double initial_temperature (const Point<dim> &position) const override;
56  };
57 
63  template <int dim>
64  class MandelBox : public Interface<dim>, public SimulatorAccess<dim>
65  {
66  public:
70  double initial_temperature (const Point<dim> &position) const override;
71  };
72 
79  template <int dim>
80  class InclusionShapeBox : public Interface<dim>, public SimulatorAccess<dim>
81  {
82  public:
86  double initial_temperature(const Point<dim> &position) const override;
87 
91  static
92  void
94 
98  void
99  parse_parameters (ParameterHandler &prm) override;
100 
101  private:
105  std::string inclusion_shape;
109  std::string inclusion_gradient;
113  double radius;
125  double center_x;
129  double center_y;
133  double center_z;
134  };
135  }
136 }
137 
138 #endif
virtual void parse_parameters(ParameterHandler &prm)
double initial_temperature(const Point< dim > &position) const override
static void declare_parameters(ParameterHandler &prm)