Changeset 1830


Ignore:
Timestamp:
Sep 13, 2005, 2:07:41 PM (18 years ago)
Author:
ole
Message:

Karratha study

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/domain.py

    r1829 r1830  
    362362           
    363363    def write_boundary_statistics(self, quantities = None, tags = None):
    364         print self.boundary_statistics(quantitites, tags)
     364        print self.boundary_statistics(quantities, tags)
    365365       
    366366    def boundary_statistics(self, quantities = None, tags = None):
     
    376376        quantities and tags can be either None, a string or a list of strings
    377377
    378         If quantitites are specified only report on those. Otherwise take all conserved quantities.
     378        If quantities are specified only report on those. Otherwise take all conserved quantities.
    379379        If tags are specified only report on those, otherwise take all tags.
    380380
  • production/karratha_2005/create_mesh.py

    r1818 r1830  
    7777   
    7878    dict['segments'] = [[0,1], [1,2], [2,3], [3,0]]
    79     dict['segment_tags'] = ['wall', 'wall', 'wall', 'wall']
     79    dict['segment_tags'] = ['wall', 'wall', 'ocean', 'wall']
    8080       
    8181    m.addVertsSegs(dict)
  • production/karratha_2005/project.py

    r1821 r1830  
    99#Making assumptions abot the location of scenario data
    1010scenario_dir_name = 'karratha_tsunami_scenario_2005'
    11 basename = 'karratha_250m'
     11basename = 'karratha_100m'
    1212boundary_basename = 'SU-AU'
    1313
  • production/karratha_2005/run_karratha.py

    r1818 r1830  
    77
    88
    9 from pyvolution.shallow_water import Domain, Reflective_boundary, File_boundary
     9from pyvolution.shallow_water import Domain, Reflective_boundary, File_boundary, Dirichlet_boundary, Time_boundary
    1010from pyvolution.data_manager import convert_dem_from_ascii2netcdf,\
    1111     dem2pts, ferret2sww
     
    8080
    8181#Setup BC
    82 Bf = File_boundary(project.boundary_basename + '.sww', domain, verbose = True)
     82
     83print domain.get_boundary_tags()
     84
     85#Bf = File_boundary(project.boundary_basename + '.sww', domain, verbose = True)
    8386
    8487Br = Reflective_boundary(domain)
    85 domain.set_boundary( {'wall': Br} )
     88Bd = Dirichlet_boundary([3,0,0])
     89Bw = Time_boundary(domain=domain,
     90                   f=lambda t: [(60<t<660)*12, 0, 0])
     91domain.set_boundary( {'wall': Br, 'ocean': Bw} )
    8692
    8793
    8894#Run
    89 for t in domain.evolve(yieldstep = 1, finaltime = 100):
     95for t in domain.evolve(yieldstep = 15, finaltime = 4800):
    9096    domain.write_time()
     97    domain.write_boundary_statistics(quantities = 'stage')
Note: See TracChangeset for help on using the changeset viewer.