core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
Loading...
Searching...
No Matches
indicators.hpp File Reference
#include <cmath>
#include <vector>
#include "peclet/core/amr/block_octree.hpp"
#include "peclet/core/common/types.hpp"

Go to the source code of this file.

Namespaces

namespace  peclet
 
namespace  peclet::core
 
namespace  peclet::core::amr
 

Functions

template<int Dim, unsigned Bits>
std::vector< doublepeclet::core::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< doublepeclet::core::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²).