Changeset 3825
- Timestamp:
- Oct 18, 2006, 5:51:41 PM (18 years ago)
- Location:
- anuga_validation/automated_validation_tests/okushiri_tank_validation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/okushiri_tank_validation/create_okushiri.py
r3799 r3825 82 82 #-------------------------------------------------------------------------- 83 83 84 base_resolution = 1 84 base_resolution = 10 85 85 86 86 # Basic geometry … … 137 137 138 138 interior_regions = [[gulleys, 0.00002*base_resolution], 139 [island, 0.000 3*base_resolution]]139 [island, 0.00007*base_resolution]] 140 140 141 141 … … 149 149 boundary_tags={'wall': [0, 1, 2, 4, 5], 150 150 'wave': [3]}, 151 maximum_triangle_area=0.1 ,151 maximum_triangle_area=0.1*base_resolution, 152 152 interior_regions=interior_regions, 153 filename=project.mesh_filename, 153 154 use_cache=True, 154 155 verbose=True) 155 156 156 m.generateMesh('pzq28.0za1000000a') #???157 158 import project159 m.export_mesh_file(project.mesh_filename)160 161 import sys; sys.exit()162 163 164 165 #Localised refined area for gulleys166 dict = {}167 xl = 4.8168 xr = 5.3169 yb = 1.6170 yt = 2.3171 p0 = [xl, yb]172 p1 = [xr, yb]173 p2 = [xr, yt]174 p3 = [xl, yt]175 176 dict['points'] = [p0, p1, p2, p3]177 dict['segments'] = [[0,1], [1,2], [2,3], [3,0]]178 dict['segment_tags'] = ['', '', '', '']179 m.addVertsSegs(dict)180 181 #Island area182 island_0 = [xleft + 2*(xright-xleft)/3+1.2, ytop-0.5]183 island_1 = [xleft + 2*(xright-xleft)/3+0.5, ybottom + 2*(ytop-ybottom)/3]184 island_2 = [xleft + (xright-xleft)/2+0.3, ybottom + 2*(ytop-ybottom)/3-0.3]185 island_3 = [xleft + (xright-xleft)/2+0.3, ybottom + (ytop-ybottom)/3+0.3]186 island_4 = [xleft + 2*(xright-xleft)/3+0.4, ybottom + (ytop-ybottom)/3-0.3]187 island_5 = [xleft + 2*(xright-xleft)/3+1.2, ybottom+0.2]188 island_6 = [xl-.01, yb] #OK189 island_7 = [xl-.01, yt] #OK190 191 192 dict['points'] = [island_0, island_1, island_2,193 island_3, island_4, island_5,194 island_6, island_7]195 196 197 dict['segments'] = [[0,1], [1,2], [2,3], [3,4],198 [4,5], [5,6], [6,7], [7,0]]199 200 dict['segment_tags'] = ['', '', '', '', '', '', '', '']201 202 203 m.addVertsSegs(dict)204 205 206 #207 208 base_resolution = 10209 210 ocean = m.addRegionEN(xleft+.1, ybottom+.1)211 ocean.setMaxArea(0.1*base_resolution)212 213 mid = m.addRegionEN(point_mbottom[0]+.1, ybottom+.1)214 mid.setMaxArea(0.0005*base_resolution)215 216 217 inner = m.addRegionEN(island_3[0]+.1, island_3[1]+.1)218 inner.setMaxArea(0.0003*base_resolution)219 220 221 gulleys = m.addRegionEN(p0[0]+0.1, p0[1]+0.1)222 gulleys.setMaxArea(0.00002*base_resolution)223 224 225 m.generateMesh('pzq28.0za1000000a')226 227 import project228 m.export_mesh_file(project.mesh_filename)229 -
anuga_validation/automated_validation_tests/okushiri_tank_validation/validate_okushiri.py
r3799 r3825 53 53 domain.set_maximum_allowed_speed(0) # The default in August 2005 54 54 55 56 # Set old (pre Sep 2006) defaults for limiters 57 domain.beta_w = 0.9 58 domain.beta_w_dry = 0.9 59 domain.beta_uh = 0.9 60 domain.beta_uh_dry = 0.9 61 domain.beta_vh = 0.9 62 domain.beta_vh_dry = 0.9 63 55 64 domain.check_integrity() 56 65 66 print domain.statistics() 57 67 58 68 #-------------------------
Note: See TracChangeset
for help on using the changeset viewer.