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

Functions

 verdict (name, good, detail)
 no_growth (d)
 initial_field (N, ratio, nz=4, U0=1e-3)
 march_rotcore (N, ratio, D, steps, full=True)
 rotcore_error (s, N, ratio, U0=1e-3)
 cmd_couette ()
 cmd_rotcore (N)
 spheres (full, dt, N=32, mu0=0.1, Fb=1e-3, max_steps=20000, tol=1e-10)
 cmd_spheres ()
 channel_outflow (full, dt, nx=32, ny=16, nz=4, mu0=0.1, U=1e-3, max_steps=20000, tol=1e-10)
 cmd_outflow ()
 cmd_ctest ()
 main ()

Variables

 F = np.asfortranarray
bool OK = True

Detailed Description

Large dt and steady marches with the full viscous stress (doc/full_viscous_stress.md §6, WO-3, G3).

  couette  G3(i)   two-layer Couette (10x mu(y), arithmetic mean) at dt = 20 and 100: full stress
                   against laplacian, the same error to 1e-8 relative (design Amendment A2).
  rotcore  G3(ii)  the rotating-core problem of G2 (full_stress_gates.py) at mu_in/mu_out = 0.01 and
                   100, D = 1e4, 2000 steps: no growth as design Amendment A3 states it -- with
                   d_n = max|u^n - u^2000| (all components), d_n <= 2 d_0 for every n < 2000 and
                   d_1999 <= 1e-8 d_0 (u^0 = the continuum field the march starts from); the
                   laplacian control is info. And the same steady error as at D = 10 (relative
                   1e-8).  --n N (default 64).
  spheres  G3(iii) steady Stokes through the periodic sphere array (sdflow set-up, N = 32) with a
                   smooth 10x mu(x) = mu0 10^((1 - cos 2 pi x/L)/2): dt = 20 and dt = 100 give the
                   same steady K = mu0 <u>/F to 1e-6; steps to steady (max|du| <= 1e-10 max|u|),
                   full against laplacian (target <= 2x, else Q3).
  outflow  S2      an OPEN face (review S2, outside the §6 proof): a 32 x 16 x 4 channel, plug inflow
                   -x, outflow +x, no-slip walls in y, periodic z, mu = mu0 10^((x/Lx + y/Ly)/2)
                   (10x, gradients in x and y up to the outflow face), steady Stokes marched at
                   dt = 20 and 1000 (D = mu dt/h^2 up to 1000). Pass: both forms reach steady
                   (max|du| <= 1e-10 max|u|) with no growth (max|u| never above 2x its final
                   value) and give the same steady field at the two dt to 1e-6 (max|u_20 -
                   u_1000| / max|u|); full against laplacian is info.
  ctest            the short ctest `full_stress_large_dt`: rotating core N = 32, ratio 100, D = 1e4,
                   500 steps, full stress: the A3 no-growth test against u^500.

Run: OMP_NUM_THREADS=8 PYTHONPATH=<build> python tests/study/full_stress_large_dt.py [cmd ...]
Exit 0 pass, 1 miss, 77 skipped (no module).

Function Documentation

◆ verdict()

full_stress_large_dt.verdict ( name,
good,
detail )

Definition at line 48 of file full_stress_large_dt.py.

Referenced by cmd_couette(), cmd_ctest(), cmd_outflow(), cmd_rotcore(), and cmd_spheres().

◆ no_growth()

full_stress_large_dt.no_growth ( d)
Amendment A3: d_n = max|u^n - u^N| for n = 0..N-1; d_n <= 2 d_0 for all n, d_{N-1} <= 1e-8 d_0.

Definition at line 54 of file full_stress_large_dt.py.

Referenced by cmd_ctest(), and cmd_rotcore().

◆ initial_field()

full_stress_large_dt.initial_field ( N,
ratio,
nz = 4,
U0 = 1e-3 )
u^0: the exact (continuum) face velocity rotcore() sets before the first step.

Definition at line 63 of file full_stress_large_dt.py.

Referenced by march_rotcore().

◆ march_rotcore()

full_stress_large_dt.march_rotcore ( N,
ratio,
D,
steps,
full = True )
Fixed-length march (the G2 set-up, exact initial field). Returns the solver, max|u| after
every step, and d_n = max|u^n - u^steps| for n = 0..steps-1 (Amendment A3).

Definition at line 77 of file full_stress_large_dt.py.

References initial_field().

Referenced by cmd_ctest(), and cmd_rotcore().

◆ rotcore_error()

full_stress_large_dt.rotcore_error ( s,
N,
ratio,
U0 = 1e-3 )

Definition at line 92 of file full_stress_large_dt.py.

Referenced by cmd_rotcore().

◆ cmd_couette()

full_stress_large_dt.cmd_couette ( )

Definition at line 105 of file full_stress_large_dt.py.

References verdict().

◆ cmd_rotcore()

full_stress_large_dt.cmd_rotcore ( N)

Definition at line 116 of file full_stress_large_dt.py.

References march_rotcore(), no_growth(), rotcore_error(), and verdict().

Referenced by main().

◆ spheres()

full_stress_large_dt.spheres ( full,
dt,
N = 32,
mu0 = 0.1,
Fb = 1e-3,
max_steps = 20000,
tol = 1e-10 )

Definition at line 137 of file full_stress_large_dt.py.

References F.

Referenced by cmd_spheres().

◆ cmd_spheres()

full_stress_large_dt.cmd_spheres ( )

Definition at line 177 of file full_stress_large_dt.py.

References spheres(), and verdict().

◆ channel_outflow()

full_stress_large_dt.channel_outflow ( full,
dt,
nx = 32,
ny = 16,
nz = 4,
mu0 = 0.1,
U = 1e-3,
max_steps = 20000,
tol = 1e-10 )

Definition at line 198 of file full_stress_large_dt.py.

References F.

Referenced by cmd_outflow().

◆ cmd_outflow()

full_stress_large_dt.cmd_outflow ( )

Definition at line 233 of file full_stress_large_dt.py.

References channel_outflow(), and verdict().

◆ cmd_ctest()

full_stress_large_dt.cmd_ctest ( )

Definition at line 253 of file full_stress_large_dt.py.

References march_rotcore(), no_growth(), and verdict().

◆ main()

full_stress_large_dt.main ( )

Definition at line 261 of file full_stress_large_dt.py.

References cmd_rotcore(), and main().

Referenced by main().

Variable Documentation

◆ F

full_stress_large_dt.F = np.asfortranarray

Definition at line 44 of file full_stress_large_dt.py.

Referenced by channel_outflow(), and spheres().

◆ OK

bool full_stress_large_dt.OK = True

Definition at line 45 of file full_stress_large_dt.py.