ASPECT
ascii_data.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-2025 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_ascii_data_h
17 #define _aspect_initial_composition_ascii_data_h
18 
20 
22 #include <aspect/utilities.h>
23 
24 
25 namespace aspect
26 {
27  namespace InitialComposition
28  {
35  template <int dim>
36  class AsciiData : public Interface<dim>, public aspect::SimulatorAccess<dim>
37  {
38  public:
42  AsciiData ();
43 
48  void
49  initialize () override;
50 
55  double
56  initial_composition (const Point<dim> &position,
57  const unsigned int n_comp) const override;
58 
62  static
63  void
65 
69  void
70  parse_parameters (ParameterHandler &prm) override;
71 
72  private:
76  std::unique_ptr<Utilities::AsciiDataInitial<dim>> ascii_data_initial;
77  };
78  }
79 }
80 
81 
82 #endif
static void declare_parameters(ParameterHandler &prm)
void parse_parameters(ParameterHandler &prm) override
double initial_composition(const Point< dim > &position, const unsigned int n_comp) const override
std::unique_ptr< Utilities::AsciiDataInitial< dim > > ascii_data_initial
Definition: ascii_data.h:76