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

Functions

 lattice_sdf (N, phi=0.125)
 
 drag (N, ghost, orders=None, mu=0.1, F=1e-3, dt=80.0, warm_tol=1e-7, tail=40, max_steps=4000)
 

Variables

 GPORD = tuple(int(v) for v in os.environ.get("GPORD", "1,2").split(","))
 
float kref = 4.2920
 
 flush
 
dict prev = {}
 
 Kc
 
 sc
 
 ipc
 
 dvc
 
 tc
 
 N
 
 ghost
 
 Kg
 
 sg
 
 ipg
 
 dvg
 
 tg
 
int ec = 100 * (Kc - kref) / kref
 
int eg = 100 * (Kg - kref) / kref
 
dict oc = np.log(abs(prev["c"]) / abs(ec)) / np.log(N / prev["N"]) if prev else float("nan")
 
dict og = np.log(abs(prev["g"]) / abs(eg)) / np.log(N / prev["N"]) if prev else float("nan")
 

Detailed Description

THE collocated ghost-projection experiment: Zick & Homsy drag, SolverColocated mode-0
(plain average + central grad(P), 1st order) vs the directional ghost-cell projection
(set_ghost_projection: ghost-closed divergence of the face-averaged field + gpCenterGrad
predictor/correction). Success = ghost order ~2 converging to the same Z&H limit — closing the
open problem of doc/collocated_second_order_open_problem.md. Pattern:
tests/study/staggered_zh_ghostproj.py (same warm-detector + tail protocol as the staggered
experiment and the mode-0 baselines).

Function Documentation

◆ lattice_sdf()

collocated_zh_ghostproj.lattice_sdf (   N,
  phi = 0.125 
)

Definition at line 17 of file collocated_zh_ghostproj.py.

Referenced by drag().

◆ drag()

collocated_zh_ghostproj.drag (   N,
  ghost,
  orders = None,
  mu = 0.1,
  F = 1e-3,
  dt = 80.0,
  warm_tol = 1e-7,
  tail = 40,
  max_steps = 4000 
)

Definition at line 32 of file collocated_zh_ghostproj.py.

References lattice_sdf().

Variable Documentation

◆ GPORD

collocated_zh_ghostproj.GPORD = tuple(int(v) for v in os.environ.get("GPORD", "1,2").split(","))

Definition at line 30 of file collocated_zh_ghostproj.py.

◆ kref

float collocated_zh_ghostproj.kref = 4.2920

Definition at line 65 of file collocated_zh_ghostproj.py.

◆ flush

collocated_zh_ghostproj.flush

Definition at line 67 of file collocated_zh_ghostproj.py.

◆ prev

dict collocated_zh_ghostproj.prev = {}

Definition at line 70 of file collocated_zh_ghostproj.py.

◆ Kc

collocated_zh_ghostproj.Kc

Definition at line 72 of file collocated_zh_ghostproj.py.

◆ sc

collocated_zh_ghostproj.sc

Definition at line 72 of file collocated_zh_ghostproj.py.

◆ ipc

collocated_zh_ghostproj.ipc

Definition at line 72 of file collocated_zh_ghostproj.py.

◆ dvc

collocated_zh_ghostproj.dvc

Definition at line 72 of file collocated_zh_ghostproj.py.

◆ tc

collocated_zh_ghostproj.tc

Definition at line 72 of file collocated_zh_ghostproj.py.

◆ N

collocated_zh_ghostproj.N

Definition at line 72 of file collocated_zh_ghostproj.py.

◆ ghost

collocated_zh_ghostproj.ghost

Definition at line 72 of file collocated_zh_ghostproj.py.

◆ Kg

collocated_zh_ghostproj.Kg

Definition at line 73 of file collocated_zh_ghostproj.py.

◆ sg

collocated_zh_ghostproj.sg

Definition at line 73 of file collocated_zh_ghostproj.py.

◆ ipg

collocated_zh_ghostproj.ipg

Definition at line 73 of file collocated_zh_ghostproj.py.

◆ dvg

collocated_zh_ghostproj.dvg

Definition at line 73 of file collocated_zh_ghostproj.py.

◆ tg

collocated_zh_ghostproj.tg

Definition at line 73 of file collocated_zh_ghostproj.py.

◆ ec

int collocated_zh_ghostproj.ec = 100 * (Kc - kref) / kref

Definition at line 74 of file collocated_zh_ghostproj.py.

◆ eg

int collocated_zh_ghostproj.eg = 100 * (Kg - kref) / kref

Definition at line 75 of file collocated_zh_ghostproj.py.

◆ oc

dict collocated_zh_ghostproj.oc = np.log(abs(prev["c"]) / abs(ec)) / np.log(N / prev["N"]) if prev else float("nan")

Definition at line 76 of file collocated_zh_ghostproj.py.

◆ og

dict collocated_zh_ghostproj.og = np.log(abs(prev["g"]) / abs(eg)) / np.log(N / prev["N"]) if prev else float("nan")

Definition at line 77 of file collocated_zh_ghostproj.py.