ASPECT
initial_temperature.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_initial_temperature_h
16 #define _aspect_prescribed_solution_initial_temperature_h
17 
22 
23 namespace aspect
24 {
25  namespace PrescribedSolution
26  {
37  template <int dim>
39  : public Interface<dim>,
40  public SimulatorAccess<dim>
41  {
42  public:
47 
52  void initialize () override;
53 
57  void update () override;
58 
62  static void declare_parameters (ParameterHandler &prm);
63 
67  void parse_parameters (ParameterHandler &prm) override;
68 
72  void constrain_solution (
73  const typename DoFHandler<dim>::active_cell_iterator &cell,
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:
85 
93 
99  std::shared_ptr<const aspect::InitialTemperature::Manager<dim>> initial_temperature_manager;
100  };
101  }
102 }
103 
104 #endif
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
std::shared_ptr< const aspect::InitialTemperature::Manager< dim > > initial_temperature_manager
static void declare_parameters(ParameterHandler &prm)
Functions::ParsedFunction< dim > prescribed_temperature_indicator_function
void parse_parameters(ParameterHandler &prm) override
Utilities::Coordinates::CoordinateSystem coordinate_system