Changeset 5653
- Timestamp:
- Aug 13, 2008, 5:35:07 PM (17 years ago)
- Location:
- anuga_work/development/gong_2008
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/gong_2008/run_gong_slide.py
r5648 r5653 37 37 #------------------------------------------------------------------------------- 38 38 39 # creates copy of code in output dir40 copy_code_files(project_slide.outputtimedir,__file__,dirname(project_slide.__file__)+sep+ project_slide.__name__+'.py' )41 myid = 042 numprocs = 143 start_screen_catcher(project_slide.outputtimedir, myid, numprocs)44 45 print 'USER: ', project_slide.user46 39 47 40 #------------------------------------------------------------------------------- … … 50 43 # Convert ASC 2 DEM 2 PTS using source data and store result in source data 51 44 #------------------------------------------------------------------------------- 52 45 """ 53 46 # filenames 54 47 on_offshore10_dem_name = project_slide.on_offshore10_dem_name 55 48 nsw_dem_name = project_slide.nsw_dem_name 56 meshname = project_slide.meshname+'.msh' 49 57 50 58 51 # creates DEM from asc data … … 88 81 G.export_points_file(project_slide.combined_dem_name + '.pts') 89 82 #G.export_points_file(project_slide.combined_dem_name + '.xya') 90 83 """ 91 84 #---------------------------------------------------------------------------- 92 85 # Create the triangular mesh based on overall clipping polygon with a tagged … … 96 89 97 90 from anuga.pmesh.mesh_interface import create_mesh_from_regions 98 remainder_res = 100000 99 local_res = 25000 100 gong_res = 500 91 meshname = project_slide.meshname+'.msh' 92 remainder_res = 100000*100 93 local_res = 25000*1000 94 gong_res = 500*1000 101 95 interior_regions = [[project_slide.poly_local, local_res], 102 96 [project_slide.poly_gong, gong_res], … … 171 165 thickness = t0 172 166 alpha = a0 173 gamma0 = 1.8 167 gamma0 = 1.85 174 168 gamma = gamma0 175 169 m0 = 1. … … 190 184 191 185 # scaling for Double Gaussian function 192 scale0 = 100. 186 scale0 = 100. # Bridgette's fiddle 193 187 scale = scale0 + 10. 194 188 195 for i in range(1 0):189 for i in range(1): 196 190 scale = scale - 10. 197 mydir = 'testing_' + str(int(scale))191 mydir = project_slide.outputdir+'testing_' + str(int(scale)) 198 192 print 'dir_comment', mydir 199 193 start_screen_catcher(mydir, 0, 1) 194 # creates copy of code in output dir 195 copy_code_files(mydir,__file__,dirname(project_slide.__file__)+sep+ project_slide.__name__+'.py' ) 196 start_screen_catcher(mydir, 0, 1) 197 198 print 'USER: ', project_slide.user 199 200 200 tsunami_source = slide_tsunami(length=length, 201 201 width=width, … … 214 214 kappad=kappad, 215 215 scale=scale, 216 domain=domain) 216 domain=domain, 217 verbose=True) 217 218 218 219 print 'hello', scale, tsunami_source.wavelength, tsunami_source.a3D 219 220 220 221 #------------------------------------------------------------------------------- 221 222 # Setup initial conditions … … 242 243 243 244 print 'finished' 245
Note: See TracChangeset
for help on using the changeset viewer.