ASPECT
two_merged_boxes.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_boundary_composition_two_merged_boxes_h
17 #define _aspect_boundary_composition_two_merged_boxes_h
18 
21 
22 
23 namespace aspect
24 {
25  namespace BoundaryComposition
26  {
34  template <int dim>
35  class TwoMergedBoxes : public Interface<dim>, public SimulatorAccess<dim>
36  {
37  public:
43  double boundary_composition (const types::boundary_id boundary_indicator,
44  const Point<dim> &position,
45  const unsigned int compositional_field) const override;
46 
51  static
52  void
54 
58  void
59  parse_parameters (ParameterHandler &prm) override;
60 
65  void initialize () override;
66 
67  private:
77  std::vector<double> composition_values[2*dim+2*(dim-1)];
78  };
79  }
80 }
81 
82 
83 #endif
double boundary_composition(const types::boundary_id boundary_indicator, const Point< dim > &position, const unsigned int compositional_field) const override
static void declare_parameters(ParameterHandler &prm)
std::vector< double > composition_values[2 *dim+2 *(dim-1)]
void parse_parameters(ParameterHandler &prm) override