ASPECT
compositional_vector.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) 2011-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_visualization_compositional_vector_h
17 #define _aspect_postprocess_visualization_compositional_vector_h
18 
21 
23 
24 
25 namespace aspect
26 {
27  namespace Postprocess
28  {
29  namespace VisualizationPostprocessors
30  {
35  template <int dim>
37  : public DataPostprocessor<dim>,
38  public SimulatorAccess<dim>,
39  public Interface<dim>
40  {
41  public:
43 
44  std::vector<std::string>
45  get_names () const override;
46 
47  std::vector<DataComponentInterpretation::DataComponentInterpretation>
48  get_data_component_interpretation () const override;
49 
51  get_needed_update_flags () const override;
52 
53  void
55  std::vector<Vector<double>> &computed_quantities) const override;
56 
57  static
58  void
60 
61  void
62  parse_parameters (ParameterHandler &prm) override;
63 
64  private:
70  std::vector<std::string> vector_names;
71 
76  std::vector<std::vector<unsigned int>> sets;
77  };
78  }
79  }
80 }
81 
82 #endif
UpdateFlags
std::vector< DataComponentInterpretation::DataComponentInterpretation > get_data_component_interpretation() const override
void evaluate_vector_field(const DataPostprocessorInputs::Vector< dim > &input_data, std::vector< Vector< double >> &computed_quantities) const override