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

Functions

 build (pf, enable)
 run (pf, enable)
 main ()

Variables

 N
 STEPS
 RHO_C0
 RHO_C1
dict CALLS

Detailed Description

Gate: enable_vof_momentum takes (rho_c0, rho_c1); the former keywords rho_gas / rho_liquid work.

The pair is (density at C = 0, density at C = 1), whichever phase that is. The old names assumed
C = 1 marks the liquid and misled callers whose C = 1 is the gas (the Q6 runs). `rho_c0=`/`rho_c1=`
is the canonical spelling (suite/docs/NAMING.md section 0.1); `rho_gas=`/`rho_liquid=` stay as an
overload for this release.

Checks, on a 12^3 periodic drop moving through a density-ratio-10 fluid for a few steps:
  1. positional, rho_c0=/rho_c1= and rho_gas=/rho_liquid= give bitwise identical u, v, w, p, C;
  2. mixed keywords (rho_c0=, rho_liquid=) raise TypeError;
  3. a pair swapped against the registered 'rho' closure raises, and the message names rho_c0 and
     rho_c1 and says SWAPPED.

Run:  OMP_NUM_THREADS=4 OMP_PROC_BIND=false PYTHONPATH=<build> \
          python tests/python/test_vof_momentum_rho_names.py
Exit 0 pass, 1 fail, 77 skipped (no module).

Function Documentation

◆ build()

test_vof_momentum_rho_names.build ( pf,
enable )

Definition at line 32 of file test_vof_momentum_rho_names.py.

Referenced by main(), and run().

◆ run()

test_vof_momentum_rho_names.run ( pf,
enable )

Definition at line 54 of file test_vof_momentum_rho_names.py.

References build().

Referenced by main().

◆ main()

test_vof_momentum_rho_names.main ( )

Definition at line 62 of file test_vof_momentum_rho_names.py.

References build(), main(), and run().

Referenced by main().

Variable Documentation

◆ N

test_vof_momentum_rho_names.N

Definition at line 23 of file test_vof_momentum_rho_names.py.

◆ STEPS

test_vof_momentum_rho_names.STEPS

Definition at line 23 of file test_vof_momentum_rho_names.py.

◆ RHO_C0

test_vof_momentum_rho_names.RHO_C0

Definition at line 24 of file test_vof_momentum_rho_names.py.

◆ RHO_C1

test_vof_momentum_rho_names.RHO_C1

Definition at line 24 of file test_vof_momentum_rho_names.py.

◆ CALLS

dict test_vof_momentum_rho_names.CALLS
Initial value:
1= {
2 "positional": lambda s: s.enable_vof_momentum(RHO_C0, RHO_C1),
3 "canonical keywords": lambda s: s.enable_vof_momentum(rho_c0=RHO_C0, rho_c1=RHO_C1),
4 "former keywords": lambda s: s.enable_vof_momentum(rho_gas=RHO_C0, rho_liquid=RHO_C1),
5}

Definition at line 25 of file test_vof_momentum_rho_names.py.