ASPECT
function.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_composition_function_h
17 #define _aspect_initial_composition_function_h
18 
21 #include <aspect/utilities.h>
22 
24 
25 namespace aspect
26 {
27  namespace InitialComposition
28  {
35  template <int dim>
36  class Function : public Interface<dim>,
37  public SimulatorAccess<dim>
38  {
39  public:
44  double initial_composition (const Point<dim> &position, const unsigned int n_comp) const override;
45 
49  static
50  void
52 
56  void
57  parse_parameters (ParameterHandler &prm) override;
58 
59  private:
63  std::unique_ptr<Functions::ParsedFunction<dim>> function;
64 
72  };
73  }
74 }
75 
76 
77 #endif
static void declare_parameters(ParameterHandler &prm)
double initial_composition(const Point< dim > &position, const unsigned int n_comp) const override
void parse_parameters(ParameterHandler &prm) override
Utilities::Coordinates::CoordinateSystem coordinate_system
Definition: function.h:71