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

Functions

 sphere_sdf (rfrac=0.3)
 
 run (implicit, dt, fx, n_steps, to_steady=False)
 
 main ()
 

Variables

int N = 32
 
float NU = 0.1
 

Detailed Description

Verification of the implicit-FOU deferred-correction advection (dcfd.set_implicit_advection). The
distributed solver is a full Navier-Stokes solver (Koren TVD advection). The default advection is
EXPLICIT (Picard-lagged) and therefore CFL-limited: at high Reynolds number / large dt it goes unstable.
The implicit-FOU mode solves the first-order-upwind part of advection implicitly (diagonally dominant ->
unconditionally stable for advection) and keeps the (Koren - FOU) correction explicit, so the scheme is
still Koren TVD at convergence but is robust at high Re, matching the production solver's deferred
correction. This checks both:
  (1) high Re / large dt: explicit BLOWS UP, implicit-FOU stays finite and bounded;
  (2) moderate Re (where explicit is stable): the two agree -> same Koren scheme at convergence.
Flow around a sphere in a periodic box (full 3-D NS + cut-cell IBM + cut-cell pressure). One GPU.

Function Documentation

◆ sphere_sdf()

verify_implicit_advection_sdflow.sphere_sdf (   rfrac = 0.3)

Definition at line 25 of file verify_implicit_advection_sdflow.py.

Referenced by run().

◆ run()

verify_implicit_advection_sdflow.run (   implicit,
  dt,
  fx,
  n_steps,
  to_steady = False 
)

Definition at line 30 of file verify_implicit_advection_sdflow.py.

References sphere_sdf().

Referenced by main().

◆ main()

verify_implicit_advection_sdflow.main ( )

Definition at line 56 of file verify_implicit_advection_sdflow.py.

References main(), and run().

Referenced by main().

Variable Documentation

◆ N

int verify_implicit_advection_sdflow.N = 32

Definition at line 21 of file verify_implicit_advection_sdflow.py.

◆ NU

float verify_implicit_advection_sdflow.NU = 0.1

Definition at line 22 of file verify_implicit_advection_sdflow.py.