Define DRY 1e-4
2 1 GfsRiver GfsBox GfsGEdge { x = 0.5 y = 0.5 } {
PhysicalParams { L = 3.402 g = 9.81 }
Refine 6
VariableFunction Zb1 bathy.gts
Init {} {
P = MAX (0., -Zb1)
}
AdvectionParams { gradient = gfs_center_sweby_gradient }
AdaptGradient { istep = 1 } {
cmax = 1e-3
cfactor = 2
maxlevel = 9
minlevel = 6
} (P < DRY ? 0. : P + Zb)
Init { istep = 1 } {
Zb = (x > 5.448 ? 0.13535 : Zb1)
input = input.cgd
U = (P > DRY ? U/(1. + dt*1e-3*Velocity/P) : 0.)
V = (P > DRY ? V/(1. + dt*1e-3*Velocity/P) : 0.)
P = (P > DRY ? P : 0.)
}
Time { end = 22.5 }
OutputTime { istep = 10 } stderr
OutputTiming { start = end } stderr
OutputSimulation { step = 1 } stdout
OutputSimulation { step = 1 } sim-%g.gfs
EventScript { step = 1 } { gzip -f sim-*.gfs }
OutputLocation { istep = 1 } input 1e-3 1.7 0
OutputLocation { istep = 1 } p5 4.521 1.196 0
OutputLocation { istep = 1 } p7 4.521 1.696 0
OutputLocation { istep = 1 } p9 4.521 2.196 0
OutputScalarSum { istep = 1 } ke { v = (P > 0. ? Velocity2*P : 0.) }
OutputScalarStats { istep = 1 } p { v = (Zb > 0. ? P : P + Zb) }
OutputScalarNorm { istep = 1 } u { v = Velocity }
OutputTime { istep = 1 } balance
OutputBalance { istep = 1 } balance
GModule gfsview
OutputView { start = 9 step = 0.0416 } { ppm2mpeg -s 640x480 > monai.mpg } {
width = 1280 height = 960
} 3D.gfv
OutputView { start = 14.63 end = 19.5 step = 0.033333333 } {
ppm2mpeg -s 400x600 > overhead.mpg
} {
width = 800 height = 1200
} overhead.gfv
} {
dry = DRY
}
GfsBox {
left = Boundary { BcSubcritical U (input - Zb) }
top = Boundary
bottom = Boundary
}
GfsBox {
top = Boundary
bottom = Boundary
}
1 2 right