Reference documentation for deal.II version 9.2.0
\(\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 {
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;
69  };
70 } // namespace Functions
71 
73 
74 #endif
Functions
Definition: flow_function.h:28
Functions::Bessel1::wave_number
double wave_number
Definition: function_bessel.h:67
Functions::Bessel1::value
virtual double value(const Point< dim > &points, const unsigned int component=0) const override
Definition: function_lib.cc:2278
Functions::Bessel1::Bessel1
Bessel1(const unsigned int order, const double wave_number, const Point< dim > center=Point< dim >())
Definition: function_lib.cc:2266
Tensor< 1, dim >
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
Functions::Bessel1::gradient
virtual Tensor< 1, dim > gradient(const Point< dim > &p, const unsigned int component=0) const override
Definition: function_lib.cc:2304
Functions::Bessel1::gradient_list
virtual void gradient_list(const std::vector< Point< dim >> &points, std::vector< Tensor< 1, dim >> &gradients, const unsigned int component=0) const override
Definition: function_lib.cc:2326
function.h
Functions::Bessel1::value_list
virtual void value_list(const std::vector< Point< dim >> &points, std::vector< double > &values, const unsigned int component=0) const override
Definition: function_lib.cc:2288
Functions::Bessel1::order
unsigned int order
Definition: function_bessel.h:66
Point< dim >
config.h
Function
Definition: function.h:151
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
Functions::Bessel1::center
Point< dim > center
Definition: function_bessel.h:68
Functions::Bessel1
Definition: function_bessel.h:37
point.h