|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
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) | |
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
| uf_outlet_diag.channel | ( | cls, | |
| scheme = None, | |||
| steps = 200 ) |
Definition at line 23 of file uf_outlet_diag.py.
| 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().
| uf_outlet_diag.probe | ( | name, | |
| s ) |
Definition at line 48 of file uf_outlet_diag.py.
References required_outlet(), and slice().
| uf_outlet_diag.NX |
Definition at line 19 of file uf_outlet_diag.py.
| uf_outlet_diag.NY |
Definition at line 19 of file uf_outlet_diag.py.
| uf_outlet_diag.NZ |
Definition at line 19 of file uf_outlet_diag.py.
| uf_outlet_diag.U_IN |
Definition at line 20 of file uf_outlet_diag.py.
| uf_outlet_diag.MU |
Definition at line 20 of file uf_outlet_diag.py.
| uf_outlet_diag.DT |
Definition at line 20 of file uf_outlet_diag.py.
| 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.
| int uf_outlet_diag.steps = 200 |
Definition at line 80 of file uf_outlet_diag.py.