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

Functions

 run (H, L, Re=100.0, U=1.0, nz=4, max_steps=8000, dt=0.5)
 
 main ()
 

Detailed Description

Phase-5b verification (collocated grid): developing plane channel -- the canonical INFLOW/OUTFLOW
benchmark. A uniform stream enters at -x (inflow Dirichlet), leaves at +x (outflow: zero-gradient velocity
+ Dirichlet p=0), between no-slip walls at +-y; quasi-2D (periodic z). Exercises the collocated open-boundary
machinery: the inflow reflection ghost (carrying the prescribed normal velocity through the open face),
the zero-gradient outflow velocity ghost, and the outflow face correction on the MAC field that lets mass
leave (the shared operator/flux openness split is grid-agnostic).

Develops into the parabolic Poiseuille profile (u_max/U_mean -> 1.5). We check global mass conservation,
the developed profile, and incompressibility. NOTE on the divergence: the *face* field is divergence-free
to machine precision in the interior; at the open outflow the approximate projection leaves a small O(h^2)
residual (vs the staggered exact projection), so the divergence tolerance here is looser than the staggered
1e-6 and is checked to SHRINK with resolution. Global mass conservation (flux_in == flux_out) is the
primary continuity check.

Function Documentation

◆ run()

verify_colocated_channel.run (   H,
  L,
  Re = 100.0,
  U = 1.0,
  nz = 4,
  max_steps = 8000,
  dt = 0.5 
)

Definition at line 25 of file verify_colocated_channel.py.

Referenced by main().

◆ main()

verify_colocated_channel.main ( )

Definition at line 59 of file verify_colocated_channel.py.

References main(), and run().

Referenced by main().