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

Functions

 parse ()
 compare (a, b)
 sphere_fractions (n, c, r, sub=8)
 plane_fractions (n, nrm, x0, sub=8)
 main ()

Detailed Description

G-SV5 / G-SV6 instrument for the sharp viscous interface (doc/vof_sharp_viscous_stress.md ยง11,
WO-5): a fixed number of production steps, the final fields written to one .npz, one summary line.

  python gsv56.py --case p1 --dh 16 --steps 20 --mode sharp --out p1_sharp_np1.npz
  mpirun --bind-to none -np 4 python gsv56.py ...      (distributed; rank 0 writes the gathered fields)

Cases:
  p1    the P1 bubble (Loisy E1: Ar 29.9, Bo 2, rho ratio 1e-3, mu ratio 1e-2, triply periodic box
        L = 4d, from rest, C = 1 is the gas) as validation/highratio/pec/run_hr_scheme.py sets it up
        (VoF momentum, upwind scheme, CSF, PCG 1e-8), dt = 0.25 min(cfl_dt, capillary_dt) per step.
  wall  the G-SV1 geometry class: unit box, no-slip walls on all six faces, a planar interface with
        normal n(22.5, 22.5 deg) through the centre offset 0.3 h along n, mu ratio 1e-2 (C = 1 the
        low phase), uniform rho, Stokes (advection off), a body force 0.1 along the tangent t1,
        dt at D_hi = mu_hi dt/(rho h^2) = 100. --n cells per axis (default 24).
--mu-uniform: mu = LinearMix(C) with equal phase viscosities (the closure stays; G-SV5 uniform mu).
--sigma S (wall): surface tension S; any S > 0 sets the planes' interfacial threshold to the CSF
wisp guard (1e-8) instead of 0 (the sigma = 0 default of VofCurvature::interfaceEps).
Compare two .npz with  python gsv56.py --compare A.npz B.npz  (prints max|diff| per field and
BITWISE / DIFFER).

Function Documentation

◆ parse()

gsv56.parse ( )

Definition at line 31 of file gsv56.py.

Referenced by main().

◆ compare()

gsv56.compare ( a,
b )

Definition at line 46 of file gsv56.py.

Referenced by main().

◆ sphere_fractions()

gsv56.sphere_fractions ( n,
c,
r,
sub = 8 )

Definition at line 57 of file gsv56.py.

References mean().

Referenced by main().

◆ plane_fractions()

gsv56.plane_fractions ( n,
nrm,
x0,
sub = 8 )
Cell fractions of the half-space nrm.(x - x0) < 0, x in cells, sub^3 samples.

Definition at line 70 of file gsv56.py.

References mean().

Referenced by main().

◆ main()

gsv56.main ( )

Definition at line 82 of file gsv56.py.

References compare(), main(), parse(), plane_fractions(), slice(), and sphere_fractions().

Referenced by main().