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

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

Detailed Description

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)

Function Documentation

◆ mm()

apriori1d.mm ( p,
q )

Definition at line 20 of file apriori1d.py.

Referenced by run().

◆ mc()

apriori1d.mc ( p,
q )

Definition at line 24 of file apriori1d.py.

Referenced by run().

◆ phase_est()

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().

◆ tvd()

apriori1d.tvd ( dm,
dp,
est )

Definition at line 36 of file apriori1d.py.

Referenced by run().

◆ 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().

◆ v0()

apriori1d.v0 ( s)

Definition at line 84 of file apriori1d.py.

Referenced by run().

Variable Documentation

◆ A

float apriori1d.A = 0.2

Definition at line 17 of file apriori1d.py.

◆ Ns

list apriori1d.Ns = [32, 64, 128, 256, 512]

Definition at line 89 of file apriori1d.py.

◆ schemes

list apriori1d.schemes
Initial value:
1= ['upwind', 'muscl_mixed', 'mc_mixed', 'muscl_mixed_capped', 'muscl_phase',
2 'phase_central']

Definition at line 90 of file apriori1d.py.

◆ l1

apriori1d.l1

Definition at line 95 of file apriori1d.py.

◆ bt

apriori1d.bt

Definition at line 95 of file apriori1d.py.

◆ x

apriori1d.x

Definition at line 97 of file apriori1d.py.

◆ C

apriori1d.C

Definition at line 97 of file apriori1d.py.

◆ v

apriori1d.v

Definition at line 97 of file apriori1d.py.

◆ nst

apriori1d.nst

Definition at line 97 of file apriori1d.py.

◆ b

apriori1d.b

Definition at line 97 of file apriori1d.py.

◆ noise

apriori1d.noise = 1e-14 * np.random.default_rng(7).standard_normal(64)

Definition at line 104 of file apriori1d.py.

◆ _

apriori1d._
protected

Definition at line 107 of file apriori1d.py.

◆ steps

apriori1d.steps

Definition at line 107 of file apriori1d.py.

◆ w

apriori1d.w

Definition at line 108 of file apriori1d.py.