ASPECT
gravity_point_values.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2018 - 2020 by the authors of the ASPECT code.
3 
4  This file is part of ASPECT.
5 
6  ASPECT is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2, or (at your option)
9  any later version.
10 
11  ASPECT 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 General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with ASPECT; see the file LICENSE. If not see
18  <http://www.gnu.org/licenses/>.
19 */
20 
21 
22 #ifndef _aspect_postprocess_gravity_point_values_h
23 #define _aspect_postprocess_gravity_point_values_h
24 
27 
28 
29 namespace aspect
30 {
31  namespace Postprocess
32  {
33 
56  template <int dim>
57  class GravityPointValues : public Interface<dim>, public ::aspect::SimulatorAccess<dim>
58  {
59  public:
64 
68  std::pair<std::string,std::string> execute (TableHandler &) override;
69 
73  static
74  void
76 
80  void
81  parse_parameters (ParameterHandler &prm) override;
82 
87  template <class Archive>
88  void serialize (Archive &ar, const unsigned int version);
89 
93  void save (std::map<std::string, std::string> &status_strings) const override;
94 
98  void load (const std::map<std::string, std::string> &status_strings) override;
99 
100  private:
105 
111 
116 
121  unsigned int last_output_timestep;
122 
127  unsigned int output_file_number;
128 
133  double end_time;
134 
143  void set_last_output_time (const double current_time);
144 
149  unsigned int precision;
150 
158 
162  unsigned int n_points_spiral;
163 
170  unsigned int n_points_radius;
171 
178  unsigned int n_points_longitude;
179 
186  unsigned int n_points_latitude;
187 
194 
202 
208 
215 
221 
228 
237 
242  {
246  } sampling_scheme;
247 
253  std::vector<double> radius_list;
254 
260  std::vector<double> longitude_list;
261 
267  std::vector<double> latitude_list;
268 
269  };
270  }
271 }
272 
273 
274 #endif
void load(const std::map< std::string, std::string > &status_strings) override
enum aspect::Postprocess::GravityPointValues::SamplingScheme sampling_scheme
std::pair< std::string, std::string > execute(TableHandler &) override
void set_last_output_time(const double current_time)
void parse_parameters(ParameterHandler &prm) override
Definition: compat.h:61
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)