deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20: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
grid_refinement.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2000 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#ifndef dealii_grid_refinement_h
14#define dealii_grid_refinement_h
15
16
17#include <deal.II/base/config.h>
18
20
22
23#include <limits>
24
26
27// forward declarations
28#ifndef DOXYGEN
29template <int dim, int spacedim>
31class Triangulation;
32template <typename Number>
33class Vector;
34#endif
35
54{
86 template <int dim>
87 std::pair<double, double>
89 const types::global_cell_index current_n_cells,
90 const types::global_cell_index max_n_cells,
91 const double top_fraction_of_cells,
92 const double bottom_fraction_of_cells);
93
158 template <int dim, typename Number, int spacedim>
159 void
161 Triangulation<dim, spacedim> &triangulation,
162 const Vector<Number> &criteria,
163 const double top_fraction_of_cells,
164 const double bottom_fraction_of_cells,
165 const unsigned int max_n_cells = std::numeric_limits<unsigned int>::max());
166
229 template <int dim, typename Number, int spacedim>
230 void
233 const Vector<Number> &criteria,
234 const double top_fraction,
235 const double bottom_fraction,
236 const unsigned int max_n_cells = std::numeric_limits<unsigned int>::max(),
238
239
240
312 template <int dim, typename Number, int spacedim>
313 void
315 const Vector<Number> &criteria,
316 const unsigned int order = 2);
317
332 template <int dim, typename Number, int spacedim>
333 void
335 const Vector<Number> &criteria,
336 const double threshold,
337 const unsigned int max_to_mark = numbers::invalid_unsigned_int);
338
353 template <int dim, typename Number, int spacedim>
354 void
356 const Vector<Number> &criteria,
357 const double threshold);
358
364
370} // namespace GridRefinement
371
372
373
375
376#endif // dealii_grid_refinement_h
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_CXX20_REQUIRES(condition)
Definition config.h:249
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
#define DeclException0(Exception0)
static ::ExceptionBase & ExcNegativeCriteria()
static ::ExceptionBase & ExcInvalidParameterValue()
void refine(Triangulation< dim, spacedim > &tria, const Vector< Number > &criteria, const double threshold, const unsigned int max_to_mark=numbers::invalid_unsigned_int)
void refine_and_coarsen_fixed_number(Triangulation< dim, spacedim > &triangulation, const Vector< Number > &criteria, const double top_fraction_of_cells, const double bottom_fraction_of_cells, const unsigned int max_n_cells=std::numeric_limits< unsigned int >::max())
void refine_and_coarsen_optimize(Triangulation< dim, spacedim > &tria, const Vector< Number > &criteria, const unsigned int order=2)
void coarsen(Triangulation< dim, spacedim > &tria, const Vector< Number > &criteria, const double threshold)
std::pair< double, double > adjust_refine_and_coarsen_number_fraction(const types::global_cell_index current_n_cells, const types::global_cell_index max_n_cells, const double top_fraction_of_cells, const double bottom_fraction_of_cells)
void refine_and_coarsen_fixed_fraction(Triangulation< dim, spacedim > &tria, const Vector< Number > &criteria, const double top_fraction, const double bottom_fraction, const unsigned int max_n_cells=std::numeric_limits< unsigned int >::max(), const VectorTools::NormType norm_type=VectorTools::L1_norm)
constexpr unsigned int invalid_unsigned_int
Definition types.h:228