source: trunk/anuga_core/validation_tests/report.tex @ 8468

Last change on this file since 8468 was 8468, checked in by steve, 13 years ago

committing this weeks work

File size: 2.6 KB
Line 
1\documentclass[11pt,a4paper]{report}
2
3\usepackage{graphicx}
4\usepackage{epstopdf}
5\usepackage[section]{placeins} % 'one-shot' command to nicely place figures
6\usepackage{datatool}
7\usepackage{url}
8\DeclareUrlCommand\UScore{\urlstyle{rm}}
9
10
11\input{local-defs}
12\input{saved_parameters}
13
14%=========================================
15\begin{document} 
16%=========================================
17
18\title{Automated Report on the Performance of \anuga ~on Various Test Problems}
19\maketitle
20\tableofcontents
21
22%======================
23\chapter{Introduction}
24%======================
25
26The results in this report were produced by \anuga{} version \majorR{} 
27from svn repository revision \minorR{} at time \timeR.
28The flow algorithm was \alg{} and cfl condition \cfl.
29
30%======================
31\chapter{Simple Tests}
32%======================
33
34\inputresults{Tests/Simple/dam_break}
35
36\inputresults{Tests/Simple/runup1}
37
38\inputresults{Tests/Simple/runup_sinusoid}
39
40\inputresults{Tests/Simple/trapezoidal_channel}
41
42\inputresults{Tests/Simple/parabolic_basin_1D}
43
44\inputresults{Tests/Simple/deep_wave}
45
46\inputresults{Tests/Simple/steep_slope}
47
48%======================
49\chapter{Experimental Tests}
50%======================
51
52%\inputresults{Tests/Experimental/Isolated_Building}
53
54\inputresults{Tests/Experimental/Okushiri}
55
56%======================
57%\chapter{Real World Tests}
58%======================
59
60%\inputresults{Tests/Real_World/Patong}
61
62%======================
63\appendix
64%======================
65%======================
66\chapter{Adding New Tests}
67%======================
68
69
70To setup a new validation test, create a test directory under the
71\textsc{Tests} directory. In that directory there should be the test code, a
72\TeX{} file \texttt{results.tex} and a python script
73\texttt{produce\_results.py}, which runs the simulation and produces the
74outputs. In this \TeX{} file, \texttt{report.tex}, add a line
75\begin{verbatim}
76\inputresults{Tests/Directory/Name}
77\end{verbatim}
78
79
80
81\section{Specifiying different algorithm}
82One  way to allow the system to run with different algorithms is to add the following
83into your run routines.
84\begin{verbatim}
85#--------------------------------
86# Setup Default values for basic
87# algorithm parameters.
88#--------------------------------
89import argparse
90parser = argparse.ArgumentParser(description='produce results')
91parser.add_argument('-cfl', type=float, default=1.0,
92                   help='cfl condition')
93parser.add_argument('-alg', type=str, default = "1_5",
94                   help='flow algorithm')
95args = parser.parse_args()
96
97cfl = args.cfl
98alg = args.alg
99\end{verbatim}
100
101Then in the \texttt{produce\_results.py} you can
102
103\end{document}
Note: See TracBrowser for help on using the repository browser.