|
flow
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
Functions | |
| packing_sdf (rfrac=0.18) | |
| configure (s) | |
| main () | |
Variables | |
| N | |
| STEPS | |
| RHO | |
| MU | |
| F | |
| DT | |
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
| 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().
| verify_mpi_spheres_sdflow.configure | ( | s | ) |
Definition at line 40 of file verify_mpi_spheres_sdflow.py.
Referenced by 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().
| verify_mpi_spheres_sdflow.N |
Definition at line 19 of file verify_mpi_spheres_sdflow.py.
| verify_mpi_spheres_sdflow.STEPS |
Definition at line 19 of file verify_mpi_spheres_sdflow.py.
| verify_mpi_spheres_sdflow.RHO |
Definition at line 20 of file verify_mpi_spheres_sdflow.py.
| verify_mpi_spheres_sdflow.MU |
Definition at line 20 of file verify_mpi_spheres_sdflow.py.
| verify_mpi_spheres_sdflow.F |
Definition at line 20 of file verify_mpi_spheres_sdflow.py.
| verify_mpi_spheres_sdflow.DT |
Definition at line 20 of file verify_mpi_spheres_sdflow.py.