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

Functions

 build (n, form, stress, sigma)
 run (n, form, stress, sigma, steps)
 main ()

Variables

tuple U0 = (0.07, 0.035, 0.0175)

Detailed Description

Case A G5 diagnosis, step 2: the a-priori translation test (doc/full_viscous_stress.md ยง2.4).

A two-phase field translating rigidly, u = U everywhere, with the case-A density and viscosity
jumps (ratios 0.1), g = 0, triply periodic, is an exact solution of the two-phase Navier-Stokes
equations without surface tension: every force vanishes and the interface is carried by U.
A momentum form passes if it keeps u = U to rounding. With sigma != 0 (the case-A sigma, i.e. Bo 2
at the case-A g) the exact solution is still u = U (a translating sphere at rest in its own frame,
Laplace pressure inside), and |u - U| measures the spurious currents.

Forms: 'vel' = the velocity form (the case-A default), 'vel-adv' = the velocity form with
set_advection(True), 'mom' = enable_vof_momentum (conservative rho u transport, single VoF).
The structured VoF is used throughout (enable_vof_momentum refuses the block container) except
'vel-blk' / 'vel-adv-blk' = the case-A block container + block CSF.
set_superficial_velocity(True, 'x', U) as in case A; a = shift/dt reported in units of g = 9.81.

Usage:  OMP_NUM_THREADS=4 OMP_PROC_BIND=false PYTHONPATH=<build> \\
            python tests/study/case_a/probe_translate.py --n 32 --steps 200 [--sigma]
Prints one line per (form, stress).

Function Documentation

◆ build()

probe_translate.build ( n,
form,
stress,
sigma )

Definition at line 34 of file probe_translate.py.

Referenced by run().

◆ run()

probe_translate.run ( n,
form,
stress,
sigma,
steps )

Definition at line 70 of file probe_translate.py.

References build().

Referenced by main().

◆ main()

probe_translate.main ( )

Definition at line 98 of file probe_translate.py.

References main(), and run().

Referenced by main().

Variable Documentation

◆ U0

tuple probe_translate.U0 = (0.07, 0.035, 0.0175)

Definition at line 31 of file probe_translate.py.