|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
Functions | |
| verdict (name, good, detail) | |
| fields (s) | |
| make_channel (full, mu_field, walls=True, n=(16, 12, 8), steps=12) | |
| gate_bit () | |
| gate_wall () | |
| couette (full, dt, N=32, steps=4000, tol=1e-9) | |
| gate_couette () | |
| expect_raise (fn) | |
| gate_refuse () | |
| quintic (R, R2, U0, dH) | |
| rotcore_exact (N, ratio, U0) | |
| rotcore (N, ratio, full, D=10.0, U0=1e-3, max_steps=200000, tol=1e-12, nz=4, init=None) | |
| gate_rotcore (Ns, ratios, D, max_steps) | |
| main () | |
Variables | |
| F = np.asfortranarray | |
| bool | OK = True |
Gates of the full viscous stress wiring (doc/full_viscous_stress.md §8, §5.5, §5.6, §13 G2).
Subcommands (default: all but rotcore):
bit §8.2 feature on with a UNIFORM mu field (variable mode, walled channel + periodic box):
u, v, w, p bitwise equal to the feature off.
wall §5.5 walled channel (+-y walls) and an inflow/outflow x channel with a 3-D variable mu,
full stress on: the wall-normal / inflow-normal face values stay bitwise equal to
the imposed value.
couette §8.3 two-layer plane Couette (mu(y), 10x, arithmetic mean): full stress against
laplacian at dt = 20 and dt = 100, same error to a relative 1e-6.
refuse §5.6 the refusals: collocated setter, harmonic, porous; a bad form name.
rotcore G2 the rotating-core manufactured steady Stokes problem (sharp, kinked, curved mu
jump): e = max|u - u_ex|/U0 at N = 32, 64, 128 for mu_in/mu_out = 0.1 and 10, full
stress (order >= 0.8) against laplacian (>= 5x larger at 128, not converging).
Options: --n 32,64,128 --ratios 0.1,10 --D 10 --max-steps N.
Run: OMP_NUM_THREADS=8 PYTHONPATH=<build> python tests/study/full_stress_gates.py [cmd ...]
Prints one verdict line per gate and exits 1 on any MISS.
| full_stress_gates.verdict | ( | name, | |
| good, | |||
| detail ) |
Definition at line 32 of file full_stress_gates.py.
Referenced by gate_bit(), gate_couette(), gate_refuse(), gate_rotcore(), and gate_wall().
| full_stress_gates.fields | ( | s | ) |
Definition at line 38 of file full_stress_gates.py.
Referenced by make_channel().
| full_stress_gates.make_channel | ( | full, | |
| mu_field, | |||
| walls = True, | |||
| n = (16, 12, 8), | |||
| steps = 12 ) |
Definition at line 43 of file full_stress_gates.py.
Referenced by gate_bit(), and gate_wall().
| full_stress_gates.gate_bit | ( | ) |
Definition at line 70 of file full_stress_gates.py.
References make_channel(), and verdict().
| full_stress_gates.gate_wall | ( | ) |
Definition at line 88 of file full_stress_gates.py.
References F, make_channel(), and verdict().
| full_stress_gates.couette | ( | full, | |
| dt, | |||
| N = 32, | |||
| steps = 4000, | |||
| tol = 1e-9 ) |
| full_stress_gates.gate_couette | ( | ) |
Definition at line 155 of file full_stress_gates.py.
| full_stress_gates.expect_raise | ( | fn | ) |
Definition at line 166 of file full_stress_gates.py.
Referenced by gate_refuse().
| full_stress_gates.gate_refuse | ( | ) |
Definition at line 174 of file full_stress_gates.py.
References expect_raise(), F, and verdict().
| full_stress_gates.quintic | ( | R, | |
| R2, | |||
| U0, | |||
| dH ) |
Definition at line 205 of file full_stress_gates.py.
Referenced by rotcore_exact().
| full_stress_gates.rotcore_exact | ( | N, | |
| ratio, | |||
| U0 ) |
| full_stress_gates.rotcore | ( | N, | |
| ratio, | |||
| full, | |||
| D = 10.0, | |||
| U0 = 1e-3, | |||
| max_steps = 200000, | |||
| tol = 1e-12, | |||
| nz = 4, | |||
| init = None ) |
Definition at line 249 of file full_stress_gates.py.
References F, mean(), and rotcore_exact().
Referenced by gate_rotcore().
| full_stress_gates.gate_rotcore | ( | Ns, | |
| ratios, | |||
| D, | |||
| max_steps ) |
Definition at line 313 of file full_stress_gates.py.
References rotcore(), and verdict().
Referenced by main().
| full_stress_gates.main | ( | ) |
Definition at line 333 of file full_stress_gates.py.
References gate_rotcore(), and main().
Referenced by main().
| full_stress_gates.F = np.asfortranarray |
Definition at line 28 of file full_stress_gates.py.
Referenced by couette(), gate_refuse(), gate_wall(), make_channel(), and rotcore().
| bool full_stress_gates.OK = True |
Definition at line 29 of file full_stress_gates.py.