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

Functions

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

Variables

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 ghost-projection experiment: staggered Zick & Homsy drag, cut-cell vs directional
ghost-cell projection (set_ghost_projection). Success = ghost-mode order ~2 with K converging to
the same Z&H limit; also logs BiCGStab vs PCG iteration counts (solver health / compatibility
floor). Pattern: tests/study/collocated_zh_ab.py.

Function Documentation

◆ lattice_sdf()

staggered_zh_ghostproj.lattice_sdf (   N,
  phi = 0.125 
)

Definition at line 14 of file staggered_zh_ghostproj.py.

Referenced by drag().

◆ drag()

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

Definition at line 27 of file staggered_zh_ghostproj.py.

References lattice_sdf().

Variable Documentation

◆ kref

float staggered_zh_ghostproj.kref = 4.2920

Definition at line 58 of file staggered_zh_ghostproj.py.

◆ flush

staggered_zh_ghostproj.flush

Definition at line 60 of file staggered_zh_ghostproj.py.

◆ prev

dict staggered_zh_ghostproj.prev = {}

Definition at line 63 of file staggered_zh_ghostproj.py.

◆ Kc

staggered_zh_ghostproj.Kc

Definition at line 65 of file staggered_zh_ghostproj.py.

◆ sc

staggered_zh_ghostproj.sc

Definition at line 65 of file staggered_zh_ghostproj.py.

◆ ipc

staggered_zh_ghostproj.ipc

Definition at line 65 of file staggered_zh_ghostproj.py.

◆ dvc

staggered_zh_ghostproj.dvc

Definition at line 65 of file staggered_zh_ghostproj.py.

◆ tc

staggered_zh_ghostproj.tc

Definition at line 65 of file staggered_zh_ghostproj.py.

◆ N

staggered_zh_ghostproj.N

Definition at line 65 of file staggered_zh_ghostproj.py.

◆ ghost

staggered_zh_ghostproj.ghost

Definition at line 65 of file staggered_zh_ghostproj.py.

◆ Kg

staggered_zh_ghostproj.Kg

Definition at line 66 of file staggered_zh_ghostproj.py.

◆ sg

staggered_zh_ghostproj.sg

Definition at line 66 of file staggered_zh_ghostproj.py.

◆ ipg

staggered_zh_ghostproj.ipg

Definition at line 66 of file staggered_zh_ghostproj.py.

◆ dvg

staggered_zh_ghostproj.dvg

Definition at line 66 of file staggered_zh_ghostproj.py.

◆ tg

staggered_zh_ghostproj.tg

Definition at line 66 of file staggered_zh_ghostproj.py.

◆ ec

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

Definition at line 67 of file staggered_zh_ghostproj.py.

◆ eg

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

Definition at line 68 of file staggered_zh_ghostproj.py.

◆ oc

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

Definition at line 69 of file staggered_zh_ghostproj.py.

◆ og

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

Definition at line 70 of file staggered_zh_ghostproj.py.