Changeset 4359
- Timestamp:
- Apr 4, 2007, 12:44:33 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/perth_2006/run_perth.py
r4152 r4359 53 53 54 54 tide = project.tide 55 55 print 'hello' 56 56 # creates copy of code in output dir 57 57 if myid == 0: … … 63 63 print 'min triangles', project.trigs_min, 64 64 print 'Note: This is generally about 20% less than the final amount' 65 65 import sys 66 sys.exit() 66 67 #-------------------------------------------------------------------------- 67 68 # Create the triangular mesh based on overall clipping polygon with a … … 72 73 73 74 if myid == 0: 74 75 print 'start create mesh from regions'76 # interior_regions = [[project.poly_pos20_neg20, project.res_pos20_neg20],77 # [project.poly_cbd, project.res_cbd],78 # [project.poly_penguin, project.res_penguin]]79 # [project.poly_interior, 1000]]80 81 # from anuga.utilities.polygon import plot_polygons82 # figname = project.output_run_time_dir + 'poly_pic'83 # plot_polygons([project.poly_coast,project.poly_pipeline,project.poly_facility,84 # project.bounding_polygon],85 # figname,86 # verbose = True)87 # import sys; sys.exit()88 75 89 76 print 'start create mesh from regions' … … 108 95 domain = Domain(meshes_dir_name, use_cache=True, verbose=True) 109 96 print domain.statistics() 110 '''111 print 'starting to create boundary conditions'112 boundaries_in_dir_name = project.boundaries_in_dir_name113 114 from anuga.shallow_water.data_manager import urs2sww, ferret2sww115 116 # put above distribute117 print 'boundary file is: ',boundaries_dir_name118 from caching import cache119 if myid == 0:120 cache(ferret2sww,121 (boundaries_in_dir_name,122 # boundaries_time_dir_name),123 boundaries_dir_name),124 {'verbose': True,125 'minlat': project.south_boundary,126 'maxlat': project.north_boundary,127 'minlon': project.west_boundary,128 'maxlon': project.east_boundary,129 # 'minlat': project.south,130 # 'maxlat': project.north,131 # 'minlon': project.west,132 # 'maxlon': project.east,133 'mint': 0, 'maxt': 35100,134 'origin': domain.geo_reference.get_origin(),135 'mean_stage': project.tide,136 # 'zscale': 1, #Enhance tsunami137 'fail_on_NaN': False},138 verbose = True,139 )140 barrier()141 '''142 97 143 98 #------------------------------------------------------------------------- … … 154 109 155 110 domain.set_quantity('elevation', 156 #filename = project.combined_dir_name+'.txt',157 filename = project.combined_smaller_name_dir+'.txt',111 filename = project.combined_dir_name+'.txt', 112 # filename = project.combined_smaller_name_dir+'.txt', 158 113 use_cache = True, 159 114 verbose = True, … … 176 131 domain.set_datadir(project.output_run_time_dir) 177 132 domain.set_default_order(2) # Apply second order scheme 178 domain.set_minimum_storable_height(0.01) # Don't store anything less than 1cm 133 domain.set_minimum_storable_height(0.001) # Don't store anything less than 0.1cm 134 #domain.set_minimum_storable_height(0.01) # Don't store anything less than 1cm 135 #domain.set_minimum_storable_height(0.1) # Don't store anything less than 10cm 179 136 domain.set_store_vertices_uniquely(False) 180 137 domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum'])
Note: See TracChangeset
for help on using the changeset viewer.