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

Functions

 packing_sdf (rfrac=0.18)
 
 configure (s)
 
 main ()
 

Variables

 N
 
 STEPS
 
 RHO
 
 MU
 
 F
 
 DT
 

Detailed Description

Distributed (MPI) flow validation driver — mirrors tests/kokkos_mpi/test_sdflow_mpi.cpp in Python.

Builds a GLOBAL 2x2x2 periodic sphere-packing SDF on every rank, uses peclet.flow.mpi_block(N,N,N) to
get this rank's ORB block, slices the local SDF, constructs Solver(*size), init_mpi(N,N,N), configures
rho/mu/dt/body-force, sets the local solid, runs STEPS steps, and reduces the global velocity sum via
mpi4py. The reduced permeability k = mu*<u>/F must be the SAME across np=1,2,4 (the distributed solve is
bit-exact to single-rank, to the MG-PCG reduction-order floor).

Run:
  PYTHONPATH=$PWD/build_mpi mpirun -np 1 ./.venv/bin/python scripts/verify_mpi_spheres_sdflow.py
  PYTHONPATH=$PWD/build_mpi mpirun -np 2 ./.venv/bin/python scripts/verify_mpi_spheres_sdflow.py
  PYTHONPATH=$PWD/build_mpi mpirun -np 4 ./.venv/bin/python scripts/verify_mpi_spheres_sdflow.py

Function Documentation

◆ packing_sdf()

verify_mpi_spheres_sdflow.packing_sdf (   rfrac = 0.18)
Global 2x2x2 sphere-packing SDF as an (N,N,N) Fortran-order array (negative inside, periodic).

Definition at line 23 of file verify_mpi_spheres_sdflow.py.

Referenced by main().

◆ configure()

verify_mpi_spheres_sdflow.configure (   s)

Definition at line 40 of file verify_mpi_spheres_sdflow.py.

Referenced by main().

◆ main()

verify_mpi_spheres_sdflow.main ( )

Definition at line 48 of file verify_mpi_spheres_sdflow.py.

References configure(), main(), and packing_sdf().

Referenced by main().

Variable Documentation

◆ N

verify_mpi_spheres_sdflow.N

Definition at line 19 of file verify_mpi_spheres_sdflow.py.

◆ STEPS

verify_mpi_spheres_sdflow.STEPS

Definition at line 19 of file verify_mpi_spheres_sdflow.py.

◆ RHO

verify_mpi_spheres_sdflow.RHO

Definition at line 20 of file verify_mpi_spheres_sdflow.py.

◆ MU

verify_mpi_spheres_sdflow.MU

Definition at line 20 of file verify_mpi_spheres_sdflow.py.

◆ F

verify_mpi_spheres_sdflow.F

Definition at line 20 of file verify_mpi_spheres_sdflow.py.

◆ DT

verify_mpi_spheres_sdflow.DT

Definition at line 20 of file verify_mpi_spheres_sdflow.py.