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

Functions

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

Variables

 PHI0
 
 K_ZH
 
list Ns = [int(x) for x in (sys.argv[1:] or [32, 48, 64, 96, 128, 192, 256])]
 
 prev = None
 
tuple R = (3 * PHI0 / (4 * np.pi)) ** (1 / 3) * N
 
 ks
 
 ns
 
 ts
 
 kg
 
 ng
 
 tg
 
float gap = 100.0 * (kg - ks) / ks
 
str o = ""
 
 flush
 

Detailed Description

Is the collocated permeability ceiling real? Measure the collocated-minus-staggered GAP on
Zick & Homsy, where both solvers run the same harness on identical geometry.

Measuring either solver against K_ZH = 4.292 is limited by the table's four figures (+-0.023 %).
The GAP between two computations on the same grid has no such limit: the benchmark value cancels,
so a ceiling of 0.3 % is resolvable far below its own size, and the question "does the gap decay
under refinement or flatten" gets a clean answer.

    SDFLOW_BUILD=build_ge python tests/study/zh_collocated_gap.py [N ...]

Function Documentation

◆ drag()

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

Definition at line 25 of file zh_collocated_gap.py.

Variable Documentation

◆ PHI0

zh_collocated_gap.PHI0

Definition at line 22 of file zh_collocated_gap.py.

◆ K_ZH

zh_collocated_gap.K_ZH

Definition at line 22 of file zh_collocated_gap.py.

◆ Ns

list zh_collocated_gap.Ns = [int(x) for x in (sys.argv[1:] or [32, 48, 64, 96, 128, 192, 256])]

Definition at line 61 of file zh_collocated_gap.py.

◆ prev

tuple zh_collocated_gap.prev = None

Definition at line 64 of file zh_collocated_gap.py.

◆ R

tuple zh_collocated_gap.R = (3 * PHI0 / (4 * np.pi)) ** (1 / 3) * N

Definition at line 66 of file zh_collocated_gap.py.

◆ ks

zh_collocated_gap.ks

Definition at line 68 of file zh_collocated_gap.py.

◆ ns

zh_collocated_gap.ns

Definition at line 68 of file zh_collocated_gap.py.

◆ ts

zh_collocated_gap.ts

Definition at line 68 of file zh_collocated_gap.py.

◆ kg

zh_collocated_gap.kg

Definition at line 69 of file zh_collocated_gap.py.

◆ ng

zh_collocated_gap.ng

Definition at line 69 of file zh_collocated_gap.py.

◆ tg

zh_collocated_gap.tg

Definition at line 69 of file zh_collocated_gap.py.

◆ gap

float zh_collocated_gap.gap = 100.0 * (kg - ks) / ks

Definition at line 72 of file zh_collocated_gap.py.

◆ o

str zh_collocated_gap.o = ""

Definition at line 73 of file zh_collocated_gap.py.

◆ flush

zh_collocated_gap.flush

Definition at line 77 of file zh_collocated_gap.py.