deal.II version GIT relicensing-2206-gaa53ff9447 2024-12-02 09:10: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\}}\)
Loading...
Searching...
No Matches
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
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
const unsigned int n_components
Definition function.h:163
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:111
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:498
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499