File tree Expand file tree Collapse file tree
examples/2D_poiseuille_nn Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919import json
2020import math
2121
22- # === Channel geometry (square domain) ===
22+ # -- Channel geometry (square domain) --
2323L = 1.0 # Channel length (streamwise, x)
2424H = 1.0 # Channel height (wall-normal, y)
2525
26- # === Grid resolution ===
26+ # -- Grid resolution --
2727Nx = 24 # Cells in x (streamwise, minimal — periodic)
2828Ny = 81 # Cells in y (wall-normal)
2929
30- # === Fluid properties ===
30+ # -- Fluid properties --
3131rho = 1.0 # Density
3232p0 = 1e5 # Reference pressure (high for low Mach)
3333gamma = 1.4 # Ratio of specific heats
3838cfl = 0.3
3939dt = cfl * dx / c
4040
41- # === Body force (pressure gradient substitute) ===
41+ # -- Body force (pressure gradient substitute) --
4242# G = rho * g_x acts as dp/dx driving force
4343g_x = 0.5
4444
45- # === HB non-Newtonian model parameters ===
45+ # -- HB non-Newtonian model parameters --
4646tau0 = 0.0 # Yield stress (set 0 for power-law)
4747K = 0.1 # Consistency index
4848nn = 2.0 # Flow behavior index (< 1 = shear-thinning)
5454# Reference Re based on consistency index (used as baseline)
5555Re_ref = 1.0 / K # = 100
5656
57- # === Time control ===
57+ # -- Time control --
5858t_end = 10.0 # End time (allow flow to reach steady state)
5959t_save = 5.0 # Save interval
6060
You can’t perform that action at this time.
0 commit comments