ASPECT
constant.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) 2014-2019 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_boundary_temperature_constant_h
17 #define _aspect_boundary_temperature_constant_h
18 
21 #include <map>
22 
23 
24 namespace aspect
25 {
26  namespace BoundaryTemperature
27  {
36  template <int dim>
37  class Constant : public Interface<dim>, public SimulatorAccess<dim>
38  {
39  public:
46  double boundary_temperature (const types::boundary_id boundary_indicator,
47  const Point<dim> &position) const override;
48 
56  double minimal_temperature (const std::set<types::boundary_id> &fixed_boundary_ids) const override;
57 
65  double maximal_temperature (const std::set<types::boundary_id> &fixed_boundary_ids) const override;
66 
71  static
72  void
74 
78  void
79  parse_parameters (ParameterHandler &prm) override;
80 
81  private:
85  std::map<types::boundary_id, double> boundary_temperatures;
86  };
87  }
88 }
89 
90 
91 #endif
double maximal_temperature(const std::set< types::boundary_id > &fixed_boundary_ids) const override
std::map< types::boundary_id, double > boundary_temperatures
Definition: constant.h:85
double boundary_temperature(const types::boundary_id boundary_indicator, const Point< dim > &position) const override
static void declare_parameters(ParameterHandler &prm)
double minimal_temperature(const std::set< types::boundary_id > &fixed_boundary_ids) const override
void parse_parameters(ParameterHandler &prm) override