|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
Functions | |
| one (n, rho_ratio, mu_ratio, stress, steps, adv, dtf, grav=False, sigma="none") | |
| main () | |
Case A G5 diagnosis: does ONE velocity-form step conserve momentum when every force sums to zero?
With g = 0, sigma = 0 and the superficial closure off, every force of the staggered velocity-form
predictor is a periodic divergence (pressure, viscous flux), so the predictor + projection must
leave PRED = sum_f rho^n_f (u^{n+1} - u^n) / dt = 0 to the solver tolerances (the density change
of the step is a separate, physical term and is not in PRED). Initial field: a divergence-free
shear u_x = A sin(2 pi y / L) + a uniform U, through the case-A sphere (rho and mu ratios
selectable). PRED is reported in units of <rho> g (g = 9.81, as in probe_budget.py).
Usage: OMP_NUM_THREADS=4 OMP_PROC_BIND=false PYTHONPATH=<build> \\
python tests/study/case_a/probe_conserve.py --n 32
| probe_conserve.one | ( | n, | |
| rho_ratio, | |||
| mu_ratio, | |||
| stress, | |||
| steps, | |||
| adv, | |||
| dtf, | |||
| grav = False, | |||
| sigma = "none" ) |
Definition at line 25 of file probe_conserve.py.
Referenced by main().
| probe_conserve.main | ( | ) |
Definition at line 87 of file probe_conserve.py.
Referenced by main().