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 | |
---|
26 | The results in this report were produced by \anuga{} version \majorR{} |
---|
27 | from svn repository revision \minorR{} at time \timeR. |
---|
28 | The 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 | |
---|
70 | To 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 |
---|
74 | outputs. 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} |
---|
82 | One way to allow the system to run with different algorithms is to add the following |
---|
83 | into your run routines. |
---|
84 | \begin{verbatim} |
---|
85 | #-------------------------------- |
---|
86 | # Setup Default values for basic |
---|
87 | # algorithm parameters. |
---|
88 | #-------------------------------- |
---|
89 | import argparse |
---|
90 | parser = argparse.ArgumentParser(description='produce results') |
---|
91 | parser.add_argument('-cfl', type=float, default=1.0, |
---|
92 | help='cfl condition') |
---|
93 | parser.add_argument('-alg', type=str, default = "1_5", |
---|
94 | help='flow algorithm') |
---|
95 | args = parser.parse_args() |
---|
96 | |
---|
97 | cfl = args.cfl |
---|
98 | alg = args.alg |
---|
99 | \end{verbatim} |
---|
100 | |
---|
101 | Then in the \texttt{produce\_results.py} you can |
---|
102 | |
---|
103 | \end{document} |
---|