Changeset 8682


Ignore:
Timestamp:
Jan 30, 2013, 5:39:34 PM (11 years ago)
Author:
steve
Message:

Playing with dry dam break case

Location:
trunk/anuga_core/validation_tests
Files:
6 edited

Legend:

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

    r8681 r8682  
    88# Import necessary modules
    99#------------------------------------------------------------------------------
    10 import sys
    1110import anuga
    1211from anuga import Domain as Domain
    13 from math import cos
    1412from numpy import zeros, float
    15 from time import localtime, strftime, gmtime
    16 #from balanced_dev import *
     13
    1714
    1815
     
    2118# output to file
    2219#-------------------------------------------------------------------------------
    23 time = strftime('%Y%m%d_%H%M%S',localtime())
     20#time = strftime('%Y%m%d_%H%M%S',localtime())
    2421
    2522#output_dir = 'dam_break_'+time
     
    8279# Setup boundary conditions
    8380#------------------------------------------------------------------------------
    84 from math import sin, pi, exp
    8581Br = anuga.Reflective_boundary(domain)      # Solid reflective wall
    8682Bt = anuga.Transmissive_boundary(domain)    # Continue all values on boundary
     
    8985# Associate boundary tags with boundary objects
    9086domain.set_boundary({'left': Bt, 'right': Bt, 'top': Br, 'bottom': Br})
     87
     88
     89parameter_file=open('parameters.tex', 'w')
     90parameter_file.write('\\begin{verbatim}\n')
     91from pprint import pprint
     92pprint(domain.get_algorithm_parameters(),parameter_file,indent=4)
     93parameter_file.write('\\end{verbatim}\n')
     94parameter_file.close()
    9195
    9296
  • trunk/anuga_core/validation_tests/Tests/Analytical_exact/dam_break_dry/plot_results.py

    r8601 r8682  
    1616#p2_dev=util.get_centroids(p_dev, velocity_extrapolation=True)
    1717
    18 h0 = 1e-9#1.0
     18h0 = 1e-9
    1919h1 = 10.0
    2020
  • trunk/anuga_core/validation_tests/Tests/Analytical_exact/dam_break_dry/report.tex

    r8681 r8682  
    1 \documentclass[11pt,a4paper]{report}
     1\documentclass[11pt,a4paper]{article}
    22
    33\usepackage{graphicx}
     
    1717
    1818\title{Automated Report on the Performance of \anuga{} on Dry Dam Break}
    19 %\maketitle
     19\maketitle
    2020%\tableofcontents
    2121
    2222%======================
    23 \chapter{Dry Dam Break}
     23%\chapter{Dry Dam Break}
    2424%======================
    2525
    2626\input{results}
    2727
     28\section{Parameters used for this simulation}
     29
     30\input{parameters}
    2831
    2932\end{document}
  • trunk/anuga_core/validation_tests/Tests/Analytical_exact/dam_break_dry/results.tex

    r8601 r8682  
    1111\begin{figure}[h]
    1212\begin{center}
    13 \includegraphics[width=0.9\textwidth]{stage_plot.png}
     13\includegraphics[width=0.8\textwidth]{stage_plot.png}
    1414\end{center}
    1515\caption{Stage results}
     
    1919\begin{figure}[h]
    2020\begin{center}
    21 \includegraphics[width=0.9\textwidth]{xmom_plot.png}
     21\includegraphics[width=0.8\textwidth]{xmom_plot.png}
    2222\end{center}
    2323\caption{Xmomentum results}
     
    2727\begin{figure}[h]
    2828\begin{center}
    29 \includegraphics[width=0.9\textwidth]{xvel_plot.png}
     29\includegraphics[width=0.8\textwidth]{xvel_plot.png}
    3030\end{center}
    3131\caption{Xvelocity results}
  • trunk/anuga_core/validation_tests/Tests/Analytical_exact/dam_break_wet

    • Property svn:ignore set to
      .deps
  • trunk/anuga_core/validation_tests/parameters.py

    r8681 r8682  
    88
    99
    10 alg = '1_5'
     10alg = '2_0'
    1111cfl = 1.0
    1212
Note: See TracChangeset for help on using the changeset viewer.