deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20:01+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\}}\)
Loading...
Searching...
No Matches
parsed_function.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2007 - 2025 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13
14#ifndef dealii_parsed_function_h
15#define dealii_parsed_function_h
16
17#include <deal.II/base/config.h>
18
21
23
24#ifndef DOXYGEN
26#endif
27
28namespace Functions
29{
79 template <int dim>
81 {
82 public:
89 ParsedFunction(const unsigned int n_components = 1, const double h = 1e-8);
90
109 static void
111 const unsigned int n_components = 1,
112 const std::string &input_expr = "");
113
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:162
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:111
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39