|
flow 0.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
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") |
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.
| staggered_zh_ghostproj.lattice_sdf | ( | N, | |
phi = 0.125 |
|||
| ) |
Definition at line 14 of file staggered_zh_ghostproj.py.
Referenced by 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().
| float staggered_zh_ghostproj.kref = 4.2920 |
Definition at line 58 of file staggered_zh_ghostproj.py.
| staggered_zh_ghostproj.flush |
Definition at line 60 of file staggered_zh_ghostproj.py.
| dict staggered_zh_ghostproj.prev = {} |
Definition at line 63 of file staggered_zh_ghostproj.py.
| staggered_zh_ghostproj.Kc |
Definition at line 65 of file staggered_zh_ghostproj.py.
| staggered_zh_ghostproj.sc |
Definition at line 65 of file staggered_zh_ghostproj.py.
| staggered_zh_ghostproj.ipc |
Definition at line 65 of file staggered_zh_ghostproj.py.
| staggered_zh_ghostproj.dvc |
Definition at line 65 of file staggered_zh_ghostproj.py.
| staggered_zh_ghostproj.tc |
Definition at line 65 of file staggered_zh_ghostproj.py.
| staggered_zh_ghostproj.N |
Definition at line 65 of file staggered_zh_ghostproj.py.
| staggered_zh_ghostproj.ghost |
Definition at line 65 of file staggered_zh_ghostproj.py.
| staggered_zh_ghostproj.Kg |
Definition at line 66 of file staggered_zh_ghostproj.py.
| staggered_zh_ghostproj.sg |
Definition at line 66 of file staggered_zh_ghostproj.py.
| staggered_zh_ghostproj.ipg |
Definition at line 66 of file staggered_zh_ghostproj.py.
| staggered_zh_ghostproj.dvg |
Definition at line 66 of file staggered_zh_ghostproj.py.
| staggered_zh_ghostproj.tg |
Definition at line 66 of file staggered_zh_ghostproj.py.
Definition at line 67 of file staggered_zh_ghostproj.py.
Definition at line 68 of file staggered_zh_ghostproj.py.
| 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.