Ignore:
Timestamp:
Oct 5, 2005, 5:40:34 PM (19 years ago)
Author:
ole
Message:

Ongoing work with karratha

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/karratha_2005/run_karratha.py

    r1855 r1868  
    1111"""
    1212
    13 tide = 0.75   #HMWS estimate by Colin French, GA
     13#tide = 0.75   #HMWS estimate by Colin French, GA
     14tide = 0       #HMW
    1415
    1516
     
    8384from create_mesh import create_mesh
    8485
    85 interior_regions = [[project.karratha_polygon, 10000]]
     86interior_regions = [[project.karratha_polygon, 25000],
     87                    [project.dampier_polygon, 8000],
     88                    [project.refinery_polygon, 8000]]
     89
    8690m = cache(create_mesh,
    8791          project.polygon,
    8892          {'boundary_tags': {'back': [7, 8], 'side': [0, 6], 'ocean': [1, 2, 3, 4, 5]},
    89           'resolution': 80000,
     93          'resolution': 100000,
    9094          'filename': project.meshname + '.msh',
    9195          'interior_regions': interior_regions},
     
    142146
    143147
    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
     149import time
     150t0 = time.time()
    152151
    153 for t in domain.evolve(yieldstep = 60, finaltime = 40000):
     152for t in domain.evolve(yieldstep = 60, finaltime = 15000):
     153    domain.write_time()
     154    domain.write_boundary_statistics(tags = 'ocean') #quantities = 'stage')
     155
     156for 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
     161for t in domain.evolve(yieldstep = 60, finaltime = 40000,
     162                       skip_initial_step = True):
    154163    domain.write_time()
    155164    domain.write_boundary_statistics(tags = 'ocean') #quantities = 'stage')       
     165
     166print 'That took %.2f seconds' %(time.time()-t0)
Note: See TracChangeset for help on using the changeset viewer.