|
22 | 22 | #ifndef _aspect_gravity_model_radial_h |
23 | 23 | #define _aspect_gravity_model_radial_h |
24 | 24 |
|
25 | | -#include <aspect/simulator_access.h> |
26 | | -#include <aspect/gravity_model/interface.h> |
27 | | - |
28 | | -namespace aspect |
29 | | -{ |
30 | | - namespace GravityModel |
31 | | - { |
32 | | - /** |
33 | | - * A class that describes gravity as a radial vector of constant |
34 | | - * magnitude. The magnitude's value is read from the input file. |
35 | | - * |
36 | | - * @ingroup GravityModels |
37 | | - */ |
38 | | - template <int dim> |
39 | | - class RadialConstant : public Interface<dim>, public SimulatorAccess<dim> |
40 | | - { |
41 | | - public: |
42 | | - /** |
43 | | - * Return the gravity vector as a function of position. |
44 | | - */ |
45 | | - Tensor<1,dim> gravity_vector (const Point<dim> &position) const override; |
46 | | - |
47 | | - /** |
48 | | - * Declare the parameters this class takes through input files. |
49 | | - */ |
50 | | - static |
51 | | - void |
52 | | - declare_parameters (ParameterHandler &prm); |
53 | | - |
54 | | - /** |
55 | | - * Read the parameters this class declares from the parameter file. |
56 | | - */ |
57 | | - void |
58 | | - parse_parameters (ParameterHandler &prm) override; |
59 | | - |
60 | | - private: |
61 | | - /** |
62 | | - * Magnitude of the gravity vector. |
63 | | - */ |
64 | | - double magnitude; |
65 | | - }; |
66 | | - |
67 | | - |
68 | | - /** |
69 | | - * This model has been removed due to its misleading name. The available |
70 | | - * AsciiData gravity model (using default parameters) is much more |
71 | | - * earth-like, since it uses the gravity profile used in the construction |
72 | | - * of the Preliminary Reference Earth Model (PREM, Dziewonski and Anderson, |
73 | | - * 1981). |
74 | | - * |
75 | | - * This is the model used and discussed in the step-32 tutorial program of |
76 | | - * deal.II. |
77 | | - * |
78 | | - * @ingroup GravityModels |
79 | | - */ |
80 | | - template <int dim> |
81 | | - class RadialEarthLike : public Interface<dim>, public SimulatorAccess<dim> |
82 | | - { |
83 | | - public: |
84 | | - /** |
85 | | - * Initialization. |
86 | | - */ |
87 | | - void initialize() override; |
88 | | - |
89 | | - /** |
90 | | - * Return the gravity vector as a function of position. |
91 | | - */ |
92 | | - Tensor<1,dim> gravity_vector (const Point<dim> &position) const override; |
93 | | - }; |
94 | | - |
95 | | - |
96 | | - /** |
97 | | - * A class that describes gravity as a radial vector of linearly |
98 | | - * changing magnitude with depth. |
99 | | - * |
100 | | - * @ingroup GravityModels |
101 | | - */ |
102 | | - template <int dim> |
103 | | - class RadialLinear : public Interface<dim>, public SimulatorAccess<dim> |
104 | | - { |
105 | | - public: |
106 | | - /** |
107 | | - * Return the gravity vector as a function of position. |
108 | | - */ |
109 | | - Tensor<1,dim> gravity_vector (const Point<dim> &position) const override; |
110 | | - |
111 | | - /** |
112 | | - * Declare the parameters this class takes through input files. |
113 | | - */ |
114 | | - static |
115 | | - void |
116 | | - declare_parameters (ParameterHandler &prm); |
117 | | - |
118 | | - /** |
119 | | - * Read the parameters this class declares from the parameter file. |
120 | | - */ |
121 | | - void |
122 | | - parse_parameters (ParameterHandler &prm) override; |
123 | | - |
124 | | - private: |
125 | | - /** |
126 | | - * Magnitude of the gravity vector at the surface, m/s^2 |
127 | | - */ |
128 | | - double magnitude_at_surface; |
129 | | - |
130 | | - /** |
131 | | - * Magnitude of the gravity vector at the bottom, m/s^2. |
132 | | - * 'Bottom' means at the maximum depth of the provided geometry, for |
133 | | - * a full sphere this means the center. |
134 | | - */ |
135 | | - double magnitude_at_bottom; |
136 | | - |
137 | | - }; |
138 | | - } |
139 | | -} |
| 25 | +/** |
| 26 | + * @deprecated: This header file is deprecated. Use one of the specific |
| 27 | + * radial gravity profile headers below instead. |
| 28 | + */ |
| 29 | +#pragma message("WARNING: <aspect/include/gravity_model/radial.h> is deprecated. Use one of the specific radial gravity profiles instead.") |
| 30 | + |
| 31 | +#include <aspect/gravity_model/radial_constant.h> |
| 32 | +#include <aspect/gravity_model/radial_linear.h> |
140 | 33 |
|
141 | 34 | #endif |
0 commit comments