ASPECT
spherical_constant.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) 2013-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_boundary_composition_spherical_constant_h
17 #define _aspect_boundary_composition_spherical_constant_h
18 
20 
22 
23 
24 namespace aspect
25 {
26  namespace BoundaryComposition
27  {
38  template <int dim>
39  class SphericalConstant : public Interface<dim>, public SimulatorAccess<dim>
40  {
41  public:
45  void
46  initialize() override;
47 
54  double boundary_composition (const types::boundary_id boundary_indicator,
55  const Point<dim> &position,
56  const unsigned int compositional_field) const override;
57 
62  static
63  void
65 
69  void
70  parse_parameters (ParameterHandler &prm) override;
71 
72  private:
78  std::vector<double> inner_composition;
79 
85  std::vector<double> outer_composition;
86 
92  };
93  }
94 }
95 
96 
97 #endif
static void declare_parameters(ParameterHandler &prm)
void parse_parameters(ParameterHandler &prm) override
double boundary_composition(const types::boundary_id boundary_indicator, const Point< dim > &position, const unsigned int compositional_field) const override