|
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, 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") |
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).
| collocated_zh_ghostproj.lattice_sdf | ( | N, | |
phi = 0.125 |
|||
| ) |
Definition at line 17 of file collocated_zh_ghostproj.py.
Referenced by 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().
| 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.
| float collocated_zh_ghostproj.kref = 4.2920 |
Definition at line 65 of file collocated_zh_ghostproj.py.
| collocated_zh_ghostproj.flush |
Definition at line 67 of file collocated_zh_ghostproj.py.
| dict collocated_zh_ghostproj.prev = {} |
Definition at line 70 of file collocated_zh_ghostproj.py.
| collocated_zh_ghostproj.Kc |
Definition at line 72 of file collocated_zh_ghostproj.py.
| collocated_zh_ghostproj.sc |
Definition at line 72 of file collocated_zh_ghostproj.py.
| collocated_zh_ghostproj.ipc |
Definition at line 72 of file collocated_zh_ghostproj.py.
| collocated_zh_ghostproj.dvc |
Definition at line 72 of file collocated_zh_ghostproj.py.
| collocated_zh_ghostproj.tc |
Definition at line 72 of file collocated_zh_ghostproj.py.
| collocated_zh_ghostproj.N |
Definition at line 72 of file collocated_zh_ghostproj.py.
| collocated_zh_ghostproj.ghost |
Definition at line 72 of file collocated_zh_ghostproj.py.
| collocated_zh_ghostproj.Kg |
Definition at line 73 of file collocated_zh_ghostproj.py.
| collocated_zh_ghostproj.sg |
Definition at line 73 of file collocated_zh_ghostproj.py.
| collocated_zh_ghostproj.ipg |
Definition at line 73 of file collocated_zh_ghostproj.py.
| collocated_zh_ghostproj.dvg |
Definition at line 73 of file collocated_zh_ghostproj.py.
| collocated_zh_ghostproj.tg |
Definition at line 73 of file collocated_zh_ghostproj.py.
Definition at line 74 of file collocated_zh_ghostproj.py.
Definition at line 75 of file collocated_zh_ghostproj.py.
| 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.