Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
source
fe
fe_values_extractors.cc
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
18
#include <deal.II/fe/fe_values_extractors.h>
19
20
DEAL_II_NAMESPACE_OPEN
21
22
namespace
FEValuesExtractors
23
{
24
std::string
25
Scalar::get_name
()
const
26
{
27
return
"Scalar("
+
Utilities::int_to_string
(
component
) +
")"
;
28
}
29
30
31
std::string
32
Vector::get_name
()
const
33
{
34
return
"Vector("
+
Utilities::int_to_string
(
first_vector_component
) +
")"
;
35
}
36
37
38
template
<
int
rank>
39
std::string
40
Tensor<rank>::get_name
()
const
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
49
SymmetricTensor<rank>::get_name
()
const
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
68
DEAL_II_NAMESPACE_CLOSE
FEValuesExtractors::Tensor
Definition:
fe_values_extractors.h:248
FEValuesExtractors::SymmetricTensor
Definition:
fe_values_extractors.h:199
FEValuesExtractors::Vector::get_name
std::string get_name() const
Definition:
fe_values_extractors.cc:32
FEValuesExtractors::Vector::first_vector_component
unsigned int first_vector_component
Definition:
fe_values_extractors.h:155
FEValuesExtractors::Scalar::get_name
std::string get_name() const
Definition:
fe_values_extractors.cc:25
Utilities::int_to_string
std::string int_to_string(const unsigned int value, const unsigned int digits=numbers::invalid_unsigned_int)
Definition:
utilities.cc:383
FEValuesExtractors::Tensor::get_name
std::string get_name() const
Definition:
fe_values_extractors.cc:40
FEValuesExtractors::SymmetricTensor::get_name
std::string get_name() const
Definition:
fe_values_extractors.cc:49
FEValuesExtractors::Scalar::component
unsigned int component
Definition:
fe_values_extractors.h:100
FEValuesExtractors
Definition:
fe_values_extractors.h:82
Generated by
1.8.14