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

Functions

 channel (cls, scheme=None, steps=200)
 required_outlet (s)
 probe (name, s)

Variables

 NX
 NY
 NZ
 U_IN
 MU
 DT
 which = sys.argv[1:] or ["colo-default", "colo-gauge-exact", "colo-embed", "staggered"]
int steps = 200
 s = channel(pf.Solver, steps=steps)

Detailed Description

Diagnosis probe (branch uf-outlet-diag): does the collocated projected face field uf_ carry, on
the OUTLET face plane, the flux the projection solved for?

The outlet face (index nx along x) is a ghost index of uf_, so get_uf() cannot read it. A passive
scalar c == 1 with zero diffusivity and first-order upwind reads it exactly: in the last column
    c_new = 1 - dt * (U_out_raw - U_out_required)            (cell units, h = 1)
where U_out_required closes the last cell's discrete divergence from the inner faces get_uf/vf/wf
return. Every other cell changes by dt * div(face field), i.e. by the projection residual.

Run: OMP_NUM_THREADS=4 OMP_PROC_BIND=false PYTHONPATH=build_host python tests/study/uf_outlet_diag.py

Function Documentation

◆ channel()

uf_outlet_diag.channel ( cls,
scheme = None,
steps = 200 )

Definition at line 23 of file uf_outlet_diag.py.

◆ required_outlet()

uf_outlet_diag.required_outlet ( s)
Outlet flux that closes the last cell's divergence, from the inner faces.

Definition at line 39 of file uf_outlet_diag.py.

Referenced by probe().

◆ probe()

uf_outlet_diag.probe ( name,
s )

Definition at line 48 of file uf_outlet_diag.py.

References required_outlet(), and slice().

Variable Documentation

◆ NX

uf_outlet_diag.NX

Definition at line 19 of file uf_outlet_diag.py.

◆ NY

uf_outlet_diag.NY

Definition at line 19 of file uf_outlet_diag.py.

◆ NZ

uf_outlet_diag.NZ

Definition at line 19 of file uf_outlet_diag.py.

◆ U_IN

uf_outlet_diag.U_IN

Definition at line 20 of file uf_outlet_diag.py.

◆ MU

uf_outlet_diag.MU

Definition at line 20 of file uf_outlet_diag.py.

◆ DT

uf_outlet_diag.DT

Definition at line 20 of file uf_outlet_diag.py.

◆ which

uf_outlet_diag.which = sys.argv[1:] or ["colo-default", "colo-gauge-exact", "colo-embed", "staggered"]

Definition at line 79 of file uf_outlet_diag.py.

◆ steps

int uf_outlet_diag.steps = 200

Definition at line 80 of file uf_outlet_diag.py.

◆ s

uf_outlet_diag.s = channel(pf.Solver, steps=steps)

Definition at line 83 of file uf_outlet_diag.py.