Reference documentation for deal.II version 9.1.0-pre
function_bessel.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 2017 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 {
35  template <int dim>
36  class Bessel1 : public Function<dim>
37  {
38  public:
42  Bessel1(const unsigned int order,
43  const double wave_number,
44  const Point<dim> center = Point<dim>());
45 
46  virtual double
47  value(const Point<dim> & points,
48  const unsigned int component = 0) const override;
49 
50  virtual void
51  value_list(const std::vector<Point<dim>> &points,
52  std::vector<double> & values,
53  const unsigned int component = 0) const override;
54 
55  virtual Tensor<1, dim>
56  gradient(const Point<dim> & p,
57  const unsigned int component = 0) const override;
58 
59  virtual void
60  gradient_list(const std::vector<Point<dim>> &points,
61  std::vector<Tensor<1, dim>> & gradients,
62  const unsigned int component = 0) const override;
63 
64  private:
65  unsigned int order;
66  double wave_number;
67  Point<dim> center;
68  };
69 } // namespace Functions
70 
71 DEAL_II_NAMESPACE_CLOSE
72 
73 #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