core 0.5.0
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::amr::GhostGradOverlay Struct Reference

Ghost-gradient overlay (setGhostGradient): per cut cell, a precomputed 3-point directional FD stencil per axis replacing the ABC grad3 value — central where both axis-neighbour centers are fluid, 2nd-order one-sided toward the fluid else (never reads a decoupled solid-centered value; gradOf's read of the pinned p=0 through partially-open faces is a gauge-dependent O(1/h) error at cut cells — measured in tests/study_amr_ghost_apriori.cpp). More...

#include <flow.hpp>

Public Attributes

Index n = 0
 number of overlay (cut) cells
 
View< Indexcell
 [n] leaf index
 
View< Indexidx
 [n*9] stencil cell, slot s*9 + axis*3 + k
 
View< doublew
 [n*9] stencil weight (0 = unused)
 

Detailed Description

Ghost-gradient overlay (setGhostGradient): per cut cell, a precomputed 3-point directional FD stencil per axis replacing the ABC grad3 value — central where both axis-neighbour centers are fluid, 2nd-order one-sided toward the fluid else (never reads a decoupled solid-centered value; gradOf's read of the pinned p=0 through partially-open faces is a gauge-dependent O(1/h) error at cut cells — measured in tests/study_amr_ghost_apriori.cpp).

Weights include the 1/h factors; unused entries carry w=0.

Definition at line 253 of file flow.hpp.

Member Data Documentation

◆ n

Index peclet::core::amr::GhostGradOverlay::n = 0

number of overlay (cut) cells

Definition at line 254 of file flow.hpp.

Referenced by peclet::core::amr::applyGhostGrad().

◆ cell

View<Index> peclet::core::amr::GhostGradOverlay::cell

[n] leaf index

Definition at line 255 of file flow.hpp.

Referenced by peclet::core::amr::applyGhostGrad().

◆ idx

View<Index> peclet::core::amr::GhostGradOverlay::idx

[n*9] stencil cell, slot s*9 + axis*3 + k

Definition at line 256 of file flow.hpp.

Referenced by peclet::core::amr::applyGhostGrad().

◆ w

View<double> peclet::core::amr::GhostGradOverlay::w

[n*9] stencil weight (0 = unused)

Definition at line 257 of file flow.hpp.

Referenced by peclet::core::amr::applyGhostGrad().


The documentation for this struct was generated from the following file: