Loading [MathJax]/extensions/TeX/newcommand.js
 deal.II version GIT relicensing-2848-g5241f990fb 2025-03-16 19:30:00+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\}}
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
parsed_function.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2007 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15
16#ifndef dealii_parsed_function_h
17#define dealii_parsed_function_h
18
19#include <deal.II/base/config.h>
20
23
25
26#ifndef DOXYGEN
28#endif
29
30namespace Functions
31{
81 template <int dim>
83 {
84 public:
91 ParsedFunction(const unsigned int n_components = 1, const double h = 1e-8);
92
111 static void
113 const unsigned int n_components = 1,
114 const std::string &input_expr = "");
115
185 void
187
192 virtual void
193 vector_value(const Point<dim> &p, Vector<double> &values) const override;
194
201 virtual double
202 value(const Point<dim> &p, const unsigned int component = 0) const override;
203
210 virtual void
211 set_time(const double newtime) override;
212
213 private:
218 };
219} // namespace Functions
220
222
223#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
virtual double value(const Point< dim > &p, const unsigned int component=0) const override
static void declare_parameters(ParameterHandler &prm, const unsigned int n_components=1, const std::string &input_expr="")
virtual void set_time(const double newtime) override
void parse_parameters(ParameterHandler &prm)
Definition point.h:113
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:40
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:41