ASPECT
function.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) 2015-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_property_function_h
16 #define _aspect_particle_property_function_h
17 
20 #include <aspect/utilities.h>
21 
23 
24 namespace aspect
25 {
26  namespace Particle
27  {
28  namespace Property
29  {
36  template <int dim>
37  class Function : public Interface<dim>, public SimulatorAccess<dim>
38  {
39  public:
40  Function();
41 
53  void
55  std::vector<double> &particle_properties) const override;
56 
64  std::vector<std::pair<std::string, unsigned int>>
65  get_property_information() const override;
66 
67 
71  static
72  void
74 
78  void
79  parse_parameters (ParameterHandler &prm) override;
80 
81  private:
85  std::unique_ptr<Functions::ParsedFunction<dim>> function;
86 
92 
100  unsigned int n_components;
101  };
102  }
103  }
104 }
105 
106 #endif
Utilities::Coordinates::CoordinateSystem coordinate_system
Definition: function.h:91
std::vector< std::pair< std::string, unsigned int > > get_property_information() const override
static void declare_parameters(ParameterHandler &prm)
void initialize_one_particle_property(const Point< dim > &position, std::vector< double > &particle_properties) const override
void parse_parameters(ParameterHandler &prm) override