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

Functions

 packing_sdf (N, R, target_phi, gap=2.0, seed=0)
 
 run (sdf, mode, dt, vcyc=16, levels=4, mu=0.1, f=1e-3, steps=600, tol=1e-7)
 
 main ()
 
 mu_b (dt, mu=0.1)
 

Detailed Description

Staircase velocity-MG on a REAL packed bed (random periodic sphere packing, thin pore necks).

The SC single sphere is one connected solid blob; a packed bed has MANY solid spheres with thin fluid necks
between near-contacts -- the geometry that stresses the coarse operator (the const-coarse couples fluid
pockets through resolved walls; the staircase classification should disconnect them). This checks that the
staircase velocity-MG (a) gives the EXACT RB-GS mean velocity / permeability on a packed bed, (b) stays stable
at large dt, and (c) how the coarsening-level cap matters (deep coarsening dissolves the thin necks).

Function Documentation

◆ packing_sdf()

verify_velocity_mg_staircase_packing_sdflow.packing_sdf (   N,
  R,
  target_phi,
  gap = 2.0,
  seed = 0 
)
Random periodic sphere packing: greedily place non-overlapping spheres (min surface gap `gap` cells)
until the solid fraction reaches target_phi. SDF = min over spheres of (dist - R), periodic, <0 in solid.

Definition at line 20 of file verify_velocity_mg_staircase_packing_sdflow.py.

Referenced by main().

◆ run()

verify_velocity_mg_staircase_packing_sdflow.run (   sdf,
  mode,
  dt,
  vcyc = 16,
  levels = 4,
  mu = 0.1,
  f = 1e-3,
  steps = 600,
  tol = 1e-7 
)
mode: 'rbgs' (plain RB-GS reference) | 'vmg' (the staircase velocity-MG, via set_velocity_multigrid).

Definition at line 50 of file verify_velocity_mg_staircase_packing_sdflow.py.

Referenced by main().

◆ main()

verify_velocity_mg_staircase_packing_sdflow.main ( )

Definition at line 75 of file verify_velocity_mg_staircase_packing_sdflow.py.

References packing_sdf(), and run().

Referenced by mu_b().

◆ mu_b()

verify_velocity_mg_staircase_packing_sdflow.mu_b (   dt,
  mu = 0.1 
)

Definition at line 98 of file verify_velocity_mg_staircase_packing_sdflow.py.

References main().