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

Functions

 couette (harmonic, rot=None, chi=1.0, dt=20.0, N=32, steps=4000, tol=1e-9)
 

Variables

 e
 
 c
 
 e2
 
 c2
 
 True
 
 dt
 
 steps
 
 ea
 
 ca
 
 ef
 
 cf
 
 rot
 

Detailed Description

Two-layer plane Couette — validates variable viscosity (Phase 4) INCLUDING the
incremental-rotational pressure scheme (large-dt / steady-Stokes capability) at strong contrast.

Bottom wall fixed, top wall moving at U; two viscosity layers (mu1 lower, mu2 upper, 10x jump).
Analytic steady profile: piecewise linear with interface velocity u_i/U = mu2/(mu1+mu2). The
harmonic face-viscosity mean reproduces it to ~1e-5; the arithmetic mean shows O(1%) error at the
jump (why 'harmonic' matters).

Rotational pressure under variable viscosity: the constant-mu Timmermans term -mu*div(u*) is only
valid for HOMOGENEOUS viscosity (Deteix & Yakoubi, Appl. Math. Lett. 79 (2018) 111-117; arXiv:
1902.05643 for the full shear-rate-projection). The default here ('min') uses the constant
coefficient chi*mu_min - stable at any contrast by domination, exact fallback to the constant-mu
scheme for uniform mu, and it KEEPS the incremental predictor: dt=100 converges in ~200 steps below.
'full' (pointwise mu(i)) is demonstrated to diverge at 10x contrast - mild-contrast use only.

Run:  PYTHONPATH=<build> python two_layer_couette.py

Function Documentation

◆ couette()

two_layer_couette.couette (   harmonic,
  rot = None,
  chi = 1.0,
  dt = 20.0,
  N = 32,
  steps = 4000,
  tol = 1e-9 
)

Definition at line 23 of file two_layer_couette.py.

Variable Documentation

◆ e

two_layer_couette.e

Definition at line 57 of file two_layer_couette.py.

◆ c

two_layer_couette.c

Definition at line 57 of file two_layer_couette.py.

◆ e2

two_layer_couette.e2

Definition at line 61 of file two_layer_couette.py.

◆ c2

two_layer_couette.c2

Definition at line 61 of file two_layer_couette.py.

◆ True

two_layer_couette.True

Definition at line 61 of file two_layer_couette.py.

◆ dt

two_layer_couette.dt

Definition at line 61 of file two_layer_couette.py.

◆ steps

two_layer_couette.steps

Definition at line 61 of file two_layer_couette.py.

◆ ea

two_layer_couette.ea

Definition at line 65 of file two_layer_couette.py.

◆ ca

two_layer_couette.ca

Definition at line 65 of file two_layer_couette.py.

◆ ef

two_layer_couette.ef

Definition at line 69 of file two_layer_couette.py.

◆ cf

two_layer_couette.cf

Definition at line 69 of file two_layer_couette.py.

◆ rot

two_layer_couette.rot

Definition at line 69 of file two_layer_couette.py.