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

Functions

 check (ok, what)
 solver (guess, driver="pcg")
 state (s)
 same (a, b)
 child (driver)
 e3 (driver)
 e2 (driver)
 raises ()

Variables

 N
 RTOL
 STEPS
int fails = 0

Detailed Description

Gate: the projected initial guess of the projection solve (E, doc/vof_projection_cost_design.md
ยง5.3; `diagnostics.set_pressure_initial_guess`), opt-in, on the single-rank PCG and FCG drivers.

Configuration: the IBM cylinder (16^3, cylinder along y of radius N/4, cut-cell pressure, Stokes,
body force 1e-3, rtol 1e-8), 'projected' with history 2 against 'zero' on the same build.
  G-E3  step 1 of 'projected' (empty history: the cold solve) is bitwise step 1 of 'zero'; after a
        state write (set_velocity: the history restarts) the next step is bitwise the same step
        of a twin switched to 'zero' -- and the twin continued under 'projected' is NOT, so the
        guess was live;
  G-E2  every guessed solve ends at max|P(b - A x)| <= 1.5 rtol max|P b| (recomputed; the trace of
        a child run under PECLET_FLOW_MG_DEBUG=2 and _SOLVES, debug output only), x0 = 0 on
        every non-fluid cell, and 'projected' saves iterations over the run;
  raise 'projected' under the Chebyshev driver raises at the step, naming the condition; 'auto'
        there runs the cold solve, bitwise 'zero'.

Run: OMP_NUM_THREADS=4 OMP_PROC_BIND=false PYTHONPATH=<build> python tests/python/test_projected_guess.py
Exit 0 pass, 1 fail, 77 skipped (no module).

Function Documentation

◆ check()

test_projected_guess.check ( ok,
what )

Definition at line 37 of file test_projected_guess.py.

Referenced by e2(), e3(), and raises().

◆ solver()

test_projected_guess.solver ( guess,
driver = "pcg" )

Definition at line 44 of file test_projected_guess.py.

◆ state()

test_projected_guess.state ( s)

Definition at line 65 of file test_projected_guess.py.

Referenced by e3(), and raises().

◆ same()

test_projected_guess.same ( a,
b )

Definition at line 70 of file test_projected_guess.py.

Referenced by e3(), and raises().

◆ child()

test_projected_guess.child ( driver)
G-E2 run: 'projected' for STEPS steps (traced by the parent's env).

Definition at line 74 of file test_projected_guess.py.

Referenced by raises().

◆ e3()

test_projected_guess.e3 ( driver)

Definition at line 81 of file test_projected_guess.py.

References check(), same(), and state().

Referenced by raises().

◆ e2()

test_projected_guess.e2 ( driver)

Definition at line 104 of file test_projected_guess.py.

References check().

Referenced by raises().

◆ raises()

test_projected_guess.raises ( )

Definition at line 127 of file test_projected_guess.py.

References check(), child(), e2(), e3(), raises(), same(), and state().

Referenced by raises().

Variable Documentation

◆ N

test_projected_guess.N

Definition at line 33 of file test_projected_guess.py.

◆ RTOL

test_projected_guess.RTOL

Definition at line 33 of file test_projected_guess.py.

◆ STEPS

test_projected_guess.STEPS

Definition at line 33 of file test_projected_guess.py.

◆ fails

int test_projected_guess.fails = 0

Definition at line 34 of file test_projected_guess.py.