Reference documentation for deal.II version 9.6.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.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2012 - 2024 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
276 template <typename Extractor>
278 {
282 FirstCoupling(const Extractor &extractor);
283
287 const Extractor extractor;
288 };
289
294 template <typename Extractor>
296 {
300 SecondCoupling(const Extractor &extractor);
301
305 const Extractor extractor;
306 };
307} // namespace FEValuesExtractors
308
309
310/*-------------- Inline functions: namespace FEValuesExtractors -------------*/
311
312namespace FEValuesExtractors
313{
315 : component(numbers::invalid_unsigned_int)
316 {}
317
318
319
320 inline Scalar::Scalar(const unsigned int component)
321 : component(component)
322 {}
323
324
325
327 : first_vector_component(numbers::invalid_unsigned_int)
328 {}
329
330
331 inline Vector::Vector(const unsigned int first_vector_component)
332 : first_vector_component(first_vector_component)
333 {}
334
335
336 template <int rank>
338 : first_tensor_component(numbers::invalid_unsigned_int)
339 {}
340
341
342 template <int rank>
344 const unsigned int first_tensor_component)
345 : first_tensor_component(first_tensor_component)
346 {}
347
348
349 template <int rank>
351 : first_tensor_component(numbers::invalid_unsigned_int)
352 {}
353
354
355 template <int rank>
356 inline Tensor<rank>::Tensor(const unsigned int first_tensor_component)
357 : first_tensor_component(first_tensor_component)
358 {}
359
360
361 template <typename Extractor>
362 inline FirstCoupling<Extractor>::FirstCoupling(const Extractor &extractor)
363 : extractor(extractor)
364 {}
365
366
367 template <typename Extractor>
368 inline SecondCoupling<Extractor>::SecondCoupling(const Extractor &extractor)
369 : extractor(extractor)
370 {}
371} // namespace FEValuesExtractors
372
373
375
376#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:503
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:504
FirstCoupling(const Extractor &extractor)
SecondCoupling(const Extractor &extractor)