ASPECT
gravity_point_values.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) 2018-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 
16 #ifndef _aspect_postprocess_gravity_point_values_h
17 #define _aspect_postprocess_gravity_point_values_h
18 
21 
22 
23 namespace aspect
24 {
25  namespace Postprocess
26  {
27 
50  template <int dim>
51  class GravityPointValues : public Interface<dim>, public ::aspect::SimulatorAccess<dim>
52  {
53  public:
58 
62  void initialize() override;
63 
67  std::pair<std::string,std::string> execute (TableHandler &) override;
68 
72  static
73  void
75 
79  void
80  parse_parameters (ParameterHandler &prm) override;
81 
86  template <class Archive>
87  void serialize (Archive &ar, const unsigned int version);
88 
92  void save (std::map<std::string, std::string> &status_strings) const override;
93 
97  void load (const std::map<std::string, std::string> &status_strings) override;
98 
99  private:
106 
112 
118 
123  unsigned int last_output_timestep;
124 
129  unsigned int output_file_number;
130 
136  double end_time;
137 
146  void set_last_output_time (const double current_time);
147 
153  unsigned int precision;
154 
163 
168  unsigned int n_points_spiral;
169 
177  unsigned int n_points_radius;
178 
186  unsigned int n_points_longitude;
187 
195  unsigned int n_points_latitude;
196 
204 
213 
220 
228 
235 
243 
253 
258  {
262  } sampling_scheme;
263 
270  std::vector<double> radius_list;
271 
278  std::vector<double> longitude_list;
279 
287  std::vector<double> latitude_list;
288 
289  // ------------ the following variables are not set from parameters,
290  // but are instead computed up front from input
291  // parameters and other parts of the overall model
294 
299  std::vector<std::array<double,dim>> satellite_positions_spherical;
300  std::vector<Point<dim>> satellite_positions_cartesian;
301  };
302  }
303 }
304 
305 
306 #endif
void load(const std::map< std::string, std::string > &status_strings) override
enum aspect::Postprocess::GravityPointValues::SamplingScheme sampling_scheme
std::vector< std::array< double, dim > > satellite_positions_spherical
std::pair< std::string, std::string > execute(TableHandler &) override
void set_last_output_time(const double current_time)
void parse_parameters(ParameterHandler &prm) override
void save(std::map< std::string, std::string > &status_strings) const override
void serialize(Archive &ar, const unsigned int version)
static void declare_parameters(ParameterHandler &prm)
std::vector< Point< dim > > satellite_positions_cartesian