Changeset 8682
- Timestamp:
- Jan 30, 2013, 5:39:34 PM (11 years ago)
- 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 8 8 # Import necessary modules 9 9 #------------------------------------------------------------------------------ 10 import sys11 10 import anuga 12 11 from anuga import Domain as Domain 13 from math import cos14 12 from numpy import zeros, float 15 from time import localtime, strftime, gmtime 16 #from balanced_dev import * 13 17 14 18 15 … … 21 18 # output to file 22 19 #------------------------------------------------------------------------------- 23 time = strftime('%Y%m%d_%H%M%S',localtime())20 #time = strftime('%Y%m%d_%H%M%S',localtime()) 24 21 25 22 #output_dir = 'dam_break_'+time … … 82 79 # Setup boundary conditions 83 80 #------------------------------------------------------------------------------ 84 from math import sin, pi, exp85 81 Br = anuga.Reflective_boundary(domain) # Solid reflective wall 86 82 Bt = anuga.Transmissive_boundary(domain) # Continue all values on boundary … … 89 85 # Associate boundary tags with boundary objects 90 86 domain.set_boundary({'left': Bt, 'right': Bt, 'top': Br, 'bottom': Br}) 87 88 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() 91 95 92 96 -
trunk/anuga_core/validation_tests/Tests/Analytical_exact/dam_break_dry/plot_results.py
r8601 r8682 16 16 #p2_dev=util.get_centroids(p_dev, velocity_extrapolation=True) 17 17 18 h0 = 1e-9 #1.018 h0 = 1e-9 19 19 h1 = 10.0 20 20 -
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} 2 2 3 3 \usepackage{graphicx} … … 17 17 18 18 \title{Automated Report on the Performance of \anuga{} on Dry Dam Break} 19 %\maketitle19 \maketitle 20 20 %\tableofcontents 21 21 22 22 %====================== 23 \chapter{Dry Dam Break}23 %\chapter{Dry Dam Break} 24 24 %====================== 25 25 26 26 \input{results} 27 27 28 \section{Parameters used for this simulation} 29 30 \input{parameters} 28 31 29 32 \end{document} -
trunk/anuga_core/validation_tests/Tests/Analytical_exact/dam_break_dry/results.tex
r8601 r8682 11 11 \begin{figure}[h] 12 12 \begin{center} 13 \includegraphics[width=0. 9\textwidth]{stage_plot.png}13 \includegraphics[width=0.8\textwidth]{stage_plot.png} 14 14 \end{center} 15 15 \caption{Stage results} … … 19 19 \begin{figure}[h] 20 20 \begin{center} 21 \includegraphics[width=0. 9\textwidth]{xmom_plot.png}21 \includegraphics[width=0.8\textwidth]{xmom_plot.png} 22 22 \end{center} 23 23 \caption{Xmomentum results} … … 27 27 \begin{figure}[h] 28 28 \begin{center} 29 \includegraphics[width=0. 9\textwidth]{xvel_plot.png}29 \includegraphics[width=0.8\textwidth]{xvel_plot.png} 30 30 \end{center} 31 31 \caption{Xvelocity results} -
trunk/anuga_core/validation_tests/Tests/Analytical_exact/dam_break_wet
-
Property
svn:ignore
set to
.deps
-
Property
svn:ignore
set to
-
trunk/anuga_core/validation_tests/parameters.py
r8681 r8682 8 8 9 9 10 alg = ' 1_5'10 alg = '2_0' 11 11 cfl = 1.0 12 12
Note: See TracChangeset
for help on using the changeset viewer.