ASPECT
harmonic_perturbation.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_harmonic_perturbation_h
17 #define _aspect_initial_temperature_harmonic_perturbation_h
18 
21 
22 
23 namespace aspect
24 {
25  namespace InitialTemperature
26  {
36  template <int dim>
37  class HarmonicPerturbation : public Interface<dim>, public ::aspect::SimulatorAccess<dim>
38  {
39  public:
43  double initial_temperature (const Point<dim> &position) const override;
44 
48  static
49  void
51 
55  void
56  parse_parameters (ParameterHandler &prm) override;
57 
58 
59  private:
60 
70 
78 
86 
91  double magnitude;
92 
102  };
103  }
104 }
105 
106 #endif
static void declare_parameters(ParameterHandler &prm)
void parse_parameters(ParameterHandler &prm) override
double initial_temperature(const Point< dim > &position) const override