|
peclet-amr 0.2.0
Block-local-Morton AMR octree + collocated cut-cell Navier–Stokes solver (header-only C++20, Kokkos + MPI)
|
#include <algorithm>#include <cmath>#include <utility>#include <vector>#include "peclet/amr/block_octree.hpp"#include "peclet/amr/common.hpp"#include "peclet/amr/leaf_field.hpp"#include "peclet/core/common/types.hpp"Go to the source code of this file.
Namespaces | |
| namespace | peclet |
| namespace | peclet::amr |
Functions | |
| template<int Dim, unsigned Bits, class SdfFn > | |
| Index | peclet::amr::refineToSdf (BlockOctree< Dim, Bits > &t, const AmrGeometry< Dim > &geo, SdfFn &&sdf, unsigned targetLevel, Real band=1.0, bool balance=true) |
Refine leaves near an SDF interface down to targetLevel. | |
| template<int Dim, unsigned Bits, class SdfFn , class TargetFn > | |
| Index | peclet::amr::refineToSdfGraded (BlockOctree< Dim, Bits > &t, const AmrGeometry< Dim > &geo, SdfFn &&sdf, TargetFn &&targetFn, Real band=2.0, bool balance=true) |
Graded variant of refineToSdf: a per-point TARGET LEVEL function instead of one global targetLevel — the mesh-generator side of the mixed-level cut band (docs/amr_mixed_level_cut_band_plan.md §7). | |
| template<int Dim, class GapFn > | |
| auto | peclet::amr::gapFloorTarget (GapFn &&gapFn, Real h0, unsigned coarsestLevel, Real n=4.0) |
The plan's §7 criterion 1 as a ready-made targetFn for refineToSdfGraded: the GAP-WIDTH FLOOR. | |