ASPECT
cell_average.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) 2016-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 #ifndef _aspect_particle_interpolator_cell_average_h
16 #define _aspect_particle_interpolator_cell_average_h
17 
20 
21 namespace aspect
22 {
23  namespace Particle
24  {
25  namespace Interpolator
26  {
32  template <int dim>
33  class CellAverage : public Interface<dim>, public aspect::SimulatorAccess<dim>
34  {
35  public:
40  std::vector<std::vector<double>>
41  properties_at_points(const ParticleHandler<dim> &particle_handler,
42  const std::vector<Point<dim>> &positions,
43  const ComponentMask &selected_properties,
44  const typename parallel::distributed::Triangulation<dim>::active_cell_iterator &cell) const override;
45 
46  // avoid -Woverloaded-virtual:
48 
52  static
53  void
55 
59  void
60  parse_parameters (ParameterHandler &prm) override;
61 
62  private:
72  };
73  }
74  }
75 }
76 
77 #endif
typename ::Triangulation< dim, spacedim >::active_cell_iterator active_cell_iterator
void parse_parameters(ParameterHandler &prm) override
std::vector< std::vector< double > > properties_at_points(const ParticleHandler< dim > &particle_handler, const std::vector< Point< dim >> &positions, const ComponentMask &selected_properties, const typename parallel::distributed::Triangulation< dim >::active_cell_iterator &cell) const override
static void declare_parameters(ParameterHandler &prm)