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\}}\)
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 
16 #include <deal.II/base/utilities.h>
17 
19 
21 
22 namespace 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 
FEValuesExtractors
Definition: fe_values_extractors.h:82
Utilities::int_to_string
std::string int_to_string(const unsigned int value, const unsigned int digits=numbers::invalid_unsigned_int)
Definition: utilities.cc:474
utilities.h
FEValuesExtractors::Vector::get_name
std::string get_name() const
Definition: fe_values_extractors.cc:32
FEValuesExtractors::Scalar::get_name
std::string get_name() const
Definition: fe_values_extractors.cc:25
fe_values_extractors.h
FEValuesExtractors::SymmetricTensor
Definition: fe_values_extractors.h:199
FEValuesExtractors::SymmetricTensor::get_name
std::string get_name() const
Definition: fe_values_extractors.cc:49
FEValuesExtractors::Vector::first_vector_component
unsigned int first_vector_component
Definition: fe_values_extractors.h:155
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
FEValuesExtractors::Tensor::get_name
std::string get_name() const
Definition: fe_values_extractors.cc:40
FEValuesExtractors::Scalar::component
unsigned int component
Definition: fe_values_extractors.h:100
FEValuesExtractors::Tensor
Definition: fe_values_extractors.h:248
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359