ASPECT
compute_entropy_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) 2016-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_entropy_profile_h
17 #define _aspect_adiabatic_conditions_compute_entropy_profile_h
18 
19 
23 
24 namespace aspect
25 {
26  namespace AdiabaticConditions
27  {
38  template <int dim>
39  class ComputeEntropyProfile : public Interface<dim>
40  {
41  public:
46 
54  void initialize () override;
55 
66  bool is_initialized() const override;
67 
71  double temperature (const Point<dim> &p) const override;
72 
76  double pressure (const Point<dim> &p) const override;
77 
81  double density (const Point<dim> &p) const override;
82 
87  double density_derivative (const Point<dim> &p) const override;
88 
89  static
90  void
92 
93  void
94  parse_parameters (ParameterHandler &prm) override;
95 
96  private:
104 
110  unsigned int n_points;
111 
118 
124  std::vector<double> temperatures;
125  std::vector<double> pressures;
126  std::vector<double> densities;
127 
132  double delta_z;
133 
139  {
142  };
143 
148 
153  std::unique_ptr<Functions::ParsedFunction<1>> composition_function;
154 
161  std::shared_ptr<const aspect::InitialComposition::Manager<dim>> initial_composition_manager;
162 
167  double get_property (const Point<dim> &p,
168  const std::vector<double> &property) const;
169  };
170  }
171 }
172 
173 
174 #endif
double pressure(const Point< dim > &p) const override
double get_property(const Point< dim > &p, const std::vector< double > &property) const
double density(const Point< dim > &p) const override
static void declare_parameters(ParameterHandler &prm)
std::shared_ptr< const aspect::InitialComposition::Manager< dim > > initial_composition_manager
double temperature(const Point< dim > &p) const override
void parse_parameters(ParameterHandler &prm) override
double density_derivative(const Point< dim > &p) const override
std::unique_ptr< Functions::ParsedFunction< 1 > > composition_function