ASPECT
current_surface.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) 2025 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_current_surface_h
17 #define _aspect_postprocess_current_surface_h
18 
22 
23 
24 namespace aspect
25 {
26  namespace Postprocess
27  {
28 
35  template <int dim>
36  class CurrentSurface : public Interface<dim>, public ::aspect::SimulatorAccess<dim>
37  {
38  public:
45  double depth_including_mesh_deformation(const Point<dim> &position) const;
46 
50  std::pair<std::string,std::string>
51  execute (TableHandler &statistics) override;
52 
56  void save (std::map<std::string, std::string> &status_strings) const override;
57 
61  void load (const std::map<std::string, std::string> &status_strings) override;
62 
67  template <class Archive>
68  void serialize (Archive &ar, const unsigned int version);
69 
70  private:
74  std::array<std::vector<double>, dim-1> coordinates;
75 
79  Table<dim-1, double> data_table;
80 
85  };
86  }
87 }
88 
89 
90 #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