Changeset 1830
- Timestamp:
- Sep 13, 2005, 2:07:41 PM (18 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/domain.py
r1829 r1830 362 362 363 363 def write_boundary_statistics(self, quantities = None, tags = None): 364 print self.boundary_statistics(quantiti tes, tags)364 print self.boundary_statistics(quantities, tags) 365 365 366 366 def boundary_statistics(self, quantities = None, tags = None): … … 376 376 quantities and tags can be either None, a string or a list of strings 377 377 378 If quantiti tes 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. 379 379 If tags are specified only report on those, otherwise take all tags. 380 380 -
production/karratha_2005/create_mesh.py
r1818 r1830 77 77 78 78 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'] 80 80 81 81 m.addVertsSegs(dict) -
production/karratha_2005/project.py
r1821 r1830 9 9 #Making assumptions abot the location of scenario data 10 10 scenario_dir_name = 'karratha_tsunami_scenario_2005' 11 basename = 'karratha_ 250m'11 basename = 'karratha_100m' 12 12 boundary_basename = 'SU-AU' 13 13 -
production/karratha_2005/run_karratha.py
r1818 r1830 7 7 8 8 9 from pyvolution.shallow_water import Domain, Reflective_boundary, File_boundary 9 from pyvolution.shallow_water import Domain, Reflective_boundary, File_boundary, Dirichlet_boundary, Time_boundary 10 10 from pyvolution.data_manager import convert_dem_from_ascii2netcdf,\ 11 11 dem2pts, ferret2sww … … 80 80 81 81 #Setup BC 82 Bf = File_boundary(project.boundary_basename + '.sww', domain, verbose = True) 82 83 print domain.get_boundary_tags() 84 85 #Bf = File_boundary(project.boundary_basename + '.sww', domain, verbose = True) 83 86 84 87 Br = Reflective_boundary(domain) 85 domain.set_boundary( {'wall': Br} ) 88 Bd = Dirichlet_boundary([3,0,0]) 89 Bw = Time_boundary(domain=domain, 90 f=lambda t: [(60<t<660)*12, 0, 0]) 91 domain.set_boundary( {'wall': Br, 'ocean': Bw} ) 86 92 87 93 88 94 #Run 89 for t in domain.evolve(yieldstep = 1 , finaltime = 100):95 for t in domain.evolve(yieldstep = 15, finaltime = 4800): 90 96 domain.write_time() 97 domain.write_boundary_statistics(quantities = 'stage')
Note: See TracChangeset
for help on using the changeset viewer.