Changeset 2188 for production/sydney_2006/run_sydney.py
- Timestamp:
- Jan 6, 2006, 1:54:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
production/sydney_2006/run_sydney.py
r2186 r2188 8 8 the elevation data and boundary data obtained from a tsunami simulation done with MOST. 9 9 10 Ole Nielsen, GA - 2005 10 Ole Nielsen, GA - 2005 and Jane Sexton, GA - 2006 11 11 """ 12 12 … … 40 40 verbose = True) 41 41 42 #this was going to switch between different clipping polygons but doesn't43 #seem to work, so keep this at zero 44 mytest = 042 #this allows the user to switch between different clipping polygons 43 print 'Which total zone are you interested in?' 44 mytest = int(raw_input('0 = all, 1 = harbour and 2 = botany bay ')) 45 45 46 46 #Create Triangular Mesh … … 63 63 'resolution': 100000, 64 64 'filename': meshname, 65 'interior_regions': interior_regions}, 65 'interior_regions': interior_regions}, 66 evaluate=True, 66 67 verbose = True) 68 #import sys; sys.exit() 67 69 68 70 if mytest == 1: … … 73 75 east = project.heast 74 76 75 interior_regions = [[project.harbour_polygon, 25000]] # maximal area of per triangle77 #interior_regions = [[project.harbour_polygon, 25000]] # maximal area of per triangle 76 78 77 79 m = cache(create_mesh_from_regions, … … 79 81 {'boundary_tags': {'bottom': [0], 'top': [2], 80 82 'right': [1], 'left': [3]}, 81 'resolution': 100000, 82 'filename': meshname, 83 'interior_regions': interior_regions}, 83 'resolution': 50000, 84 'filename': meshname}, 85 # 'interior_regions': interior_regions}, 86 evaluate=True, 84 87 verbose = True) 85 88 … … 91 94 east = project.beast 92 95 93 interior_regions = [[project.botanybay_polygon, 25000]] # maximal area of per triangle96 #interior_regions = [[project.botanybay_polygon, 25000]] # maximal area of per triangle 94 97 95 98 m = cache(create_mesh_from_regions, … … 97 100 {'boundary_tags': {'bottom': [0], 'top': [2], 98 101 'right': [1], 'left': [3]}, 99 'resolution': 100000, 100 'filename': meshname, 101 'interior_regions': interior_regions}, 102 'resolution': 50000, 103 'filename': meshname}, 104 # 'interior_regions': interior_regions}, 105 evaluate=True, 102 106 verbose = True) 103 107 … … 137 141 Bt = Transmissive_boundary(domain) 138 142 Bd = Dirichlet_boundary([0,0,0]) 143 # 10 min square wave starting at 1 min, 6m high 139 144 Bw = Time_boundary(domain=domain, 140 f=lambda t: [(6 <t<30)*5000, 0, 0])145 f=lambda t: [(60<t<660)*6, 0, 0]) 141 146 142 147 … … 148 153 t0 = time.time() 149 154 150 for t in domain.evolve(yieldstep = 1, finaltime = 50):155 for t in domain.evolve(yieldstep = 1, finaltime = 3600): 151 156 domain.write_time() 152 157 domain.write_boundary_statistics(tags = 'right') #quantities = 'stage')
Note: See TracChangeset
for help on using the changeset viewer.