ASPECT
temperature_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) 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 #ifndef _aspect_prescribed_solution_temperature_function_h
16 #define _aspect_prescribed_solution_temperature_function_h
17 
20 #include <aspect/utilities.h>
21 
23 
24 namespace aspect
25 {
26  namespace PrescribedSolution
27  {
28 
35  template <int dim>
36  class TemperatureFunction : public Interface<dim>, public SimulatorAccess<dim>
37  {
38  public:
39 
44 
51  void update () override;
52 
56  static
57  void
59 
63  void
64  parse_parameters (ParameterHandler &prm) override;
65 
74  const std::vector<Point<dim>> &positions,
75  const std::vector<unsigned int> &component_indices,
76  std::vector<bool> &should_be_constrained,
77  std::vector<double> &solution) override;
78 
79  private:
84 
89 
97  };
98  }
99 }
100 
101 #endif
Functions::ParsedFunction< dim > prescribed_temperature_function
Functions::ParsedFunction< dim > prescribed_temperature_indicator_function
static void declare_parameters(ParameterHandler &prm)
void constrain_solution(const typename DoFHandler< dim >::active_cell_iterator &cell, const std::vector< Point< dim >> &positions, const std::vector< unsigned int > &component_indices, std::vector< bool > &should_be_constrained, std::vector< double > &solution) override
Utilities::Coordinates::CoordinateSystem coordinate_system
void parse_parameters(ParameterHandler &prm) override