Reference documentation for deal.II version 9.3.3
\(\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\}}\)
smoothness_estimator.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2018 - 2021 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#ifndef dealii_smoothness_estimator_h
17#define dealii_smoothness_estimator_h
18
19
20#include <deal.II/base/config.h>
21
23
25
26#include <functional>
27#include <vector>
28
29
31
32
33// forward declarations
34#ifndef DOXYGEN
35template <typename Number>
36class Vector;
37
38template <int dim, int spacedim>
39class DoFHandler;
40
41namespace FESeries
42{
43 template <int dim, int spacedim>
44 class Fourier;
45 template <int dim, int spacedim>
46 class Legendre;
47} // namespace FESeries
48
49namespace hp
50{
51 template <int dim, int spacedim>
52 class FECollection;
53} // namespace hp
54#endif
55
56
69{
106 namespace Legendre
107 {
159 template <int dim, int spacedim, typename VectorType>
160 void
162 const DoFHandler<dim, spacedim> & dof_handler,
163 const VectorType & solution,
164 Vector<float> & smoothness_indicators,
165 const VectorTools::NormType regression_strategy =
167 const double smallest_abs_coefficient = 1e-10,
168 const bool only_flagged_cells = false);
169
215 template <int dim, int spacedim, typename VectorType>
216 void
219 const DoFHandler<dim, spacedim> & dof_handler,
220 const VectorType & solution,
221 Vector<float> & smoothness_indicators,
222 const ComponentMask &coefficients_predicate = ComponentMask(),
223 const double smallest_abs_coefficient = 1e-10,
224 const bool only_flagged_cells = false);
225
246 template <int dim, int spacedim>
249 const hp::FECollection<dim, spacedim> &fe_collection,
250 const unsigned int component = numbers::invalid_unsigned_int);
251 } // namespace Legendre
252
253
254
359 namespace Fourier
360 {
404 template <int dim, int spacedim, typename VectorType>
405 void
407 const DoFHandler<dim, spacedim> & dof_handler,
408 const VectorType & solution,
409 Vector<float> & smoothness_indicators,
410 const VectorTools::NormType regression_strategy =
412 const double smallest_abs_coefficient = 1e-10,
413 const bool only_flagged_cells = false);
414
453 template <int dim, int spacedim, typename VectorType>
454 void
457 const DoFHandler<dim, spacedim> & dof_handler,
458 const VectorType & solution,
459 Vector<float> & smoothness_indicators,
460 const ComponentMask &coefficients_predicate = ComponentMask(),
461 const double smallest_abs_coefficient = 1e-10,
462 const bool only_flagged_cells = false);
463
484 template <int dim, int spacedim>
487 const hp::FECollection<dim, spacedim> &fe_collection,
488 const unsigned int component = numbers::invalid_unsigned_int);
489 } // namespace Fourier
490} // namespace SmoothnessEstimator
491
492
494
495#endif
Definition: vector.h:110
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:402
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:403
SymmetricTensor< 2, dim, Number > e(const Tensor< 2, dim, Number > &F)
void coefficient_decay_per_direction(FESeries::Fourier< dim, spacedim > &fe_fourier, const DoFHandler< dim, spacedim > &dof_handler, const VectorType &solution, Vector< float > &smoothness_indicators, const ComponentMask &coefficients_predicate=ComponentMask(), const double smallest_abs_coefficient=1e-10, const bool only_flagged_cells=false)
FESeries::Fourier< dim, spacedim > default_fe_series(const hp::FECollection< dim, spacedim > &fe_collection, const unsigned int component=numbers::invalid_unsigned_int)
void coefficient_decay(FESeries::Fourier< dim, spacedim > &fe_fourier, const DoFHandler< dim, spacedim > &dof_handler, const VectorType &solution, Vector< float > &smoothness_indicators, const VectorTools::NormType regression_strategy=VectorTools::Linfty_norm, const double smallest_abs_coefficient=1e-10, const bool only_flagged_cells=false)
void coefficient_decay_per_direction(FESeries::Legendre< dim, spacedim > &fe_legendre, const DoFHandler< dim, spacedim > &dof_handler, const VectorType &solution, Vector< float > &smoothness_indicators, const ComponentMask &coefficients_predicate=ComponentMask(), const double smallest_abs_coefficient=1e-10, const bool only_flagged_cells=false)
FESeries::Legendre< dim, spacedim > default_fe_series(const hp::FECollection< dim, spacedim > &fe_collection, const unsigned int component=numbers::invalid_unsigned_int)
void coefficient_decay(FESeries::Legendre< dim, spacedim > &fe_legendre, const DoFHandler< dim, spacedim > &dof_handler, const VectorType &solution, Vector< float > &smoothness_indicators, const VectorTools::NormType regression_strategy=VectorTools::Linfty_norm, const double smallest_abs_coefficient=1e-10, const bool only_flagged_cells=false)
Definition: hp.h:118
static const unsigned int invalid_unsigned_int
Definition: types.h:196