Changeset 1868
- Timestamp:
- Oct 5, 2005, 5:40:34 PM (19 years ago)
- Location:
- production/karratha_2005
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
production/karratha_2005/create_mesh.py
r1855 r1868 92 92 """ 93 93 94 from pmesh.mesh import *94 from pmesh.mesh import Mesh 95 95 from pyvolution.coordinate_transforms.redfearn import redfearn 96 96 from pyvolution.util import populate_polygon … … 107 107 108 108 109 110 109 111 print "***********************" 110 112 print "geo ref", geo -
production/karratha_2005/project.py
r1857 r1868 63 63 64 64 #Interior regions 65 karratha_south = degminsec2decimal_degrees(-20,4 5,0)66 karratha_north = degminsec2decimal_degrees(-20, 37,0)67 karratha_west = degminsec2decimal_degrees(116,4 5,0)68 karratha_east = degminsec2decimal_degrees(116,5 5,0)65 karratha_south = degminsec2decimal_degrees(-20,44,0) 66 karratha_north = degminsec2decimal_degrees(-20,42,0) 67 karratha_west = degminsec2decimal_degrees(116,48,0) 68 karratha_east = degminsec2decimal_degrees(116,53,30) 69 69 70 70 k0 = [karratha_south, karratha_west] … … 75 75 karratha_polygon = [k0, k1, k2, k3] 76 76 77 78 #Interior regions 79 dampier_south = degminsec2decimal_degrees(-20,40,0) 80 dampier_north = degminsec2decimal_degrees(-20,38,10) 81 dampier_west = degminsec2decimal_degrees(116,43,0) 82 dampier_east = degminsec2decimal_degrees(116,45,0) 83 84 d0 = [dampier_south, dampier_west] 85 d1 = [dampier_south, dampier_east] 86 d2 = [dampier_north, dampier_east] 87 d3 = [dampier_north, dampier_west] 88 89 dampier_polygon = [d0, d1, d2, d3] 90 91 92 #Interior regions 93 refinery_south = degminsec2decimal_degrees(-20,38,0) 94 refinery_north = degminsec2decimal_degrees(-20,36,0) 95 refinery_west = degminsec2decimal_degrees(116,44,0) 96 refinery_east = degminsec2decimal_degrees(116,46,10) 97 98 d0 = [refinery_south, refinery_west] 99 d1 = [refinery_south, refinery_east] 100 d2 = [refinery_north, refinery_east] 101 d3 = [refinery_north, refinery_west] 102 103 refinery_polygon = [d0, d1, d2, d3] -
production/karratha_2005/run_karratha.py
r1855 r1868 11 11 """ 12 12 13 tide = 0.75 #HMWS estimate by Colin French, GA 13 #tide = 0.75 #HMWS estimate by Colin French, GA 14 tide = 0 #HMW 14 15 15 16 … … 83 84 from create_mesh import create_mesh 84 85 85 interior_regions = [[project.karratha_polygon, 10000]] 86 interior_regions = [[project.karratha_polygon, 25000], 87 [project.dampier_polygon, 8000], 88 [project.refinery_polygon, 8000]] 89 86 90 m = cache(create_mesh, 87 91 project.polygon, 88 92 {'boundary_tags': {'back': [7, 8], 'side': [0, 6], 'ocean': [1, 2, 3, 4, 5]}, 89 'resolution': 80000,93 'resolution': 100000, 90 94 'filename': project.meshname + '.msh', 91 95 'interior_regions': interior_regions}, … … 142 146 143 147 144 #Run 145 #for t in domain.evolve(yieldstep = 600, finaltime = 15000): 146 # domain.write_time() 147 # domain.write_boundary_statistics(tags = 'ocean') #quantities = 'stage') 148 # 149 #for t in domain.evolve(yieldstep = 10, finaltime = 35000): 150 # domain.write_time() 151 # domain.write_boundary_statistics(tags = 'ocean') #quantities = 'stage') 148 #Evolve 149 import time 150 t0 = time.time() 152 151 153 for t in domain.evolve(yieldstep = 60, finaltime = 40000): 152 for t in domain.evolve(yieldstep = 60, finaltime = 15000): 153 domain.write_time() 154 domain.write_boundary_statistics(tags = 'ocean') #quantities = 'stage') 155 156 for t in domain.evolve(yieldstep = 20, finaltime = 35000, 157 skip_initial_step = True): 158 domain.write_time() 159 domain.write_boundary_statistics(tags = 'ocean') #quantities = 'stage') 160 161 for t in domain.evolve(yieldstep = 60, finaltime = 40000, 162 skip_initial_step = True): 154 163 domain.write_time() 155 164 domain.write_boundary_statistics(tags = 'ocean') #quantities = 'stage') 165 166 print 'That took %.2f seconds' %(time.time()-t0)
Note: See TracChangeset
for help on using the changeset viewer.