ASPECT
velocity_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) 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 #ifndef _aspect_prescribed_solution_velocity_function_h
16 #define _aspect_prescribed_solution_velocity_function_h
17 
20 #include <aspect/utilities.h>
21 
23 
24 namespace aspect
25 {
26  namespace PrescribedSolution
27  {
28 
35  template <int dim>
36  class VelocityFunction : public Interface<dim>, public SimulatorAccess<dim>
37  {
38  public:
39 
44 
51  void update () override;
52 
56  static
57  void
59 
63  void
64  parse_parameters (ParameterHandler &prm) override;
65 
66 
75  const std::vector<Point<dim>> &positions,
76  const std::vector<unsigned int> &component_indices,
77  std::vector<bool> &should_be_constrained,
78  std::vector<double> &solution) override;
79 
80  private:
85 
90 
98 
106  };
107  }
108 }
109 
110 
111 #endif
Functions::ParsedFunction< dim > prescribed_velocity_indicator_function
void parse_parameters(ParameterHandler &prm) override
Functions::ParsedFunction< dim > prescribed_velocity_function
Utilities::Coordinates::CoordinateSystem coordinate_system
static void declare_parameters(ParameterHandler &prm)
void constrain_solution(const typename DoFHandler< dim >::active_cell_iterator &cell, const std::vector< Point< dim >> &positions, const std::vector< unsigned int > &component_indices, std::vector< bool > &should_be_constrained, std::vector< double > &solution) override