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\}}\)
parsed_function.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2007 - 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 
17 #ifndef dealii_parsed_function_h
18 #define dealii_parsed_function_h
19 
20 #include <deal.II/base/config.h>
21 
25 
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 
220 
221 #endif
auto_derivative_function.h
Functions
Definition: flow_function.h:28
Functions::ParsedFunction::declare_parameters
static void declare_parameters(ParameterHandler &prm, const unsigned int n_components=1)
Definition: parsed_function.cc:36
Functions::ParsedFunction::parse_parameters
void parse_parameters(ParameterHandler &prm)
Definition: parsed_function.cc:115
AutoDerivativeFunction
Definition: auto_derivative_function.h:83
Function< dim >::n_components
const unsigned int n_components
Definition: function.h:165
Physics::Elasticity::Kinematics::e
SymmetricTensor< 2, dim, Number > e(const Tensor< 2, dim, Number > &F)
AutoDerivativeFunction::h
double h
Definition: auto_derivative_function.h:224
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
Functions::ParsedFunction::set_time
virtual void set_time(const double newtime) override
Definition: parsed_function.cc:186
Functions::ParsedFunction
Definition: parsed_function.h:81
parameter_handler.h
function_parser.h
Functions::ParsedFunction::vector_value
virtual void vector_value(const Point< dim > &p, Vector< double > &values) const override
Definition: parsed_function.cc:167
Functions::ParsedFunction::value
virtual double value(const Point< dim > &p, const unsigned int component=0) const override
Definition: parsed_function.cc:177
Point< dim >
ParameterHandler
Definition: parameter_handler.h:845
config.h
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
Vector< double >
FunctionParser
Definition: function_parser.h:224
Functions::ParsedFunction::ParsedFunction
ParsedFunction(const unsigned int n_components=1, const double h=1e-8)
Definition: parsed_function.cc:26
Functions::ParsedFunction::function_object
FunctionParser< dim > function_object
Definition: parsed_function.h:215