Reference documentation for deal.II version 9.5.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\}}\)
Loading...
Searching...
No Matches
fe_values_extractors.cc
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 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
17
19
21
22namespace FEValuesExtractors
23{
24 std::string
26 {
27 return "Scalar(" + Utilities::int_to_string(component) + ")";
28 }
29
30
31 std::string
33 {
34 return "Vector(" + Utilities::int_to_string(first_vector_component) + ")";
35 }
36
37
38 template <int rank>
39 std::string
41 {
42 return "Tensor<" + Utilities::int_to_string(rank) + ">(" +
43 Utilities::int_to_string(first_tensor_component) + ")";
44 }
45
46
47 template <int rank>
48 std::string
50 {
51 return "SymmetricTensor<" + Utilities::int_to_string(rank) + ">(" +
52 Utilities::int_to_string(first_tensor_component) + ")";
53 }
54
55 // Explicit instantiations
56 template struct Tensor<0>;
57 template struct Tensor<1>;
58 template struct Tensor<2>;
59 template struct Tensor<3>;
60 template struct Tensor<4>;
61 template struct SymmetricTensor<2>;
62 template struct SymmetricTensor<4>;
63
64} // namespace FEValuesExtractors
65
66
67
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473
std::string int_to_string(const unsigned int value, const unsigned int digits=numbers::invalid_unsigned_int)
Definition utilities.cc:471