Reference documentation for deal.II version 9.5.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\}}\)
Loading...
Searching...
No Matches
parsed_function.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2007 - 2022 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
29#endif
30
31namespace 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)
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:112
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473