Changeset 1707
- Timestamp:
- Aug 11, 2005, 2:49:45 PM (19 years ago)
- Location:
- inundation/ga/storm_surge/validation/LWRU2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/validation/LWRU2/create_mesh.py
r1705 r1707 75 75 m.addVertsSegs(dict) 76 76 77 78 79 #Localised refined area for gulleys 80 dict = {} 81 dict['points'] = [ [4.5, 1.8], 82 [5.0, 1.8], 83 [5.0, 2.5], 84 [4.5, 2.5] ] 85 86 dict['segments'] = [[0,1], [1,2], [2,3], [3,0]] 87 dict['segment_tags'] = ['', '', '', ''] 88 m.addVertsSegs(dict) 89 77 90 78 91 base_resolution = 1 … … 84 97 mid.setMaxArea(0.001*base_resolution) 85 98 99 86 100 inner = m.addRegionEN(point_mr2[0]+1, ybottom+1) 87 inner.setMaxArea(0.00001*base_resolution) 101 inner.setMaxArea(0.0001*base_resolution) 102 103 gulleys = m.addRegionEN(dict['points'][0]+0.1, dict['points'][1]+0.1) 104 gulleys.setMaxArea(0.00001*base_resolution) 105 88 106 89 107 m.generateMesh('pzq28.0za1000000a') -
inundation/ga/storm_surge/validation/LWRU2/lwru2.py
r1704 r1707 81 81 82 82 try: 83 raise Exception83 #raise Exception 84 84 fid = open(picklefile) 85 85 print 'Read pickled domain' … … 130 130 points, 131 131 attributes['elevation'], 132 alpha = 0 ,132 alpha = 0.0001, 133 133 verbose=True) 134 134 … … 159 159 160 160 #Set boundary conditions 161 domain.set_boundary({'left': Bts, 'right': Br, 'bottom': Br, 'top': Br}) 161 #domain.set_boundary({'left': Bts, 'right': Br, 'bottom': Br, 'top': Br}) 162 domain.set_boundary({'wave': Bts, 'wall': Br}) 162 163 163 164 #Evolve 164 165 import time 165 166 t0 = time.time() 166 domain.visualise = True167 #domain.visualise = True 167 168 168 169 for t in domain.evolve(yieldstep = 0.05, finaltime = 22.5):
Note: See TracChangeset
for help on using the changeset viewer.