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

Go to the source code of this file.

Namespaces

namespace  prof_mpi

Functions

 prof_mpi.arg (name, default, cast=str)
 prof_mpi.one (timed)
 prof_mpi.gather (a)

Variables

 prof_mpi.A = list(sys.argv)
 prof_mpi.CASE_DIR
 prof_mpi.CKPT = arg("--ckpt", os.path.expanduser("~/Codes/bubble_column_perf/ckpt_t43.npz"))
 prof_mpi.N = int(A[1])
 prof_mpi.WARM = arg("--warm", 5, int)
 prof_mpi.RTOL = arg("--rtol", 1e-10, float)
 prof_mpi.DUMP = arg("--dump", None)
 prof_mpi.comm = MPI.COMM_WORLD
 prof_mpi.rank
 prof_mpi.size
 prof_mpi.S = case.CELLS_PER_D
list prof_mpi._tile = [int(x) for x in arg("--tile", "1,1").split(",")]
 prof_mpi.TX
 prof_mpi.TZ
 prof_mpi.NX
 prof_mpi.NY
 prof_mpi.NZ
 prof_mpi.step
 prof_mpi.t
 prof_mpi.blocks = tiled
 prof_mpi.vel = [np.asfortranarray(np.tile(a, (TX, 1, TZ))) for a in vel]
 prof_mpi.pres = np.asfortranarray(np.tile(pres, (TX, 1, TZ)))
 prof_mpi.series
list prof_mpi.tiled = []
 prof_mpi.sx = -(box[0] // case.NX) * case.NX
 prof_mpi.sz = -(box[2] // case.NZ) * case.NZ
 prof_mpi.ox
 prof_mpi.oz
 prof_mpi.org
 prof_mpi.siz
 prof_mpi.sl = tuple(slice(o, o + n) for o, n in zip(org, siz))
 prof_mpi.s = pf.Solver(*siz)
 prof_mpi.vol = comm.allreduce(sum(b["volume"] for b in s.diagnostics.vof_block_stats()), op=MPI.SUM)
 prof_mpi.alpha = vol / (NX * NY * NZ)
 prof_mpi.rho_av = case.RHO_L + (case.RHO_G - case.RHO_L) * alpha
 prof_mpi.iters
 prof_mpi.divs
 prof_mpi.dts
 prof_mpi.projs
 prof_mpi.steps
 prof_mpi.file
 prof_mpi.stderr
 prof_mpi.flush
 prof_mpi.w0 = time.perf_counter()
 prof_mpi.wall = time.perf_counter() - w0
dict prof_mpi.fields
 prof_mpi.prec = s.diagnostics.pressure_vcycle_precision()
int prof_mpi.pm = 1000 * np.asarray(projs)
 prof_mpi.div
 prof_mpi.proj_ms