|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
Functions | |
| build (pf, enable) | |
| run (pf, enable) | |
| main () | |
Variables | |
| N | |
| STEPS | |
| RHO_C0 | |
| RHO_C1 | |
| dict | CALLS |
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).
| test_vof_momentum_rho_names.build | ( | pf, | |
| enable ) |
Definition at line 32 of file test_vof_momentum_rho_names.py.
| 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().
| test_vof_momentum_rho_names.main | ( | ) |
| test_vof_momentum_rho_names.N |
Definition at line 23 of file test_vof_momentum_rho_names.py.
| test_vof_momentum_rho_names.STEPS |
Definition at line 23 of file test_vof_momentum_rho_names.py.
| test_vof_momentum_rho_names.RHO_C0 |
Definition at line 24 of file test_vof_momentum_rho_names.py.
| test_vof_momentum_rho_names.RHO_C1 |
Definition at line 24 of file test_vof_momentum_rho_names.py.
| dict test_vof_momentum_rho_names.CALLS |
Definition at line 25 of file test_vof_momentum_rho_names.py.