Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
function_bessel.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 2019 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_function_bessel_h
17 #define dealii_function_bessel_h
18 
19 
20 #include <deal.II/base/config.h>
21 
22 #include <deal.II/base/function.h>
23 #include <deal.II/base/point.h>
24 
25 DEAL_II_NAMESPACE_OPEN
26 
27 namespace Functions
28 {
36  template <int dim>
37  class Bessel1 : public Function<dim>
38  {
39  public:
43  Bessel1(const unsigned int order,
44  const double wave_number,
45  const Point<dim> center = Point<dim>());
46 
47  virtual double
48  value(const Point<dim> & points,
49  const unsigned int component = 0) const override;
50 
51  virtual void
52  value_list(const std::vector<Point<dim>> &points,
53  std::vector<double> & values,
54  const unsigned int component = 0) const override;
55 
56  virtual Tensor<1, dim>
57  gradient(const Point<dim> & p,
58  const unsigned int component = 0) const override;
59 
60  virtual void
61  gradient_list(const std::vector<Point<dim>> &points,
62  std::vector<Tensor<1, dim>> & gradients,
63  const unsigned int component = 0) const override;
64 
65  private:
66  unsigned int order;
67  double wave_number;
68  Point<dim> center;
69  };
70 } // namespace Functions
71 
72 DEAL_II_NAMESPACE_CLOSE
73 
74 #endif
virtual double value(const Point< dim > &points, const unsigned int component=0) const override
Bessel1(const unsigned int order, const double wave_number, const Point< dim > center=Point< dim >())
virtual void value_list(const std::vector< Point< dim >> &points, std::vector< double > &values, const unsigned int component=0) const override
virtual Tensor< 1, dim > gradient(const Point< dim > &p, const unsigned int component=0) const override