ASPECT
isosurfaces.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) 2014-2021 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 
17 #ifndef _aspect_mesh_refinement_isosurfaces_h
18 #define _aspect_mesh_refinement_isosurfaces_h
19 
22 #include <aspect/utilities.h>
24 
25 namespace aspect
26 {
27  namespace MeshRefinement
28  {
29  namespace internal
30  {
31  enum class PropertyType
32  {
35  };
36 
37  struct Property
38  {
39  public:
48  Property(const std::string &property_name,
49  const std::vector<std::string> &available_compositions);
50 
55 
61  unsigned int index;
62  };
63 
64  struct Isosurface
65  {
66  public:
75  bool are_all_values_in_range(const std::vector<double> &values) const;
76 
77  std::vector<double> min_values;
78  std::vector<double> max_values;
81  std::vector<Property> properties;
82  };
83 
84  }
85 
95  template <int dim>
96  class Isosurfaces : public Interface<dim>,
97  public SimulatorAccess<dim>
98  {
99  public:
104  void
105  update () override;
106 
112  void
113  tag_additional_cells () const override;
114 
118  static
119  void
121 
125  void
126  parse_parameters (ParameterHandler &prm) override;
127 
128 
129  private:
133  std::vector<internal::Isosurface> isosurfaces;
134 
135  };
136  }
137 }
138 
139 #endif
std::vector< internal::Isosurface > isosurfaces
Definition: isosurfaces.h:133
void declare_parameters(ParameterHandler &prm)