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) 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_function_h
17 #define _aspect_adiabatic_conditions_function_h
18 
19 
21 #include <deal.II/base/point.h>
23 
24 
25 namespace aspect
26 {
27  namespace AdiabaticConditions
28  {
33  template <int dim>
34  class Function : public Interface<dim>
35  {
36  public:
40  Function ();
41 
45  void initialize () override;
46 
51  bool is_initialized() const override;
52 
56  double temperature (const Point<dim> &p) const override;
57 
58 
62  double pressure (const Point<dim> &p) const override;
63 
67  double density (const Point<dim> &p) const override;
68 
73  double density_derivative (const Point<dim> &p) const override;
74 
78  static
79  void
81 
85  void
86  parse_parameters (ParameterHandler &prm) override;
87 
88  private:
89 
94  };
95  }
96 }
97 
98 
99 #endif
static void declare_parameters(ParameterHandler &prm)
double density(const Point< dim > &p) const override
double temperature(const Point< dim > &p) const override
double density_derivative(const Point< dim > &p) const override
bool is_initialized() const override
void parse_parameters(ParameterHandler &prm) override
double pressure(const Point< dim > &p) const override