flow 0.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
gauge_exact_gradient.hpp File Reference

flow — the gauge-exact directional cell-centre pressure gradient. More...

#include <Kokkos_Core.hpp>
#include "mac_cutcell.hpp"

Go to the source code of this file.

Namespaces

namespace  peclet
 
namespace  peclet::flow
 

Functions

void peclet::flow::gpCenterGrad (CCField out, CCConst p, CCConst sdf, int axis, C3 e, int g, bool grad2a=false)
 Directional cell-center gradient (collocated ghost path) of a cell field p whose solid-centered rows are DECOUPLED (hold 0): central difference where both axis neighbours are fluid-centered; 2nd-order one-sided toward the fluid where a neighbour center is solid ((-3p_i + 4p_{i+1} - p_{i+2})/2, falling back to the 2-point one-sided when the +/-2 cell is solid too); 0 when sandwiched.
 

Detailed Description

flow — the gauge-exact directional cell-centre pressure gradient.

This is the operator that makes the COLLOCATED projection second order, and it is the default (set_collocated_scheme("gauge-exact"), formerly set_face_interp(9)). It lived in ghost_projection.hpp because the directional ghost projection introduced it; that path is now quarantined, so the piece the production scheme depends on lives here instead. The name gpCenterGrad is kept so the shared history with the ghost overlay stays greppable.

Definition in file gauge_exact_gradient.hpp.