Changeset 8795
- Timestamp:
- Mar 31, 2013, 12:03:12 PM (12 years ago)
- Location:
- trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/runup_on_beach
- Files:
-
- 3 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/runup_on_beach/plot_runup.py
r8631 r8795 23 23 #-------------------- 24 24 ##pyplot.close() #If the plot is open, there will be problems 25 ##pyplot.ion()26 25 ##if False: 27 26 ## line, = pyplot.plot( (p.x[v].min(),p.x[v].max()) ,(p.xvel[:,v].min(),p.xvel[:,v].max() ) ) … … 40 39 y = zeros(len(x)) 41 40 for i in range(len(x)): 42 if x[i] < 0. 2:41 if x[i] < 0.8: 43 42 y[i] = -0.5*x[i] 44 43 else: 45 y[i] = -0. 144 y[i] = -0.4 46 45 return y 47 46 -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/runup_on_beach/produce_results.py
r8739 r8795 9 9 # validation test 10 10 def build(): 11 run_validation_script(' runup.py')11 run_validation_script('numerical_runup.py') 12 12 run_validation_script('plot_runup.py') 13 run('python', 'produce_report.py') 13 14 14 15 def clean(): -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/runup_on_beach/results.tex
r8631 r8795 1 1 \section{Simple wave runup} 2 This scenario simulates a wave flowing up a planar beach. Following the initial wave runup, eventually the water elevation should become constant, and the velocities should approach zero. 2 This scenario simulates a wave flowing up a planar beach. Following the initial wave runup, eventually the water elevation should become constant, and the velocities should approach zero. This test follows from the \anuga{} User Manual~\cite{RNGS2010}. 3 Instead of demonstrating how \anuga{} simulates a water flow test as given in the \anuga{} User Manual~\cite{RNGS2010}, here we investigate the behaviour of the wetting (and possibly the drying) process handled by \anuga{}. 3 4 4 5 \subsection{Results} 5 Figure~\ref{fig:stage_1s} shows the water surface at time 1s (in the cross-shore direction). It is not constant as the water runup at this time. Figure~\ref{fig:xvel_1s} shows the corresponding $x$-velocity during the wave runup. The velocities should be free from major spikes. 6 To do the investigation, we consider initial and boundary conditions different from those given in the \anuga{} User Manual~\cite{RNGS2010} so that we have a large dry region. Consider a rectangular domain with $x\in[0,1]$ and $y\in[0,0.03]$\,. The initial conditions are $u=v=0$ and 7 \begin{equation} 8 z(x) = -\frac{x}{2} 9 \end{equation} 10 with the stage at wet region is $w=-0.45$. The boundary condition on the rightend of the domain is Dirichlet with stage $w=-0.4$ and discharges in $x$ and $y$ directions are zero. 11 12 At an early runup, representatives of the results are as follows. Figure~\ref{fig:stage_1s} shows the water surface at time $t=1$ (in the cross-shore direction). It is not constant as the water runup at this time. Figure~\ref{fig:xvel_1s} shows the corresponding $x$-velocity during the wave runup. The velocities should be free from major spikes. 6 13 \begin{figure}[h] 7 14 \begin{center} … … 22 29 23 30 24 Figure~\ref{fig:stage_30s} shows the water surface at time 30s (in the cross-shore direction). It should be nearly constant (= -0.1m) in the wet portions of the domain. Figure~\ref{fig:xvel_30s} shows the corresponding velocity at time 30s. It should be nearly zero (e.g. $<<$ 1 mm/s). This case has been used to illustrate wet-dry artefacts in some versions of \anuga.31 After a much longer time, representatives of the results are as follows. Figure~\ref{fig:stage_30s} shows the water surface at time 30s (in the cross-shore direction). It should be nearly constant (= -0.1m) in the wet portions of the domain. Figure~\ref{fig:xvel_30s} shows the corresponding velocity at time 30s. It should be nearly zero (e.g. $<<$ 1 mm/s). This case has been used to illustrate wet-dry artefacts in some versions of \anuga. 25 32 \begin{figure}[h] 26 33 \begin{center} … … 39 46 \end{figure} 40 47 48 From these figures, we see that the velocity at wet/dry interface is large. This large velocity may results in wetting the whole dry region on the left. Water may go up to the left when we run the code for a relatively long time and if the code does not handle the wet/dry interface correctly. The wetting and drying process is indeed a chalenging task in solving the shallow water equations numerically. If the process is handled correctly in \anuga{}, water should not ``creep-up`` to the left for a long distance. See the corresponding \textbf{sww} file for the water motion. 49 41 50 \endinput
Note: See TracChangeset
for help on using the changeset viewer.