|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
Functions | |
| mm (p, q) | |
| mc (p, q) | |
| phase_est (dm, dp, f) | |
| tvd (dm, dp, est) | |
| run (N, ratio, scheme, v0, steps=None, slab=(0.3, 0.7), wisp=0.0) | |
| v0 (s) | |
Variables | |
| float | A = 0.2 |
| list | Ns = [32, 64, 128, 256, 512] |
| list | schemes |
| l1 | |
| bt | |
| x | |
| C | |
| v | |
| nst | |
| b | |
| int | noise = 1e-14 * np.random.default_rng(7).standard_normal(64) |
| _ | |
| steps | |
| w | |
A-priori operator test for doc/vof_momentum_second_order.md (numpy, host, seconds). One directional sweep of flow's mass-momentum-consistent update (src/vof/momentum_advect.hpp, the deviation form `u_new = u_old + dev/rho_new`) transporting a TRANSVERSE velocity v(x) through a sharp liquid slab at uniform Courant number a, periodic. In 1D the PLIC flux of a step is exact, so C is exact and v has the exact solution v0(x - T): every error printed is the momentum reconstruction's. Schemes: upwind (flow default) | muscl_mixed (flow's opt-in MinMod of the mixed CV velocity) | mc_mixed (MC of the mixed velocity, no cap) | muscl_mixed_capped (muscl_mixed + the mass-aware cap) | muscl_phase (the design: per-phase interface-biased MC slopes + the cap) | phase_central (Basilisk's interface-biased rule with an UNLIMITED central slope, no cap). Run: python -I apriori1d.py (prints the table quoted in the design note, section 2)
| apriori1d.mm | ( | p, | |
| q ) |
Definition at line 20 of file apriori1d.py.
Referenced by run().
| apriori1d.mc | ( | p, | |
| q ) |
Definition at line 24 of file apriori1d.py.
Referenced by run().
| apriori1d.phase_est | ( | dm, | |
| dp, | |||
| f ) |
Interface-biased slope estimate for the phase whose fraction is f (>= 1/2 = holds it).
Definition at line 29 of file apriori1d.py.
Referenced by run().
| apriori1d.tvd | ( | dm, | |
| dp, | |||
| est ) |
Definition at line 36 of file apriori1d.py.
Referenced by run().
| apriori1d.run | ( | N, | |
| ratio, | |||
| scheme, | |||
| v0, | |||
| steps = None, | |||
| slab = (0.3, 0.7), | |||
| wisp = 0.0 ) |
Definition at line 41 of file apriori1d.py.
References mc(), mm(), phase_est(), tvd(), and v0().
| apriori1d.v0 | ( | s | ) |
Definition at line 84 of file apriori1d.py.
Referenced by run().
| float apriori1d.A = 0.2 |
Definition at line 17 of file apriori1d.py.
| list apriori1d.Ns = [32, 64, 128, 256, 512] |
Definition at line 89 of file apriori1d.py.
| list apriori1d.schemes |
Definition at line 90 of file apriori1d.py.
| apriori1d.l1 |
Definition at line 95 of file apriori1d.py.
| apriori1d.bt |
Definition at line 95 of file apriori1d.py.
| apriori1d.x |
Definition at line 97 of file apriori1d.py.
| apriori1d.C |
Definition at line 97 of file apriori1d.py.
| apriori1d.v |
Definition at line 97 of file apriori1d.py.
| apriori1d.nst |
Definition at line 97 of file apriori1d.py.
| apriori1d.b |
Definition at line 97 of file apriori1d.py.
| apriori1d.noise = 1e-14 * np.random.default_rng(7).standard_normal(64) |
Definition at line 104 of file apriori1d.py.
|
protected |
Definition at line 107 of file apriori1d.py.
| apriori1d.steps |
Definition at line 107 of file apriori1d.py.
| apriori1d.w |
Definition at line 108 of file apriori1d.py.