flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_open_face_plane_mpi Namespace Reference

Functions

 make (pf, cls, u_in, low, blk, dist)
 run_cases (pf, blk, dist)
 main ()

Variables

 NX
 NY
 NZ
 MU
 DT
int TOL_SERIAL = 1e-12
int TOL_C = 1e-10

Detailed Description

Gate: the high-side face plane under MPI -- a distributed run equals the serial one (both grids).

Why this test exists. The fix that keeps the HIGH-side domain face of a MAC face field across the
ghost fills (doc/uf_outlet_fix.md, test_open_face_plane.py) acts only on the rank that owns that
global face (touchesGlobalFace); every other rank must take the plain halo exchange. Nothing else
registered covers that branch: the mpi_np2 state hash is fully periodic. Here the domain is split
along x only (asserted), so the +x face belongs to one rank and, at np = 3, the middle rank touches
neither open face.

Cases (each on SolverColocated and Solver, distributed vs a serial solver on rank 0):
  A. forward channel (-x inflow, +x outflow), developed 30 steps, then a c = 1 scalar (D = 0, Koren)
     for 3 steps: c and u equal serial to 1e-12, and max|c - 1| <= 1e-10 (a wrapped outlet plane
     moves the outlet column by O(1), on every rank count);
  B. the channel driven backwards (fluid enters through the +x outflow face): the backflow census
     max_reverse per step equals serial to 1e-12;
  C. a HIGH-side inflow (+x inflow, -x outflow), 60 steps: u equals serial to 1e-12.
The distributed-vs-serial differences measured 2026-10-22 were <= 1.8e-14 at np 1/2/3/4/6.

Run:  OMP_NUM_THREADS=2 OMP_PROC_BIND=false PYTHONPATH=<build> \
          mpirun --bind-to none -np 3 python tests/python/test_open_face_plane_mpi.py
Exit 0 pass, 1 fail, 77 skipped (no module, no MPI build, no mpi4py, or a single rank).

Function Documentation

◆ make()

test_open_face_plane_mpi.make ( pf,
cls,
u_in,
low,
blk,
dist )

Definition at line 34 of file test_open_face_plane_mpi.py.

Referenced by run_cases().

◆ run_cases()

test_open_face_plane_mpi.run_cases ( pf,
blk,
dist )
The three cases on one block; returns {name: local array} (census: the per-step series).

Definition at line 53 of file test_open_face_plane_mpi.py.

References make().

Referenced by main().

◆ main()

test_open_face_plane_mpi.main ( )

Definition at line 81 of file test_open_face_plane_mpi.py.

References main(), and run_cases().

Referenced by main().

Variable Documentation

◆ NX

test_open_face_plane_mpi.NX

Definition at line 28 of file test_open_face_plane_mpi.py.

◆ NY

test_open_face_plane_mpi.NY

Definition at line 28 of file test_open_face_plane_mpi.py.

◆ NZ

test_open_face_plane_mpi.NZ

Definition at line 28 of file test_open_face_plane_mpi.py.

◆ MU

test_open_face_plane_mpi.MU

Definition at line 29 of file test_open_face_plane_mpi.py.

◆ DT

test_open_face_plane_mpi.DT

Definition at line 29 of file test_open_face_plane_mpi.py.

◆ TOL_SERIAL

int test_open_face_plane_mpi.TOL_SERIAL = 1e-12

Definition at line 30 of file test_open_face_plane_mpi.py.

◆ TOL_C

int test_open_face_plane_mpi.TOL_C = 1e-10

Definition at line 31 of file test_open_face_plane_mpi.py.