Changeset 3716
- Timestamp:
- Oct 9, 2006, 4:53:38 PM (18 years ago)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/okushiri_2005/run_okushiri.py
r3707 r3716 39 39 domain = Domain(points, vertices, boundary) 40 40 41 domain.set_name(' lwru2')41 domain.set_name('okushiri_old_limiters') 42 42 domain.set_default_order(2) 43 43 domain.set_minimum_storable_height(0.001) 44 45 # Set old (pre Sep 2006) defaults for limiters 46 domain.beta_w = 0.9 47 domain.beta_w_dry = 0.9 48 domain.beta_uh = 0.9 49 domain.beta_uh_dry = 0.9 50 domain.beta_vh = 0.9 51 domain.beta_vh_dry = 0.9 52 44 53 domain.check_integrity() 45 54 print domain.statistics() -
anuga_work/production/karratha_2006/project.py
r3669 r3716 74 74 75 75 76 bounding_polygon, zone = convert_points_from_latlon_to_utm([p0, p1, p2, p3, p4, p5, p6, p7, p8]) 76 bounding_polygon, zone =\ 77 convert_points_from_latlon_to_utm([p0, p1, p2, p3, p4, 78 p5, p6, p7, p8]) 77 79 refzone = zone 78 80 79 81 80 #Interior regions - NOT CONVERTED YET TO UTM82 #Interior regions 81 83 karratha_south = degminsec2decimal_degrees(-20,44,0) 82 84 karratha_north = degminsec2decimal_degrees(-20,42,0) … … 89 91 k3 = [karratha_north, karratha_west] 90 92 91 karratha_polygon = [k0, k1, k2, k3] 93 karratha_polygon, zone = convert_points_from_latlon_to_utm([k0, k1, k2, k3]) 94 assert zone == refzone 92 95 93 96 … … 103 106 d3 = [dampier_north, dampier_west] 104 107 105 dampier_polygon = [d0, d1, d2, d3] 108 dampier_polygon, zone = convert_points_from_latlon_to_utm([d0, d1, d2, d3]) 109 assert zone == refzone 106 110 107 111 … … 117 121 d3 = [refinery_north, refinery_west] 118 122 119 refinery_polygon = [d0, d1, d2, d3] 123 refinery_polygon, zone = convert_points_from_latlon_to_utm([d0, d1, d2, d3]) 124 assert zone == refzone 120 125 121 126 … … 133 138 d3 = [point_north, point_west] 134 139 135 point_polygon = [d0, d1, d2, d3] 140 point_polygon, zone = convert_points_from_latlon_to_utm([d0, d1, d2, d3]) 141 assert zone == refzone 136 142 137 143 … … 146 152 degminsec2decimal_degrees(116,46,17)] 147 153 148 neil1_polygon = [neil1_point1, neil1_point2, neil1_point3, neil1_point4] 154 neil1_polygon, zone = convert_points_from_latlon_to_utm([neil1_point1, 155 neil1_point2, 156 neil1_point3, 157 neil1_point4]) 158 assert zone == refzone 159 149 160 150 161 … … 159 170 degminsec2decimal_degrees(116,43,9)] 160 171 161 neil2_polygon = [neil2_point1, neil2_point2, neil2_point3, neil2_point4] 172 neil2_polygon, zone = convert_points_from_latlon_to_utm([neil2_point1, 173 neil2_point2, 174 neil2_point3, 175 neil2_point4]) 176 assert zone == refzone 177 162 178 163 179 … … 174 190 degminsec2decimal_degrees(116,46,17)] 175 191 176 wb_polygon = [wb_point1, wb_point2, wb_point3, wb_point4] 192 wb_polygon, zone = convert_points_from_latlon_to_utm([wb_point1, wb_point2, 193 wb_point3, wb_point4]) 194 assert zone == refzone 195 177 196 178 197 … … 189 208 degminsec2decimal_degrees(116,42,50)] 190 209 191 lwb_polygon = [lwb_point1, lwb_point2, lwb_point3, lwb_point4] 192 193 194 210 lwb_polygon, zone = convert_points_from_latlon_to_utm([lwb_point1, lwb_point2, 211 lwb_point3, lwb_point4]) 212 213 assert zone == refzone 214 215 216 217 -
anuga_work/production/karratha_2006/run_karratha.py
r3713 r3716 67 67 68 68 69 interior_regions = [#[project.karratha_polygon, 25000], 70 #[project.dampier_polygon, 2000], 71 #[project.refinery_polygon, 2000], 72 #[project.point_polygon, 2000]] 73 [project.neil1_polygon, 4000], 74 [project.neil2_polygon, 64000]] 75 76 77 69 78 print 'start create mesh from regions' 70 from caching import cache71 79 meshname = project.meshname + '.msh' 72 _ = cache(create_mesh_from_regions, 73 project.bounding_polygon, 74 {'boundary_tags': {'back': [7, 8], 'side': [0, 6], 75 'ocean': [1, 2, 3, 4, 5]}, 76 'maximum_triangle_area': 200000, 77 'filename': meshname}, 78 verbose = True, 79 evaluate = False) 80 80 create_mesh_from_regions(project.bounding_polygon, 81 boundary_tags={'back': [7, 8], 'side': [0, 6], 82 'ocean': [1, 2, 3, 4, 5]}, 83 maximum_triangle_area=200000, 84 filename=meshname, 85 use_cache=True, 86 verbose=True) 81 87 82 88 #------------------------------------------------------------------------- 83 89 # Setup computational domain 84 90 #------------------------------------------------------------------------- 85 domain = Domain(meshname, use_cache = True, verbose =True)91 domain = Domain(meshname, use_cache=True, verbose=True) 86 92 print domain.statistics() 87 93 domain.set_name(project.basename)
Note: See TracChangeset
for help on using the changeset viewer.