Reference documentation for deal.II version GIT relicensing-233-g802318d791 2024-03-28 20:20:02+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
vector_tools_point_gradient.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2020 - 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#ifndef dealii_vector_tools_point_gradient_h
16#define dealii_vector_tools_point_gradient_h
17
18
19#include <deal.II/base/config.h>
20
21#include <vector>
22
23
25
26template <int dim, int spacedim>
28class DoFHandler;
29
30template <int dim, typename Number>
31class Function;
32template <int dim, int spacedim>
33class Mapping;
34
35template <int dim, typename Number>
37class Point;
38
39template <int rank_, int dim, typename Number>
40class Tensor;
41template <typename Number>
42class Vector;
43namespace hp
44{
45 template <int dim, int spacedim>
46 class MappingCollection;
47} // namespace hp
48
49namespace VectorTools
50{
90 template <int dim, typename VectorType, int spacedim>
93 const DoFHandler<dim, spacedim> &dof,
94 const VectorType &fe_function,
95 const Point<spacedim, double> &point,
96 std::vector<Tensor<1, spacedim, typename VectorType::value_type>> &value);
97
116 template <int dim, typename VectorType, int spacedim>
117 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<VectorType>)
118 void point_gradient(
119 const DoFHandler<dim, spacedim> &dof,
120 const VectorType &fe_function,
121 const Point<spacedim, double> &point,
122 std::vector<Tensor<1, spacedim, typename VectorType::value_type>> &value);
123
158 template <int dim, typename VectorType, int spacedim>
159 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<VectorType>)
160 Tensor<1, spacedim, typename VectorType::value_type> point_gradient(
161 const DoFHandler<dim, spacedim> &dof,
162 const VectorType &fe_function,
163 const Point<spacedim, double> &point);
164
183 template <int dim, typename VectorType, int spacedim>
184 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<VectorType>)
185 Tensor<1, spacedim, typename VectorType::value_type> point_gradient(
186 const DoFHandler<dim, spacedim> &dof,
187 const VectorType &fe_function,
188 const Point<spacedim, double> &point);
189
224 template <int dim, typename VectorType, int spacedim>
225 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<VectorType>)
227 const Mapping<dim, spacedim> &mapping,
228 const DoFHandler<dim, spacedim> &dof,
229 const VectorType &fe_function,
230 const Point<spacedim, double> &point,
231 std::vector<Tensor<1, spacedim, typename VectorType::value_type>> &value);
232
251 template <int dim, typename VectorType, int spacedim>
252 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<VectorType>)
254 const hp::MappingCollection<dim, spacedim> &mapping,
255 const DoFHandler<dim, spacedim> &dof,
256 const VectorType &fe_function,
257 const Point<spacedim, double> &point,
258 std::vector<Tensor<1, spacedim, typename VectorType::value_type>> &value);
259
294 template <int dim, typename VectorType, int spacedim>
295 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<VectorType>)
296 Tensor<1, spacedim, typename VectorType::value_type> point_gradient(
297 const Mapping<dim, spacedim> &mapping,
298 const DoFHandler<dim, spacedim> &dof,
299 const VectorType &fe_function,
300 const Point<spacedim, double> &point);
301
320 template <int dim, typename VectorType, int spacedim>
321 DEAL_II_CXX20_REQUIRES(concepts::is_dealii_vector_type<VectorType>)
322 Tensor<1, spacedim, typename VectorType::value_type> point_gradient(
323 const hp::MappingCollection<dim, spacedim> &mapping,
324 const DoFHandler<dim, spacedim> &dof,
325 const VectorType &fe_function,
326 const Point<spacedim, double> &point);
327
329} // namespace VectorTools
330
332
333#endif // dealii_vector_tools_point_gradient_h
Abstract base class for mapping classes.
Definition mapping.h:316
Definition point.h:111
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:502
#define DEAL_II_CXX20_REQUIRES(condition)
Definition config.h:177
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503
void point_gradient(const DoFHandler< dim, spacedim > &dof, const VectorType &fe_function, const Point< spacedim, double > &point, std::vector< Tensor< 1, spacedim, typename VectorType::value_type > > &value)
Definition hp.h:117
STL namespace.