Reference documentation for deal.II version Git 689de043d4 2020-08-10 16:46:15 +0200
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
function_bessel.h
Go to the documentation of this file.
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 
26 
27 namespace Functions
28 {
34  template <int dim>
35  class Bessel1 : public Function<dim>
36  {
37  public:
41  Bessel1(const unsigned int order,
42  const double wave_number,
43  const Point<dim> center = Point<dim>());
44 
45  virtual double
46  value(const Point<dim> & points,
47  const unsigned int component = 0) const override;
48 
49  virtual void
50  value_list(const std::vector<Point<dim>> &points,
51  std::vector<double> & values,
52  const unsigned int component = 0) const override;
53 
54  virtual Tensor<1, dim>
55  gradient(const Point<dim> & p,
56  const unsigned int component = 0) const override;
57 
58  virtual void
59  gradient_list(const std::vector<Point<dim>> &points,
60  std::vector<Tensor<1, dim>> & gradients,
61  const unsigned int component = 0) const override;
62 
63  private:
64  unsigned int order;
65  double wave_number;
67  };
68 } // namespace Functions
69 
71 
72 #endif
virtual void gradient_list(const std::vector< Point< dim >> &points, std::vector< Tensor< 1, dim >> &gradients, const unsigned int component=0) const override
unsigned int order
Point< dim > center
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 >())
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:363
virtual void value_list(const std::vector< Point< dim >> &points, std::vector< double > &values, const unsigned int component=0) const override
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:362
virtual Tensor< 1, dim > gradient(const Point< dim > &p, const unsigned int component=0) const override