|
flow
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
Functions | |
| lattice_sdf (N, phi=0.125) | |
| drag (N, mode, mu=0.1, F=1e-3, dt=400.0, min_steps=500, max_steps=3500, dtol=5e-5) | |
Variables | |
| float | kref = 4.2920 |
| flush | |
| p0 = None | |
| K0 | |
| st0 | |
| d0 | |
| s0 | |
| K5 | |
| st5 | |
| d5 | |
| s5 | |
| int | e0 = 100 * (K5 - kref) / kref |
| o0 = np.log(abs(p0) / abs(e0)) / np.log(N / pN) if p0 else float("nan") | |
| o5 = np.log(abs(p5) / abs(e5)) / np.log(N / pN) if p5 else float("nan") | |
| p5 | |
| pN | |
Z&H sphere-array drag A/B: collocated EMBED momentum (setFaceInterp(5), Basilisk embed.h true-normal dirichlet_gradient wall drag) vs mode 0. ROBUST convergence: run past a min-step floor until the drag drifts < 5e-5 over 200 steps (avoids false early plateaus), report K + the residual drift so convergence is visible. Incremental-rotational pressure + warm-start. Success: order -> ~2, error below mode 0.
| collocated_zh_embed.lattice_sdf | ( | N, | |
phi = 0.125 |
|||
| ) |
Definition at line 10 of file collocated_zh_embed.py.
Referenced by drag().
| collocated_zh_embed.drag | ( | N, | |
| mode, | |||
mu = 0.1, |
|||
F = 1e-3, |
|||
dt = 400.0, |
|||
min_steps = 500, |
|||
max_steps = 3500, |
|||
dtol = 5e-5 |
|||
| ) |
Definition at line 18 of file collocated_zh_embed.py.
References lattice_sdf().
| float collocated_zh_embed.kref = 4.2920 |
Definition at line 35 of file collocated_zh_embed.py.
| collocated_zh_embed.flush |
Definition at line 36 of file collocated_zh_embed.py.
| collocated_zh_embed.p0 = None |
Definition at line 39 of file collocated_zh_embed.py.
| collocated_zh_embed.K0 |
Definition at line 41 of file collocated_zh_embed.py.
| collocated_zh_embed.st0 |
Definition at line 41 of file collocated_zh_embed.py.
| collocated_zh_embed.d0 |
Definition at line 41 of file collocated_zh_embed.py.
| collocated_zh_embed.s0 |
Definition at line 41 of file collocated_zh_embed.py.
| collocated_zh_embed.K5 |
Definition at line 41 of file collocated_zh_embed.py.
| collocated_zh_embed.st5 |
Definition at line 41 of file collocated_zh_embed.py.
| collocated_zh_embed.d5 |
Definition at line 41 of file collocated_zh_embed.py.
| collocated_zh_embed.s5 |
Definition at line 41 of file collocated_zh_embed.py.
Definition at line 42 of file collocated_zh_embed.py.
Definition at line 43 of file collocated_zh_embed.py.
Definition at line 44 of file collocated_zh_embed.py.
| collocated_zh_embed.p5 |
Definition at line 47 of file collocated_zh_embed.py.
| collocated_zh_embed.pN |
Definition at line 47 of file collocated_zh_embed.py.