Reference documentation for deal.II version GIT relicensing-214-g6e74dec06b 2024-03-27 18:10:01+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
fe_values_extractors.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2012 - 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_fe_values_extractors_h
16#define dealii_fe_values_extractors_h
17
18
19#include <deal.II/base/config.h>
20
22
23
82{
94 struct Scalar
95 {
99 unsigned int component;
100
108 Scalar();
109
113 Scalar(const unsigned int component);
114
118 std::string
119 get_name() const;
120 };
121
122
149 struct Vector
150 {
155
163 Vector();
164
169 Vector(const unsigned int first_vector_component);
170
174 std::string
175 get_name() const;
176 };
177
178
195 template <int rank>
197 {
202
211
216 SymmetricTensor(const unsigned int first_tensor_component);
217
221 std::string
222 get_name() const;
223 };
224
225
242 template <int rank>
243 struct Tensor
244 {
249
257 Tensor();
258
263 Tensor(const unsigned int first_tensor_component);
264
268 std::string
269 get_name() const;
270 };
271} // namespace FEValuesExtractors
272
273
274/*-------------- Inline functions: namespace FEValuesExtractors -------------*/
275
276namespace FEValuesExtractors
277{
279 : component(numbers::invalid_unsigned_int)
280 {}
281
282
283
284 inline Scalar::Scalar(const unsigned int component)
285 : component(component)
286 {}
287
288
289
291 : first_vector_component(numbers::invalid_unsigned_int)
292 {}
293
294
295 inline Vector::Vector(const unsigned int first_vector_component)
296 : first_vector_component(first_vector_component)
297 {}
298
299
300 template <int rank>
302 : first_tensor_component(numbers::invalid_unsigned_int)
303 {}
304
305
306 template <int rank>
308 const unsigned int first_tensor_component)
309 : first_tensor_component(first_tensor_component)
310 {}
311
312
313 template <int rank>
315 : first_tensor_component(numbers::invalid_unsigned_int)
316 {}
317
318
319 template <int rank>
320 inline Tensor<rank>::Tensor(const unsigned int first_tensor_component)
321 : first_tensor_component(first_tensor_component)
322 {}
323} // namespace FEValuesExtractors
324
325
326
328
329#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:502
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503