Reference documentation for deal.II version GIT relicensing-468-ge3ce94fd06 2024-04-23 15:40:02+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
smoothness_estimator.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2020 - 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_smoothness_estimator_h
16#define dealii_smoothness_estimator_h
17
18
19#include <deal.II/base/config.h>
20
22
24
25#include <functional>
26#include <vector>
27
28
30
31
32// forward declarations
33#ifndef DOXYGEN
34template <typename Number>
35class Vector;
36
37template <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 = {},
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 = {},
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
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:502
#define DEAL_II_CXX20_REQUIRES(condition)
Definition config.h:177
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503
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_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={}, const double smallest_abs_coefficient=1e-10, const bool only_flagged_cells=false)
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)
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)
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={}, const double smallest_abs_coefficient=1e-10, const bool only_flagged_cells=false)
Definition hp.h:117
static const unsigned int invalid_unsigned_int
Definition types.h:220