1 0 GfsRiver GfsBox GfsGEdge { x = 0.5 } {
Global {
}
Layers NL
PhysicalParams { L = LENGTH g = G }
Refine LEVEL
InitMask {} (y < LENGTH*(0.5 - 1./pow(2,LEVEL)))
Init {} {
Zb = MAX(0., HEIGHT*(1. - 1./(WIDTH/2.)/(WIDTH/2.)*(x - 10.)*(x - 10.)))
P = 0.6 - Zb
}
AdvectionParams {
}
EventStop { step = 1 } H 1e-3
Time { end = 1000 }
OutputLocation { start = end } { awk -v nl=NL -f uprof.awk > uprof-10-LEVEL-NL } 10. 10.49 0
OutputLocation { start = end } { awk -v nl=NL -f uprof.awk > uprof-15-LEVEL-NL } 15. 10.49 0
OutputLocation { start = end } { awk -v nl=NL -f uprof.awk > uprof-20-LEVEL-NL } 20. 10.49 0
OutputSimulation { start = end } {
awk '{ if ($1 != "#") print $1,$8; }' > prof-LEVEL-NL
} { format = text }
OutputSimulation { start = end } end-LEVEL-NL { format = text }
} {
nu = 0.01
k = (G/(25.*25.*pow(P,1./3.)))*Velocity
}
GfsBox {
right = Boundary {
BcDirichlet P HE
BcNeumann U 0
}
left = Boundary {
BcDirichlet U Q/NL
}
}