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

Functions

 sphere_sdf (N, phi)
 drag (N, scheme, mu=0.1, F=1e-3, dt=80.0, warm_tol=1e-7, tail=40, max_steps=4000)

Variables

 flow = ensure_flow()
 PHI0
 K_ZH
list Ns = [int(x) for x in (sys.argv[1:] or [32, 48, 64, 96, 128])]
dict out = {}
 K
 e
 pit
 st
 secs
 flush
list ords

Detailed Description

Zick & Homsy grid convergence of the COLLOCATED schemes, in the protocol the
staggered-vs-collocated example page quotes (warm_tol 1e-7, tail 40, up to 4000 steps).

Regenerates the page's collocated columns now that "gauge-exact" (the former set_face_interp(9))
is the default. Reproducing the published "plain" column is the control that the harness matches
the earlier runs.

    PECLET_FLOW_BUILD=build_ge python tests/study/collocated_zh_schemes.py

Function Documentation

◆ sphere_sdf()

collocated_zh_schemes.sphere_sdf ( N,
phi )

Definition at line 24 of file collocated_zh_schemes.py.

Referenced by drag().

◆ drag()

collocated_zh_schemes.drag ( N,
scheme,
mu = 0.1,
F = 1e-3,
dt = 80.0,
warm_tol = 1e-7,
tail = 40,
max_steps = 4000 )

Definition at line 32 of file collocated_zh_schemes.py.

References mean(), and sphere_sdf().

Variable Documentation

◆ flow

collocated_zh_schemes.flow = ensure_flow()

Definition at line 19 of file collocated_zh_schemes.py.

◆ PHI0

collocated_zh_schemes.PHI0

Definition at line 21 of file collocated_zh_schemes.py.

◆ K_ZH

collocated_zh_schemes.K_ZH

Definition at line 21 of file collocated_zh_schemes.py.

◆ Ns

list collocated_zh_schemes.Ns = [int(x) for x in (sys.argv[1:] or [32, 48, 64, 96, 128])]

Definition at line 59 of file collocated_zh_schemes.py.

◆ out

dict collocated_zh_schemes.out = {}

Definition at line 61 of file collocated_zh_schemes.py.

◆ K

collocated_zh_schemes.K

Definition at line 64 of file collocated_zh_schemes.py.

◆ e

collocated_zh_schemes.e

Definition at line 64 of file collocated_zh_schemes.py.

◆ pit

collocated_zh_schemes.pit

Definition at line 64 of file collocated_zh_schemes.py.

◆ st

collocated_zh_schemes.st

Definition at line 64 of file collocated_zh_schemes.py.

◆ secs

collocated_zh_schemes.secs

Definition at line 64 of file collocated_zh_schemes.py.

◆ flush

collocated_zh_schemes.flush

Definition at line 67 of file collocated_zh_schemes.py.

◆ ords

list collocated_zh_schemes.ords
Initial value:
1= [f"{np.log(abs(rows[i-1][1]/rows[i][1]))/np.log(rows[i][0]/rows[i-1][0]):+.2f}"
2 for i in range(1, len(rows))]

Definition at line 70 of file collocated_zh_schemes.py.