Changeset 8899
- Timestamp:
- Jun 11, 2013, 5:25:13 PM (11 years ago)
- Location:
- trunk/anuga_core/source/anuga_validation_tests
- Files:
-
- 38 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/MacDonald_short_channel
-
Property
svn:ignore
set to
.deps
-
Property
svn:ignore
set to
-
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/MacDonald_short_channel/produce_report.py
r8783 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/avalanche_dry/produce_report.py
r8767 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/avalanche_wet/produce_report.py
r8767 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/carrier_greenspan_periodic/produce_report.py
r8768 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/carrier_greenspan_transient
-
Property
svn:ignore
set to
.deps
-
Property
svn:ignore
set to
-
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/carrier_greenspan_transient/produce_report.py
r8773 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/dam_break_dry/produce_report.py
r8755 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/dam_break_wet/report.tex
r8743 r8899 20 20 %\tableofcontents 21 21 22 22 23 %====================== 23 24 %\chapter{Wet Dam Break} -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/dam_break_wet/results.tex
r8801 r8899 2 2 \section{Dam break on wet areas} 3 3 4 The dam break problem on wet areas was solved analytically by Stoker~\cite{Stoker1948, Stoker1957}. The analytical solution exhibits a rarefaction and involves a shock. Generally this problem is easier to solve numerically than the dry dam break (the dam break on a dry area). 4 The dam break problem on wet areas was solved analytically by 5 Stoker~\cite{Stoker1948, Stoker1957}. 6 The analytical solution exhibits a rarefaction and involves a shock. Generally this problem is easier to solve numerically than the dry dam break (the dam break on a dry area). 5 7 6 8 The initial condition is … … 14 16 where $h_1>h_0>0$. The topography is a horizontal flat bed. 15 17 16 The analytical solution~\cite{Stoker1948, Stoker1957} to the wet dam break problem is 18 The analytical solution~\cite{Stoker1948, Stoker1957} 19 to the wet dam break problem is 17 20 \begin{equation} 18 21 h(x) = \left\{ \begin{array}{ll} -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/deep_wave/produce_report.py
r8776 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/lake_at_rest_immersed_bump/produce_report.py
r8777 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/landslide_tsunami/plot_results.py
r8887 r8899 28 28 tmp=abs(p2.time-t) 29 29 p2_ind=tmp.argmin() 30 pyplot.plot(p2.x[v], p2.stage[p2_ind,v], ' -',label='Numerical')30 pyplot.plot(p2.x[v], p2.stage[p2_ind,v], 'o',label='Numerical') 31 31 if(i==0): 32 32 pyplot.plot(t160[:,0], t160[:,1],'-', color='red', label='Analytical') … … 43 43 pyplot.clf() 44 44 45 pyplot.plot(p2.x[v], p2.xvel[p2_ind,v], ' -', label='Numerical')45 pyplot.plot(p2.x[v], p2.xvel[p2_ind,v], 'o', label='Numerical') 46 46 if(i==0): 47 47 pyplot.plot(t160[:,0], t160[:,2],'-',color='red', label='Analytical') … … 62 62 # Hacks to identify the location of the shoreline 63 63 shoreline_depth_thresh1=0.01 64 shoreline_depth_thresh2= 1.064 shoreline_depth_thresh2=4.0 65 65 66 66 for i in range(len(model_shore_x)): 67 67 # Compute index of shoreline 68 68 vtmp = p2.stage[i,:]>p2.elev+shoreline_depth_thresh1 69 69 70 70 model_shore_x[i]=p2.x[vtmp].min() 71 71 … … 74 74 vtmp2= (p2.stage[i,:]>p2.elev+shoreline_depth_thresh1)*\ 75 75 (p2.stage[i,:]<p2.elev+shoreline_depth_thresh2) 76 77 #print 'vtmp2 ', numpy.any(vtmp2) 76 78 mloc=abs(p2.xvel[i,vtmp2]).argmax() 77 79 model_shore_u[i]=p2.xvel[i,vtmp2][mloc] 78 80 79 pyplot.plot(p2.time, model_shore_x-200.,' -o', label='Numerical')81 pyplot.plot(p2.time, model_shore_x-200.,'o', label='Numerical') 80 82 pyplot.plot(shoreline[:,0], shoreline[:,1],'-', color='red', label='Analytical') 81 83 pyplot.legend(loc='best') … … 85 87 # Can plot velocity as well 86 88 pyplot.clf() 87 pyplot.plot(p2.time, model_shore_u,' -o',label='Numerical')89 pyplot.plot(p2.time, model_shore_u,'o',label='Numerical') 88 90 pyplot.plot(shoreline[:,0], shoreline[:,2],'-',color='red',label='Analytical') 89 91 pyplot.title('Shoreline velocity: Peak speed where depth >'\ -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/landslide_tsunami/produce_results.py
r8898 r8899 10 10 def build(): 11 11 run_validation_script('runup.py') 12 run_validation_script('plot me.py')12 run_validation_script('plot_results.py') 13 13 run('python', 'typeset_report.py') 14 14 -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/parabolic_basin/produce_report.py
r8788 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/paraboloid_basin/produce_report.py
r8790 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/river_at_rest_varying_topo_width
-
Property
svn:ignore
set to
.deps
-
Property
svn:ignore
set to
-
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/rundown_mild_slope/produce_report.py
r8792 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/runup_on_beach/produce_report.py
r8795 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/runup_on_sinusoid_beach/produce_report.py
r8796 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/subcritical_over_bump
-
Property
svn:ignore
set to
.deps
-
Property
svn:ignore
set to
-
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/subcritical_over_bump/produce_report.py
r8797 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/transcritical_with_shock/produce_report.py
r8799 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/transcritical_without_shock/produce_report.py
r8800 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/trapezoidal_channel/numerical_channel_floodplain.py
r8801 r8899 16 16 # Useful parameters for controlling this case 17 17 #------------------------------------------------------------------------------ 18 floodplain_length = 1000.0 # Model domain length18 floodplain_length = 800.0 # Model domain length 19 19 floodplain_width = 14.0 # Model domain width 20 20 floodplain_slope = 1./300. … … 24 24 bankwidth = 2. # Width of the bank regions -- note that these protrude into the channel 25 25 man_n=0.03 # Manning's n 26 l0 = 1.000 # Length scale associated with triangle side length in channel (min_triangle area = 0.5*l0^2)26 l0 = 2.00 # Length scale associated with triangle side length in channel (min_triangle area = 0.5*l0^2) 27 27 28 28 assert chan_width < floodplain_width, \ … … 175 175 # Evolve system through time 176 176 #------------------------------------------------------------------------------ 177 for t in domain.evolve(yieldstep= 2.0, finaltime=1200.0):177 for t in domain.evolve(yieldstep=10.0, finaltime=1200.0): 178 178 print domain.timestepping_statistics() 179 179 xx=domain.quantities['ymomentum'].centroid_values -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/trapezoidal_channel/plot_results.py
r8646 r8899 1 1 from anuga.utilities import plot_utils as util 2 2 from matplotlib import pyplot as pyplot 3 import numpy 4 3 5 4 6 # Time-index to plot outputs from 5 index= 6007 index=120 6 8 p2 = util.get_output('channel_floodplain.sww') 7 9 p=util.get_centroids(p2, velocity_extrapolation=True) 8 10 v = (p.x>6.0)*(p.x<8.0) 9 11 12 print numpy.any(v) 10 13 # Numerical results along a central channel 'slice' 11 14 V1 = p.stage[index,v] - p.elev[v] … … 68 71 pyplot.clf() 69 72 v1 = (p.y<105.0)&(p.y>95.0) 73 74 70 75 analytical_stage = min(p.elev[v1]) + dc_analytical 71 76 analytic_vel = ( (1./300.)*(analytical_stage-p.elev[v1])**(4./3.)*(1./0.03)**2.)**0.5 … … 94 99 pyplot.clf() 95 100 v1 = (p.y<505.0)&(p.y>495.0) 101 102 103 96 104 analytical_stage = min(p.elev[v1]) + dc_analytical 97 105 analytic_vel = ( (1./300.)*(analytical_stage-p.elev[v1])**(4./3.)*(1./0.03)**2.)**0.5 … … 119 127 # Plot velocity over the cross-section 120 128 pyplot.clf() 121 v1 = (p.y<905.0)&(p.y>895.0) 129 v1 = (p.y<705.0)&(p.y>695.0) 130 131 132 133 122 134 analytical_stage = min(p.elev[v1]) + dc_analytical 123 135 analytic_vel = ( (1./300.)*(analytical_stage-p.elev[v1])**(4./3.)*(1./0.03)**2.)**0.5 … … 136 148 pyplot.plot(p.x[v1],p.elev[v1],'o', label='bed elevation') 137 149 pyplot.legend(loc=10) 138 pyplot.title('Velocity (analytical and numerical) and Stage:' + '\n' +'Downstream channel regions ( 895 to 905m)' +'\n')150 pyplot.title('Velocity (analytical and numerical) and Stage:' + '\n' +'Downstream channel regions (695 to 705m)' +'\n') 139 151 pyplot.xlabel('Cross-channel distance (m)') 140 152 pyplot.ylabel('Generic scale (m or m/s)') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/trapezoidal_channel/produce_report.py
r8801 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Analytical_exact/trapezoidal_channel/report.tex
r8801 r8899 22 22 23 23 %====================== 24 %\chapter{ Dry Dam Break}24 %\chapter{Trapezoidal channel steady uniform flow case} 25 25 %====================== 26 26 -
trunk/anuga_core/source/anuga_validation_tests/Behaviour_only/lid_driven_cavity
-
Property
svn:ignore
set to
.deps
-
Property
svn:ignore
set to
-
trunk/anuga_core/source/anuga_validation_tests/Behaviour_only/lid_driven_cavity/numerical_lid_driven_cavity.py
r8803 r8899 13 13 #Setup computational domain 14 14 #--------- 15 domain = anuga.rectangular_cross_domain( 20,20, len1=1., len2=1.)15 domain = anuga.rectangular_cross_domain(15,15, len1=1., len2=1.) 16 16 17 17 … … 24 24 domain.set_flow_algorithm(alg) 25 25 domain.set_CFL(cfl) 26 26 27 domain.set_name('dimensional_lid_driven') # Output to file runup.sww 27 28 domain.set_datadir('.') # Use current folder -
trunk/anuga_core/source/anuga_validation_tests/Behaviour_only/lid_driven_cavity/produce_report.py
r8803 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Case_studies/Okushiri/produce_report.py
r8789 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/Experimental_data/dam_break_Yeh_Petroff/produce_report.py
r8804 r8899 13 13 14 14 15 os.system('pdflatex report.tex')15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 16 os.system('bibtex report') 17 os.system('pdflatex report.tex')17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 18 os.system('bibtex report') 19 os.system('pdflatex report.tex')19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 20 20 os.system('bibtex report') 21 os.system('pdflatex report.tex')21 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') -
trunk/anuga_core/source/anuga_validation_tests/parameters.py
r8825 r8899 9 9 10 10 11 alg = '1_5' 12 cfl = 0.9 11 try: 12 from anuga_validation_tests.local_parameters import * 13 except: 14 alg = '1_5' 15 cfl = 1.0 13 16 14 17 18 19 20 -
trunk/anuga_core/source/anuga_validation_tests/produce_results.py
r8825 r8899 51 51 print Upper_dirs 52 52 53 time_total = 0.0 53 54 for dir in Upper_dirs: 54 55 55 56 os.chdir(dir) 56 57 57 print indent + dir 58 print 72*'=' 59 print 'Directory: ' + dir 60 print 72*'=' 61 58 62 #print 'Changing to', os.getcwd() 59 63 dir = '.' … … 64 68 pass 65 69 #print Lower_dirs 70 71 72 73 66 74 for l_dir in Lower_dirs: 67 75 os.chdir(l_dir) 68 76 #print os.getcwd() 69 print 2 * indent + l_dir 77 print 50*'-' 78 print 'Subdirectory: ' + l_dir 79 print 50*'-' 70 80 try: 81 t0 = time.time() 71 82 cmd = 'python produce_results.py' 72 print 3* indent + 'Running: ' + cmd83 print 2 * indent + 'Running: ' + cmd 73 84 os.system(cmd) 85 t1 = time.time() - t0 86 time_total += t1 87 print 2 * indent + 'That took ' + str(t1) + ' secs' 74 88 except: 75 print 3* indent + 'Failed running produce_results in ' + os.getcwd()89 print 2 * indent + 'Failed running produce_results in ' + os.getcwd() 76 90 pass 77 91 … … 83 97 84 98 os.chdir(buildroot) 99 100 print 72*'=' 101 print 'That took ' + str(time_total) + ' secs' 102 print 72*'=' 103 85 104 #---------------------------------- 86 105 # Now it is ok to create the latex … … 100 119 import os 101 120 102 os.system('python produce_report.py')103 cmd = 'pdflatex -shell-escape -interaction=batchmode report.tex'121 os.system('python typeset_report.py') 122 #cmd = 'pdflatex -shell-escape -interaction=batchmode report.tex' 104 123 #print cmd 105 124 #import subprocess -
trunk/anuga_core/source/anuga_validation_tests/report.tex
r8896 r8899 109 109 110 110 \section{Algorithm Parameters} 111 Note that parameters can be communicated from the \verb|parameters.py| 112 file in the \verb|validation_tests| directory. 111 Note that parameters can be communicated from the \verb|local_parameters.py| 112 file in the \verb|anuga_validation_tests| directory. If there is no file 113 \verb|local_parameters.py| then the parameters are taken from the 114 \verb|parameters.py| file. You should not change this file. 113 115 114 116 In particular the … … 119 121 You can pass though the parameters straight from the \verb|parameters.py| file as follows 120 122 \begin{verbatim} 121 from validation_tests.parameters import alg122 from validation_tests.parameters import cfl123 from anuga_validation_tests.parameters import alg 124 from anuga_validation_tests.parameters import cfl 123 125 \end{verbatim} 124 126 -
trunk/anuga_core/source/anuga_validation_tests/saved_parameters.tex
r8825 r8899 1 1 \newcommand{\cfl}{\UScore{0.9}} 2 \newcommand{\alg}{\UScore{ 1_5}}2 \newcommand{\alg}{\UScore{tsunami}} 3 3 \newcommand{\majorR}{\UScore{1.3.0-beta}} 4 \newcommand{\minorR}{\UScore{88 21}}5 \newcommand{\timeR}{{ Wed Apr 10 18:02:172013}}4 \newcommand{\minorR}{\UScore{8897}} 5 \newcommand{\timeR}{{Tue Jun 11 15:51:09 2013}} -
trunk/anuga_core/source/anuga_validation_tests/typeset_report.py
r8897 r8899 14 14 os.system('bibtex report') 15 15 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 os.system('bibtex report') 17 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 18 os.system('bibtex report') 19 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 16 -
trunk/anuga_core/source/anuga_validation_tests/utilities/produce_report.py
r8825 r8899 9 9 10 10 11 12 11 13 def produce_report(): 12 import os13 14 14 os.system('pdflatex -shell-escape -interaction=batchmode report.tex')15 os.system('bibtex report') 16 os.system('pdflatex -shell-escape -interaction=batchmodereport.tex')17 os.system('bibtexreport')18 os.system('pdflatex -shell-escape -interaction=batchmodereport.tex')19 os.system('bibtex report') 20 os.system('pdflatex -shell-escape -interaction=batchmode report.tex') 15 from fabricate import run 16 17 run('pdflatex', '-shell-escape', '-interaction=batchmode', 'report.tex') 18 run('bibtex', 'report') 19 run('pdflatex', '-shell-escape', '-interaction=batchmode', 'report.tex') 20 21
Note: See TracChangeset
for help on using the changeset viewer.