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

Functions

 solver ()
 
 run (kind, moving)
 

Variables

 L
 
 NY
 
 U
 
 NU
 
 DT
 
 KI_I
 
 KI_R
 
 OFF
 
 WX
 
int STEPS = 100
 
tuple HW = (L - 2 * WX) / 2
 
tuple CASES = (("sphere0+duct1", True), ("duct0+sphere1", True)) if len(sys.argv) > 1 else (("difference", True), ("difference", False), ("four-box", True))
 
 r = run(kind, moving)
 

Detailed Description

Does a MOVING CSG instance carry its wall velocity? A plug flow at U inside a square duct whose
walls translate at +U has zero shear everywhere and must keep its mean velocity EXACTLY; the same
plug against walls at rest loses momentum to the growing wall layers (~45% in 100 steps at these
numbers). Three ducts: a box-DIFFERENCE instance moving, the same at rest (control), and four
plain box-leaf instances moving.

Usage: PYTHONPATH=<flow build> python csg_wall_velocity_gate.py

Function Documentation

◆ solver()

csg_wall_velocity_gate.solver ( )

Definition at line 21 of file csg_wall_velocity_gate.py.

◆ run()

csg_wall_velocity_gate.run (   kind,
  moving 
)

Definition at line 29 of file csg_wall_velocity_gate.py.

Variable Documentation

◆ L

csg_wall_velocity_gate.L

Definition at line 13 of file csg_wall_velocity_gate.py.

◆ NY

csg_wall_velocity_gate.NY

Definition at line 13 of file csg_wall_velocity_gate.py.

◆ U

csg_wall_velocity_gate.U

Definition at line 14 of file csg_wall_velocity_gate.py.

◆ NU

csg_wall_velocity_gate.NU

Definition at line 14 of file csg_wall_velocity_gate.py.

◆ DT

csg_wall_velocity_gate.DT

Definition at line 14 of file csg_wall_velocity_gate.py.

◆ KI_I

csg_wall_velocity_gate.KI_I

Definition at line 15 of file csg_wall_velocity_gate.py.

◆ KI_R

csg_wall_velocity_gate.KI_R

Definition at line 15 of file csg_wall_velocity_gate.py.

◆ OFF

csg_wall_velocity_gate.OFF

Definition at line 16 of file csg_wall_velocity_gate.py.

◆ WX

csg_wall_velocity_gate.WX

Definition at line 16 of file csg_wall_velocity_gate.py.

◆ STEPS

int csg_wall_velocity_gate.STEPS = 100

Definition at line 17 of file csg_wall_velocity_gate.py.

◆ HW

tuple csg_wall_velocity_gate.HW = (L - 2 * WX) / 2

Definition at line 18 of file csg_wall_velocity_gate.py.

◆ CASES

tuple csg_wall_velocity_gate.CASES = (("sphere0+duct1", True), ("duct0+sphere1", True)) if len(sys.argv) > 1 else (("difference", True), ("difference", False), ("four-box", True))

Definition at line 85 of file csg_wall_velocity_gate.py.

◆ r

csg_wall_velocity_gate.r = run(kind, moving)

Definition at line 87 of file csg_wall_velocity_gate.py.