Changeset 4009
- Timestamp:
- Nov 17, 2006, 6:48:16 PM (18 years ago)
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/util.py
r4006 r4009 1023 1023 savefig('profilefig') 1024 1024 1025 stage_axis = axis([time_min/60.0, time_max/60.0, min(min_stages), max(max_stages)*1.1])1025 #stage_axis = axis([time_min/60.0, time_max/60.0, min(min_stages), max(max_stages)*1.1]) 1026 1026 #stage_axis = axis([time_min/60.0, time_max/60.0, -3.0, 3.0]) 1027 vel_axis = axis([time_min/60.0, time_max/60.0, min(max_speeds), max(max_speeds)*1.1])1028 mom_axis = axis([time_min/60.0, time_max/60.0, min(max_momentums), max(max_momentums)*1.1])1027 #vel_axis = axis([time_min/60.0, time_max/60.0, min(max_speeds), max(max_speeds)*1.1]) 1028 #mom_axis = axis([time_min/60.0, time_max/60.0, min(max_momentums), max(max_momentums)*1.1]) 1029 1029 1030 1030 cstr = ['g', 'r', 'b', 'c', 'm', 'y', 'k'] … … 1061 1061 if which_quantity == 'stage': 1062 1062 plot(model_time[0:n[j]-1,k,j], stages[0:n[j]-1,k,j], '-', c = cstr[j]) 1063 axis(stage_axis)1063 #axis(stage_axis) 1064 1064 units = 'm' 1065 1065 if which_quantity == 'momentum': 1066 1066 plot(model_time[0:n[j]-1,k,j], momenta[0:n[j]-1,k,j], '-', c = cstr[j]) 1067 axis(mom_axis)1067 #axis(mom_axis) 1068 1068 units = 'm^2 / sec' 1069 1069 if which_quantity == 'xmomentum': 1070 1070 plot(model_time[0:n[j]-1,k,j], xmom[0:n[j]-1,k,j], '-', c = cstr[j]) 1071 axis(mom_axis)1071 #axis(mom_axis) 1072 1072 units = 'm^2 / sec' 1073 1073 if which_quantity == 'ymomentum': 1074 1074 plot(model_time[0:n[j]-1,k,j], ymom[0:n[j]-1,k,j], '-', c = cstr[j]) 1075 axis(mom_axis)1075 #axis(mom_axis) 1076 1076 units = 'm^2 / sec' 1077 1077 if which_quantity == 'speed': 1078 1078 plot(model_time[0:n[j]-1,k,j], speed[0:n[j]-1,k,j], '-', c = cstr[j]) 1079 axis(vel_axis)1079 #axis(vel_axis) 1080 1080 units = 'm / sec' 1081 1081 if which_quantity == 'bearing': -
anuga_core/source/anuga/shallow_water/smf.py
r3565 r4009 338 338 339 339 am = self.a3D 340 am2 = self.a2D 340 341 wa = self.wavelength 341 342 wi = self.width … … 346 347 kappa = self.kappa 347 348 kappad = self.kappad 348 amin = self.find_min(x0,wa,kappad,kappa,dx,am) 349 print 'hello amin', amin 350 #amin = 1.0 349 #amin = self.find_min(x0,wa,kappad,kappa,dx,am) 350 amin = 1.0 351 351 352 352 #double Gaussian calculation assumes water displacement is oriented … … 365 365 for i in range(N): 366 366 try: 367 z[i] = - am/ (amin*(cosh(kappa*(yr[i]-y0)/(wi+wa)))**2) \367 z[i] = -(am/am2) / (amin*(cosh(kappa*(yr[i]-y0)/(wi+wa)))**2) \ 368 368 * (exp(-((xr[i]-x0)/wa)**2) - \ 369 369 kappad*exp(-((xr[i]-dx-x0)/wa)**2)) -
anuga_work/production/dampier_2006/export_results.py
r3955 r4009 5 5 from os import sep 6 6 7 time_dir = '200611 07_070805_run' #7 time_dir = '20061116_055135_run' # 8 8 directory = project.output_dir 9 9 name = directory + time_dir + sep + project.scenario_name -
anuga_work/production/dampier_2006/make_report_cipma.py
r3999 r4009 76 76 production_dirs = {#'20061101_053132_run': 'big event'} # parallel 77 77 #'20061101_054432_run': 'big event'} # sequential 78 '20061107_070805_run': 'Mw 9.0'} 78 #'20061107_070805_run': 'Mw 9.0', 79 '20061116_055135_run': 'Mw 9.0'} # multiple interior regions 80 #'20061116_062924_run': 'Mw 9.0'} # one interior region 79 81 80 82 is_parallel = True … … 250 252 ##fid.write(s) 251 253 ## 252 s = '\\begin{figure}[hbt] \n \centerline{ \includegraphics[width=\paperwidth]{../report_figures/%s}}' %gauge_map1 253 fid.write(s) 254 255 s = '\n \centerline{ \includegraphics[width=\paperwidth]{../report_figures/%s}}' %gauge_map2 256 fid.write(s) 257 258 s = '\n \centerline{ \includegraphics[width=\paperwidth]{../report_figures/%s}}' %gauge_map3 259 fid.write(s) 260 261 254 255 s = '\\begin{figure}[hbt] \centerline{\includegraphics[scale = 0.5]{../report_figures/%s}}' %gauge_map2 256 fid.write(s) 262 257 s = """ 263 \caption{Point locations used for Dampier study.} 264 \label{fig:points} 258 \caption{Point locations used for Dampier study; surrounding the facility. 259 See Appendix \\ref{sec:timeseries} for stage and speed results. 260 } 261 \label{fig:points2} 262 \end{figure} 263 """ 264 fid.write(s) 265 s = '\\begin{figure}[hbt] \centerline{\includegraphics[scale=0.5]{../report_figures/%s}}' %gauge_map1 266 fid.write(s) 267 s = """ 268 \caption{Point location used for Dampier study; surrounding the middle section of the pipeline. 269 See Appendix \\ref{sec:timeseries} for stage and speed results.} 270 \label{fig:points1} 271 \end{figure} 272 """ 273 fid.write(s) 274 s = '\\begin{figure}[hbt] \centerline{\includegraphics[scale=0.5]{../report_figures/%s}}' %gauge_map3 275 fid.write(s) 276 s = """ 277 \caption{Point locations used for Dampier study; section 278 of the pipeline towards the boundary of the region and other boundary gauges. 279 See Appendix \\ref{sec:timeseries} for stage and speed results.} 280 \label{fig:points3} 265 281 \end{figure} 266 282 """ -
anuga_work/production/dampier_2006/project.py
r3999 r4009 65 65 combined_final_name ='dampier_combined_elevation_final' 66 66 67 gauge_name = 'dampier_gauges.csv'68 #gauge_name = 'dampier_gauges_up2.csv'67 #gauge_name = 'dampier_gauges.csv' 68 gauge_name = 'dampier_gauges_up2.csv' 69 69 70 70 #Derive subdirectories and filenames -
anuga_work/production/dampier_2006/report/anuga_setup.tex
r3999 r4009 43 43 \begin{figure}[hbt] 44 44 45 \centerline{ \includegraphics[scale=0. 15]{../report_figures/dampier_model.jpg}}45 \centerline{ \includegraphics[scale=0.5]{../report_figures/dampier_model.jpg}} 46 46 47 47 \caption{Study area for Dampier scenario highlighting four regions of increased refinement. -
anuga_work/production/dampier_2006/report/dampier_2006_report_CIPMA.tex
r3999 r4009 72 72 \label{sec:results} 73 73 74 \begin{figure}[hbt] 75 \centerline{ \includegraphics[width=\paperwidth]{../report_figures/dampier_gauges_1.jpg}} 76 \centerline{ \includegraphics[width=\paperwidth]{../report_figures/dampier_gauges_2.jpg}} 77 \centerline{ \includegraphics[width=\paperwidth]{../report_figures/dampier_gauges_3.jpg}} 78 \caption{Point locations used for Dampier study.} 79 \label{fig:points} 74 \begin{figure}[hbt] \centerline{\includegraphics[scale = 0.5]{../report_figures/dampier_gauges_2.jpg}} 75 \caption{Point locations used for Dampier study; surrounding the facility. 76 See Appendix \ref{sec:timeseries} for stage and speed results. 77 } 78 \label{fig:points2} 79 \end{figure} 80 \begin{figure}[hbt] \centerline{\includegraphics[scale=0.5]{../report_figures/dampier_gauges_1.jpg}} 81 \caption{Point location used for Dampier study; surrounding the middle section of the pipeline. 82 See Appendix \ref{sec:timeseries} for stage and speed results.} 83 \label{fig:points1} 84 \end{figure} 85 \begin{figure}[hbt] \centerline{\includegraphics[scale=0.5]{../report_figures/dampier_gauges_3.jpg}} 86 \caption{Point locations used for Dampier study; section 87 of the pipeline towards the boundary of the region and other boundary gauges. 88 See Appendix \ref{sec:timeseries} for stage and speed results.} 89 \label{fig:points3} 80 90 \end{figure} 81 91 \input{mw9_map} … … 107 117 \section{Time series} 108 118 \label{sec:timeseries} 109 \input{latexoutput_cipma_ 420061107070805run}119 \input{latexoutput_cipma_020061116055135run} 110 120 \clearpage 111 121 112 \input{latexoutput_cipma_ 620061107070805run}122 \input{latexoutput_cipma_320061116055135run} 113 123 \clearpage 114 124 115 \input{latexoutput_cipma_7200611 07070805run}125 \input{latexoutput_cipma_720061116055135run} 116 126 \clearpage 117 127 -
anuga_work/production/dampier_2006/report/modelling_methodology.tex
r3999 r4009 60 60 In this way, the output from URS serves as an input to ANUGA. 61 61 In modelling terms, the URS output is a boundary condition for ANUGA. Further details 62 regarding the modelling requirements for this study can be found in \ref{sec:anugasetup}. 62 regarding the modelling requirements for this study can be found in 63 Appendix \ref{sec:anugasetup}. 63 64 64 65 The event chosen for this study has been determined from the probabilistic
Note: See TracChangeset
for help on using the changeset viewer.