ASPECT
compute_profile.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_adiabatic_conditions_compute_profile_h
17 #define _aspect_adiabatic_conditions_compute_profile_h
18 
19 
21 
23 
24 namespace aspect
25 {
26  namespace AdiabaticConditions
27  {
37  template <int dim>
38  class ComputeProfile : public Interface<dim>
39  {
40  public:
44  ComputeProfile ();
45 
53  void initialize () override;
54 
60  void update () override;
61 
72  bool is_initialized() const override;
73 
77  double temperature (const Point<dim> &p) const override;
78 
82  double pressure (const Point<dim> &p) const override;
83 
87  double density (const Point<dim> &p) const override;
88 
93  double density_derivative (const Point<dim> &p) const override;
94 
98  static
99  void
101 
105  void
106  parse_parameters (ParameterHandler &prm) override;
107 
108  private:
109 
117 
123  unsigned int n_points;
124 
130  std::vector<double> temperatures;
131  std::vector<double> pressures;
132  std::vector<double> densities;
133 
138  double delta_z;
139 
145  {
148  };
149 
154 
159  std::unique_ptr<Functions::ParsedFunction<1>> composition_function;
160 
170 
176 
183  std::shared_ptr<const aspect::InitialComposition::Manager<dim>> initial_composition_manager;
184 
189  double get_property (const Point<dim> &p,
190  const std::vector<double> &property) const;
191  };
192  }
193 }
194 
195 
196 #endif
double temperature(const Point< dim > &p) const override
std::unique_ptr< Functions::ParsedFunction< 1 > > composition_function
void parse_parameters(ParameterHandler &prm) override
static void declare_parameters(ParameterHandler &prm)
double density(const Point< dim > &p) const override
Functions::ParsedFunction< 1 > surface_condition_function
double density_derivative(const Point< dim > &p) const override
double get_property(const Point< dim > &p, const std::vector< double > &property) const
std::shared_ptr< const aspect::InitialComposition::Manager< dim > > initial_composition_manager
double pressure(const Point< dim > &p) const override