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) 2016-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_adiabatic_conditions_ascii_data_h
17 #define _aspect_adiabatic_conditions_ascii_data_h
18 
19 
21 #include <aspect/utilities.h>
22 
23 #include <deal.II/base/point.h>
24 
25 
26 namespace aspect
27 {
28  namespace AdiabaticConditions
29  {
33  template <int dim>
34  class AsciiData : public Utilities::AsciiDataProfile<dim>, public Interface<dim>
35  {
36  public:
40  AsciiData ();
41 
49  void initialize () override;
50 
51  // avoid -Woverloaded-virtual:
53 
64  bool is_initialized() const override;
65 
69  double temperature (const Point<dim> &p) const override;
70 
74  double pressure (const Point<dim> &p) const override;
75 
79  double density (const Point<dim> &p) const override;
80 
85  double density_derivative (const Point<dim> &p) const override;
86 
90  static
91  void
93 
97  void
98  parse_parameters (ParameterHandler &prm) override;
99 
100  private:
101 
109 
114  unsigned int temperature_index;
115  unsigned int pressure_index;
116  unsigned int density_index;
117  };
118  }
119 }
120 
121 
122 #endif
double density(const Point< dim > &p) const override
double pressure(const Point< dim > &p) const override
static void declare_parameters(ParameterHandler &prm)
void parse_parameters(ParameterHandler &prm) override
bool is_initialized() const override
double density_derivative(const Point< dim > &p) const override
double temperature(const Point< dim > &p) const override