Reference documentation for deal.II version GIT f0f8c7fe18 2023-03-21 21:25:02+00:00
\(\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\}}\)
parsed_function.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2007 - 2021 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 
17 #ifndef dealii_parsed_function_h
18 #define dealii_parsed_function_h
19 
20 #include <deal.II/base/config.h>
21 
24 
26 
27 #ifndef DOXYGEN
28 class ParameterHandler;
29 #endif
30 
31 namespace Functions
32 {
82  template <int dim>
84  {
85  public:
92  ParsedFunction(const unsigned int n_components = 1, const double h = 1e-8);
93 
111  static void
113  const unsigned int n_components = 1);
114 
184  void
186 
191  virtual void
192  vector_value(const Point<dim> &p, Vector<double> &values) const override;
193 
200  virtual double
201  value(const Point<dim> &p, const unsigned int component = 0) const override;
202 
209  virtual void
210  set_time(const double newtime) override;
211 
212  private:
217  };
218 } // namespace Functions
219 
221 
222 #endif
const unsigned int n_components
Definition: function.h:164
virtual void vector_value(const Point< dim > &p, Vector< double > &values) const override
FunctionParser< dim > function_object
static void declare_parameters(ParameterHandler &prm, const unsigned int n_components=1)
ParsedFunction(const unsigned int n_components=1, const double h=1e-8)
virtual double value(const Point< dim > &p, const unsigned int component=0) const override
virtual void set_time(const double newtime) override
void parse_parameters(ParameterHandler &prm)
Definition: point.h:110
Definition: vector.h:109
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:474
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:475
SymmetricTensor< 2, dim, Number > e(const Tensor< 2, dim, Number > &F)