|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
Functions | |
| drop (n) | |
| build (pf, cls=None, vof=True, mu1=10.0, setup=None) | |
| run (s, steps=1) | |
| main () | |
Variables | |
| int | N = 12 |
| str | NOTICE = "AUTO viscous interface fell back to 'averaged'" |
Gate: set_vof_viscous_interface('auto' | 'sharp' | 'averaged') resolves per flow
doc/vof_sharp_viscous_stress.md ยง9 (USER 2026-11-04: 'auto' is the default).
One step of a small periodic VoF drop (mu = LinearMix(C), ratio 10) per configuration; the sharp
interface is in force iff diagnostics.vof_viscous_interface_census()['band_cells'] > 0.
1. the default is 'auto', and every mode round-trips; an unknown one raises ValueError and leaves
the selection unchanged;
2. 'auto' -> sharp on the staggered Solver with VoF, mu = LinearMix(C) and the full stress;
'sharp' -> sharp; 'averaged' -> not; a uniform mixture colour (mu globally uniform, every
cell interfacial) leaves 'auto' inert and bitwise 'averaged' (review F6);
3. 'auto' -> averaged, with ONE stderr notice over two steps, for: the Laplacian viscous stress,
an immersed solid, porous momentum, phase change, the harmonic face viscosity, and
SolverColocated; silently for a uniform mu (LinearMix with mu_1 = mu_0);
4. an explicit 'sharp' raises at step() in each of those staggered configurations and without VoF;
SolverColocated raises at the setter.
Run: OMP_NUM_THREADS=4 OMP_PROC_BIND=false PYTHONPATH=<build> \
python tests/python/test_vof_viscous_interface_auto.py
Exit 0 pass, 1 fail, 77 skipped (no module).
| test_vof_viscous_interface_auto.drop | ( | n | ) |
Definition at line 32 of file test_vof_viscous_interface_auto.py.
Referenced by build().
| test_vof_viscous_interface_auto.build | ( | pf, | |
| cls = None, | |||
| vof = True, | |||
| mu1 = 10.0, | |||
| setup = None ) |
Definition at line 39 of file test_vof_viscous_interface_auto.py.
References drop().
Referenced by main().
| test_vof_viscous_interface_auto.run | ( | s, | |
| steps = 1 ) |
Step `steps` times capturing fd 2; returns (band_cells after the last step, stderr text).
Definition at line 55 of file test_vof_viscous_interface_auto.py.
Referenced by main().
| test_vof_viscous_interface_auto.main | ( | ) |
| int test_vof_viscous_interface_auto.N = 12 |
Definition at line 28 of file test_vof_viscous_interface_auto.py.
| str test_vof_viscous_interface_auto.NOTICE = "AUTO viscous interface fell back to 'averaged'" |
Definition at line 29 of file test_vof_viscous_interface_auto.py.