peclet-amr 0.2.0
Block-local-Morton AMR octree + collocated cut-cell Navier–Stokes solver (header-only C++20, Kokkos + MPI)
Loading...
Searching...
No Matches
indicators.hpp File Reference
#include <cmath>
#include <vector>
#include "peclet/amr/block_octree.hpp"
#include "peclet/amr/common.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>
std::vector< double > peclet::amr::lohnerIndicator (const BlockOctree< Dim, Bits > &t, const std::vector< double > &u, double eps=0.01)
 Löhner normalized second-difference indicator E_i ∈ [0,1], per leaf, for scalar u (indexed by leaf slot).
 
template<int Dim, unsigned Bits>
std::vector< double > peclet::amr::secondDiffIndicator (const BlockOctree< Dim, Bits > &t, const std::vector< double > &u)
 Raw second-derivative magnitude indicator, per leaf: the L2 norm over axes of the undivided second difference |u₊ − 2u_i + u₋| (so ∝ |∂²u|·h²).