Changeset 8719


Ignore:
Timestamp:
Mar 3, 2013, 11:23:04 PM (12 years ago)
Author:
mungkasi
Message:

Update the report for dry dam break and the code.

Location:
trunk/anuga_core/validation_tests/Tests/Analytical_exact/dam_break_dry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/validation_tests/Tests/Analytical_exact/dam_break_dry/numerical_dam_break_dry.py

    r8682 r8719  
    5454domain.set_CFL(cfl)
    5555
    56 print 'cfl ',cfl
    57 print 'alg ',alg
    58 
    5956#------------------------------------------------------------------------------
    6057# Setup initial conditions
     
    8784
    8885
    89 parameter_file=open('parameters.tex', 'w')
    90 parameter_file.write('\\begin{verbatim}\n')
    91 from pprint import pprint
    92 pprint(domain.get_algorithm_parameters(),parameter_file,indent=4)
    93 parameter_file.write('\\end{verbatim}\n')
    94 parameter_file.close()
    95 
    96 
    9786#===============================================================================
    9887##from anuga.visualiser import RealtimeVisualiser
     
    10392#===============================================================================
    10493
     94
     95#------------------------------------------------------------------------------
     96# Produce a documentation of parameters
     97#------------------------------------------------------------------------------
     98parameter_file=open('parameters.tex', 'w')
     99parameter_file.write('\\begin{verbatim}\n')
     100from pprint import pprint
     101pprint(domain.get_algorithm_parameters(),parameter_file,indent=4)
     102parameter_file.write('\\end{verbatim}\n')
     103parameter_file.close()
    105104
    106105#------------------------------------------------------------------------------
  • trunk/anuga_core/validation_tests/Tests/Analytical_exact/dam_break_dry/results.tex

    r8682 r8719  
    11
    2 \section{Dam Break}
     2\section{Dam Break Involving a Dry Area}
    33
    4 Standard dam break test problem involving a dry area. Should show a rarefaction fan and wetting process.
     4The dam break problem involving a dry area was solved analytically by Ritter~\cite{Ritter1892} as well as Stoker~\cite{Stoker1948, Stoker1957}. The analytical solution exhibits a rarefaction fan as a parabolic curve. As water moves, it involves wetting process over the dry area. This is a one-dimensional-type problem.
     5
     6The initial condition is
     7\begin{equation} \label{eq:rdbp}
     8u(x,0)=0~~, v(x,y)=0, ~~\textrm{and}~~
     9h(x,0) = \left\{ \begin{array}{ll}
     10h_1 & \textrm{if $x < x_0$}\\
     110 & \textrm{if $x > x_0$}\\
     12\end{array} \right.
     13\end{equation}
     14where $h_1>0$.
     15
     16The analytical solution at time $t>0$ is~\cite{Ritter1892, Stoker1948, Stoker1957}
     17\begin{equation} \label{eq:h_sol_dry}
     18h(x) = \left\{ \begin{array}{ll}
     19h_1 & \textrm{if $x \leq -t \sqrt{gh_1}$}\\
     20h_R=\frac{4}{9g}(\sqrt{gh_1}-\frac{x}{2t})^2 & \textrm{if $-t \sqrt{gh_1} <x \leq 2t\sqrt{gh_1}$}\\
     210 & \textrm{if $x \geq 2t\sqrt{gh_1}$}\\
     22\end{array} \right.
     23\end{equation}
     24which is the free surface and
     25\begin{equation} \label{eq:u_sol_dry}
     26u(x) = \left\{ \begin{array}{ll}
     270 & \textrm{if $x \leq -t \sqrt{gh_1}$}\\
     28u_R=\frac{2}{3}(\sqrt{gh_1}+\frac{x}{t}) & \textrm{if $-t \sqrt{gh_1} <x \leq 2t\sqrt{gh_1}$}\\
     290 & \textrm{if $x \geq 2t\sqrt{gh_1}$}\\
     30\end{array} \right.
     31\end{equation}
     32which is the velocity.
     33
     34
    535
    636\subsection{Results}
    7 
    8 
    9 We should see excellent agreement between the analytical and numerical solutions.
     37For our test, we consider $x_0=0$ and $h_1=10$ in (\ref{eq:rdbp}).
     38The following figures show the stage, $x$-momentum, and $x$-velocity at several instants of time. We should see excellent agreement between the analytical and numerical solutions. The wet/dry interface is difficult to resolve and it usually produces large errors.
    1039
    1140\begin{figure}[h]
    1241\begin{center}
    1342\includegraphics[width=0.8\textwidth]{stage_plot.png}
     43%\label{fig:db_dry_stage}
    1444\end{center}
    1545\caption{Stage results}
     
    2050\begin{center}
    2151\includegraphics[width=0.8\textwidth]{xmom_plot.png}
     52%\label{fig:db_dry_xmom}
    2253\end{center}
    2354\caption{Xmomentum results}
     
    2859\begin{center}
    2960\includegraphics[width=0.8\textwidth]{xvel_plot.png}
     61%\label{fig:db_dry_xvel}
    3062\end{center}
    3163\caption{Xvelocity results}
Note: See TracChangeset for help on using the changeset viewer.