Reference documentation for deal.II version Git c93c00f928 2020-04-01 06:59:45 +0200
\(\newcommand{\vcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\vcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
parsed_function.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2007 - 2018 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 
22 #include <deal.II/base/auto_derivative_function.h>
23 #include <deal.II/base/function_parser.h>
24 #include <deal.II/base/parameter_handler.h>
25 
26 DEAL_II_NAMESPACE_OPEN
27 
28 namespace Functions
29 {
80  template <int dim>
82  {
83  public:
90  ParsedFunction(const unsigned int n_components = 1, const double h = 1e-8);
91 
110  static void
112  const unsigned int n_components = 1);
113 
183  void
185 
190  virtual void
191  vector_value(const Point<dim> &p, Vector<double> &values) const override;
192 
199  virtual double
200  value(const Point<dim> &p, const unsigned int component = 0) const override;
201 
208  virtual void
209  set_time(const double newtime) override;
210 
211  private:
216  };
217 } // namespace Functions
218 
219 DEAL_II_NAMESPACE_CLOSE
220 
221 #endif
const unsigned int n_components
Definition: function.h:164
virtual void vector_value(const Point< dim > &p, Vector< double > &values) const override
virtual void set_time(const double newtime) override
static void declare_parameters(ParameterHandler &prm, const unsigned int n_components=1)
void parse_parameters(ParameterHandler &prm)
ParsedFunction(const unsigned int n_components=1, const double h=1e-8)
FunctionParser< dim > function_object
virtual double value(const Point< dim > &p, const unsigned int component=0) const override