ASPECT
current_surface.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2025 - 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_current_surface_h
23 #define _aspect_postprocess_current_surface_h
24 
27 #include <deal.II/base/function_lib.h>
28 
29 
30 namespace aspect
31 {
32  namespace Postprocess
33  {
34 
41  template <int dim>
42  class CurrentSurface : public Interface<dim>, public ::aspect::SimulatorAccess<dim>
43  {
44  public:
51  double depth_including_mesh_deformation(const Point<dim> &position) const;
52 
56  std::pair<std::string,std::string>
57  execute (TableHandler &statistics) override;
58 
62  void save (std::map<std::string, std::string> &status_strings) const override;
63 
67  void load (const std::map<std::string, std::string> &status_strings) override;
68 
73  template <class Archive>
74  void serialize (Archive &ar, const unsigned int version);
75 
76  private:
80  std::array<std::vector<double>, dim-1> coordinates;
81 
85  Table<dim-1, double> data_table;
86 
90  std::unique_ptr<Functions::InterpolatedTensorProductGridData<dim-1>> surface_function;
91  };
92  }
93 }
94 
95 
96 #endif
std::pair< std::string, std::string > execute(TableHandler &statistics) override
void load(const std::map< std::string, std::string > &status_strings) override
double depth_including_mesh_deformation(const Point< dim > &position) const
void serialize(Archive &ar, const unsigned int version)
Table< dim-1, double > data_table
std::unique_ptr< Functions::InterpolatedTensorProductGridData< dim-1 > > surface_function
std::array< std::vector< double >, dim-1 > coordinates
void save(std::map< std::string, std::string > &status_strings) const override