Ignore:
Timestamp:
Jan 6, 2006, 1:54:51 PM (19 years ago)
Author:
sexton
Message:

update Sydney scenario to allow switching between clipping regions. BC = 10min square wave at 6m height on right hand boundary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/sydney_2006/run_sydney.py

    r2186 r2188  
    88the elevation data and boundary data obtained from a tsunami simulation done with MOST.
    99
    10 Ole Nielsen, GA - 2005
     10Ole Nielsen, GA - 2005 and Jane Sexton, GA - 2006
    1111"""
    1212
     
    4040      verbose = True)
    4141
    42 #this was going to switch between different clipping polygons but doesn't
    43 #seem to work, so keep this at zero
    44 mytest = 0
     42#this allows the user to switch between different clipping polygons
     43print 'Which total zone are you interested in?'
     44mytest = int(raw_input('0 = all, 1 = harbour and 2 = botany bay     '))
    4545
    4646#Create Triangular Mesh
     
    6363               'resolution': 100000,
    6464               'filename': meshname,           
    65                'interior_regions': interior_regions},     
     65               'interior_regions': interior_regions},
     66              evaluate=True,   
    6667              verbose = True)
     68    #import sys; sys.exit()
    6769
    6870if mytest == 1:
     
    7375    east = project.heast
    7476
    75     interior_regions = [[project.harbour_polygon, 25000]] # maximal area of per triangle
     77    #interior_regions = [[project.harbour_polygon, 25000]] # maximal area of per triangle
    7678                       
    7779    m = cache(create_mesh_from_regions,
     
    7981              {'boundary_tags': {'bottom': [0], 'top': [2],
    8082                                 '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,
    8487              verbose = True)
    8588
     
    9194    east = project.beast
    9295
    93     interior_regions = [[project.botanybay_polygon, 25000]] # maximal area of per triangle
     96    #interior_regions = [[project.botanybay_polygon, 25000]] # maximal area of per triangle
    9497                       
    9598    m = cache(create_mesh_from_regions,
     
    97100              {'boundary_tags': {'bottom': [0], 'top': [2],
    98101                                 '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,
    102106              verbose = True)
    103107   
     
    137141Bt = Transmissive_boundary(domain)
    138142Bd = Dirichlet_boundary([0,0,0])
     143# 10 min square wave starting at 1 min, 6m high
    139144Bw = Time_boundary(domain=domain,
    140                    f=lambda t: [(6<t<30)*5000, 0, 0])
     145                   f=lambda t: [(60<t<660)*6, 0, 0])
    141146
    142147
     
    148153t0 = time.time()
    149154
    150 for t in domain.evolve(yieldstep = 1, finaltime = 50):
     155for t in domain.evolve(yieldstep = 1, finaltime = 3600):
    151156    domain.write_time()
    152157    domain.write_boundary_statistics(tags = 'right') #quantities = 'stage')       
Note: See TracChangeset for help on using the changeset viewer.