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

Functions

 sphere_c (sub=4)
 build (cls, on, u0, kappa=None)
 run (cls, on, u0, steps, kappa=None)
 main ()

Variables

 N
 R
 SIGMA
 MU
 RATIO
 U0
 STEPS
 WARM
 REPEATS

Detailed Description

Cost of the balanced-force projection (doc/collocated_varrho_forces.md ยง4.8, gate G7) -- an
INSTRUMENT, not a gate. Two cases: MOVING (below) and STATIC (the same drop at rest, 50 steps:
with the increment solve and its full-RHS stop, WO-P5, a static interface must cost 0
pre-projection iterations after the first step).

A moving ratio-1000 drop on 32^3 (periodic, R = 8, sigma = 1, mu = 0.1, a uniform translation
U = 0.02 seeded in the velocity, dt = 0.5 capillary_dt), on both grids, stepped with the
balanced-force projection OFF and ON. Reports the median wall time per step over steps
[WARM, STEPS) and the mean pressure / balanced-force iteration counts. G7: ON <= 1.5x OFF, and
mean balanced-force iterations <= mean main pressure iterations.

The staggered grid runs with enable_vof_momentum (ratio 1000 with motion); the collocated grid is
V8 (the option is its default; OFF is set explicitly).

Run: OMP_NUM_THREADS=8 OMP_PROC_BIND=false PYTHONPATH=<build> python tests/study/balanced_force_cost.py
Timings on a shared host are noisy: OFF and ON are interleaved per repeat and the median taken.

Function Documentation

◆ sphere_c()

balanced_force_cost.sphere_c ( sub = 4)

Definition at line 30 of file balanced_force_cost.py.

Referenced by build().

◆ build()

balanced_force_cost.build ( cls,
on,
u0,
kappa = None )

Definition at line 43 of file balanced_force_cost.py.

References sphere_c().

Referenced by run().

◆ run()

balanced_force_cost.run ( cls,
on,
u0,
steps,
kappa = None )

Definition at line 66 of file balanced_force_cost.py.

References build().

Referenced by main().

◆ main()

balanced_force_cost.main ( )

Definition at line 83 of file balanced_force_cost.py.

References main(), and run().

Referenced by main().

Variable Documentation

◆ N

balanced_force_cost.N

Definition at line 26 of file balanced_force_cost.py.

◆ R

balanced_force_cost.R

Definition at line 26 of file balanced_force_cost.py.

◆ SIGMA

balanced_force_cost.SIGMA

Definition at line 26 of file balanced_force_cost.py.

◆ MU

balanced_force_cost.MU

Definition at line 26 of file balanced_force_cost.py.

◆ RATIO

balanced_force_cost.RATIO

Definition at line 26 of file balanced_force_cost.py.

◆ U0

balanced_force_cost.U0

Definition at line 26 of file balanced_force_cost.py.

◆ STEPS

balanced_force_cost.STEPS

Definition at line 27 of file balanced_force_cost.py.

◆ WARM

balanced_force_cost.WARM

Definition at line 27 of file balanced_force_cost.py.

◆ REPEATS

balanced_force_cost.REPEATS

Definition at line 27 of file balanced_force_cost.py.