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\}}\)
incremental_function.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2018 - 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 #ifndef dealii_incremental_function_h
17 #define dealii_incremental_function_h
18 
19 
20 #include <deal.II/base/config.h>
21 
22 #include <deal.II/base/function.h>
24 
26 
27 // Forward declaration
28 #ifndef DOXYGEN
29 template <typename number>
30 class Vector;
31 #endif
32 
33 namespace Functions
34 {
49  template <int dim, typename RangeNumberType = double>
50  class IncrementalFunction : public Function<dim, RangeNumberType>
51  {
52  public:
57  static const unsigned int dimension = dim;
58 
63 
75 
83  virtual RangeNumberType
84  value(const Point<dim> &p, const unsigned int component = 0) const override;
85 
92  virtual void
93  vector_value(const Point<dim> & p,
94  Vector<RangeNumberType> &values) const override;
95 
101  void
103 
104  private:
109 
114 
118  mutable Vector<RangeNumberType> values_old;
119 
124  };
125 
126 } // namespace Functions
127 
128 
130 
131 #endif
Functions::IncrementalFunction::value
virtual RangeNumberType value(const Point< dim > &p, const unsigned int component=0) const override
Definition: incremental_function.cc:50
Functions::IncrementalFunction::time_type
typename Function< dim, RangeNumberType >::time_type time_type
Definition: incremental_function.h:62
Functions
Definition: flow_function.h:28
LinearAlgebraDealII::Vector
Vector< double > Vector
Definition: generic_linear_algebra.h:43
Threads::Mutex
Definition: thread_management.h:91
Functions::IncrementalFunction::dimension
static const unsigned int dimension
Definition: incremental_function.h:57
Functions::IncrementalFunction
Definition: incremental_function.h:50
thread_management.h
Functions::IncrementalFunction::set_decrement
void set_decrement(const time_type delta_t)
Definition: incremental_function.cc:38
Function::time_type
typename FunctionTime< typename numbers::NumberTraits< RangeNumberType >::real_type >::time_type time_type
Definition: function.h:171
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
Functions::IncrementalFunction::IncrementalFunction
IncrementalFunction(Function< dim, RangeNumberType > &base)
Definition: incremental_function.cc:26
Functions::IncrementalFunction::delta_t
time_type delta_t
Definition: incremental_function.h:113
function.h
Functions::IncrementalFunction::vector_value
virtual void vector_value(const Point< dim > &p, Vector< RangeNumberType > &values) const override
Definition: incremental_function.cc:79
Functions::IncrementalFunction::mutex
Threads::Mutex mutex
Definition: incremental_function.h:123
Functions::IncrementalFunction::values_old
Vector< RangeNumberType > values_old
Definition: incremental_function.h:118
Point< dim >
config.h
Functions::IncrementalFunction::base
Function< dim, RangeNumberType > & base
Definition: incremental_function.h:108
Function
Definition: function.h:151
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359