|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
Functions | |
| channel (pf, cls, u_in, low="inflow", nx=NX, ny=NY, vof=False) | |
| required_outlet (s) | |
| check_census (pf, cls, vof=False) | |
| check_scalar_outlet (pf, cls, vof=False) | |
| check_high_inflow (pf) | |
| main () | |
Variables | |
| NX | |
| NY | |
| NZ | |
| MU | |
| DT | |
Gate: the HIGH-side domain face of a MAC face field survives the ghost fills (both grids).
Why this test exists. That face is the first GHOST index along its axis, and the ghost fill wraps
every axis periodically, so it came back carrying the LOW boundary's plane -- the inlet on the
outlet (doc/uf_outlet_fix.md). Nothing registered could see it: momentum reads the outlet through
openFaceView, the state hashes record cell fields only, and max_open_divergence reads the
zero-gradient view. The readers that DID see it were the scalar transport, the backflow census
and, at a high-side INFLOW face, collocated momentum.
Checks, in the order they would fail:
1. census == required: on a channel driven backwards (fluid enters through the +x outflow face),
outflow_backflow() reads the raw outlet plane; its max_reverse must equal max(-u_out) of the
flux that closes the last cell's divergence (built from the inner faces), at every step, to
1e-9 (the reconstruction differences O(1) faces at the pressure tolerance; broken: O(1));
2. a c == 1 scalar (D = 0, first-order upwind) stays 1 in the OUTLET column after one step;
3. staggered: max_open_divergence_projected stays at round-off after that scalar step (the
scalar's fill used to overwrite C[0].u's corrected outlet face in place: 0.785);
4. a HIGH-side inflow (+x inflow, -x outflow): the collocated inlet-adjacent centreline velocity
agrees with the staggered one (1.7e-3 fixed; 3.6e-2 when it read the outlet's plane);
5. checks 1 and 2 again on the collocated grid with VoF enabled (the bubble-column
configuration): the VoF bridge fills uf_ IN PLACE between the projection and the scalars and
the census, so it must keep the plane too (flow 17d6a8e; reverted, both checks fail).
Run: OMP_NUM_THREADS=4 OMP_PROC_BIND=false PYTHONPATH=<build> \
python tests/python/test_open_face_plane.py
Exit 0 pass, 1 fail, 77 skipped (no module).
Definition at line 37 of file test_open_face_plane.py.
Referenced by check_census(), check_high_inflow(), and check_scalar_outlet().
| test_open_face_plane.required_outlet | ( | s | ) |
The +x outlet flux that closes the last cell's discrete divergence (cell units).
Definition at line 60 of file test_open_face_plane.py.
Referenced by check_census().
| test_open_face_plane.check_census | ( | pf, | |
| cls, | |||
| vof = False ) |
Definition at line 69 of file test_open_face_plane.py.
References channel(), and required_outlet().
Referenced by main().
| test_open_face_plane.check_scalar_outlet | ( | pf, | |
| cls, | |||
| vof = False ) |
| test_open_face_plane.check_high_inflow | ( | pf | ) |
| test_open_face_plane.main | ( | ) |
Definition at line 114 of file test_open_face_plane.py.
References check_census(), check_high_inflow(), check_scalar_outlet(), and main().
Referenced by main().
| test_open_face_plane.NX |
Definition at line 33 of file test_open_face_plane.py.
| test_open_face_plane.NY |
Definition at line 33 of file test_open_face_plane.py.
| test_open_face_plane.NZ |
Definition at line 33 of file test_open_face_plane.py.
| test_open_face_plane.MU |
Definition at line 34 of file test_open_face_plane.py.
| test_open_face_plane.DT |
Definition at line 34 of file test_open_face_plane.py.