Changeset 8795


Ignore:
Timestamp:
Mar 31, 2013, 12:03:12 PM (12 years ago)
Author:
mungkasi
Message:

Automated report for runup_on_beach.

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  
    2323#--------------------
    2424##pyplot.close() #If the plot is open, there will be problems
    25 ##pyplot.ion()
    2625##if False:
    2726##    line, = pyplot.plot( (p.x[v].min(),p.x[v].max()) ,(p.xvel[:,v].min(),p.xvel[:,v].max() ) )
     
    4039    y = zeros(len(x))
    4140    for i in range(len(x)):
    42         if x[i] < 0.2:
     41        if x[i] < 0.8:
    4342            y[i] = -0.5*x[i]
    4443        else:
    45             y[i] = -0.1
     44            y[i] = -0.4
    4645    return y
    4746
  • trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/runup_on_beach/produce_results.py

    r8739 r8795  
    99# validation test
    1010def build():
    11     run_validation_script('runup.py')
     11    run_validation_script('numerical_runup.py')
    1212    run_validation_script('plot_runup.py')
     13    run('python', 'produce_report.py')   
    1314
    1415def clean():
  • trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/runup_on_beach/results.tex

    r8631 r8795  
    11\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.
     2This 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}.
     3Instead 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{}.
    34
    45\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.
     6To 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}
     8z(x) = -\frac{x}{2}
     9\end{equation}
     10with 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
     12At 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.
    613\begin{figure}[h]
    714\begin{center}
     
    2229
    2330
    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.
     31After 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.
    2532\begin{figure}[h]
    2633\begin{center}
     
    3946\end{figure}
    4047
     48From 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
    4150\endinput
Note: See TracChangeset for help on using the changeset viewer.