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) 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_box_h
17 #define _aspect_boundary_composition_box_h
18 
21 
22 
23 namespace aspect
24 {
25  namespace BoundaryComposition
26  {
33  template <int dim>
34  class Box : public Interface<dim>, public SimulatorAccess<dim>
35  {
36  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  void initialize () override;
52 
57  static
58  void
60 
64  void
65  parse_parameters (ParameterHandler &prm) override;
66 
67  private:
76  std::vector<double> composition_values[2*dim];
77  };
78  }
79 }
80 
81 
82 #endif
static void declare_parameters(ParameterHandler &prm)
std::vector< double > composition_values[2 *dim]
Definition: box.h:76
double boundary_composition(const types::boundary_id boundary_indicator, const Point< dim > &position, const unsigned int compositional_field) const override
void parse_parameters(ParameterHandler &prm) override