World Builder  1.1.0-pre
A geodynamic initial conditions generator
chapman.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2018-2024 by the authors of the World Builder code.
3 
4  This file is part of the World Builder.
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published
8  by the Free Software Foundation, either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19 
20 /*
21  Typical continental geotherm,
22  from D.S. Chapman (1986), "Thermal gradients in the continental crust"
23  Geological Society of London Special Publications, v.24, p.63-70.
24 */
25 
26 #ifndef WORLD_BUILDER_FEATURES_CONTINENTAL_PLATE_MODELS_TEMPERATURE_CHAPMAN_H
27 #define WORLD_BUILDER_FEATURES_CONTINENTAL_PLATE_MODELS_TEMPERATURE_CHAPMAN_H
28 
29 
33 
34 
35 namespace WorldBuilder
36 {
37 
38  namespace Features
39  {
40  using namespace FeatureUtilities;
41  namespace ContinentalPlateModels
42  {
43  namespace Temperature
44  {
51  class Chapman final: public Interface
52  {
53  public:
58 
62  ~Chapman() override final;
63 
67  static
68  void declare_entries(Parameters &prm, const std::string &parent_name = "");
69 
73  void parse_entries(Parameters &prm, const std::vector<Point<2>> &coordinates) override final;
74 
75 
80  double get_temperature(const Point<3> &position,
81  const Objects::NaturalCoordinate &position_in_natural_coordinates,
82  const double depth,
83  const double gravity,
84  double temperature,
85  const double feature_min_depth,
86  const double feature_max_depth) const override final;
87 
88 
89  private:
91  double top_heat_flux;
94  double min_depth;
96  double max_depth;
99 
100  };
101  } // namespace Temperature
102  } // namespace ContinentalPlateModels
103  } // namespace Features
104 } // namespace WorldBuilder
105 
106 #endif