Changeset 1801
- Timestamp:
- Sep 7, 2005, 4:31:19 PM (20 years ago)
- Location:
- production/karratha_2005
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
production/karratha_2005/prepare_boundary.py
r1796 r1801 9 9 """ 10 10 11 #FIXME: OBSOLETE 11 12 12 13 import os -
production/karratha_2005/run_karratha.py
r1796 r1801 7 7 8 8 9 from pyvolution.shallow_water import Domain, Reflective_boundary 9 from pyvolution.shallow_water import Domain, Reflective_boundary, File_boundary 10 10 from pyvolution.data_manager import convert_dem_from_ascii2netcdf,\ 11 11 dem2pts, ferret2sww … … 27 27 verbose = True) 28 28 29 29 30 #Convert MOST boundary 30 31 ferret2sww('test', verbose=False, 32 origin = (56, 0, 0)) 31 source_dir = project.boundarydir 33 32 34 33 35 #Read mesh 34 #Data 35 from pyvolution.data_manager import ferret2sww 36 37 38 south = project.south 39 north = project.north 40 west = project.west 41 east = project.east 42 43 #Origin of existing dem (FIXME: Temporary measure) 44 mesh_origin = (50, 421544.35127423, 7677669.5257159) 45 46 ferret2sww(source_dir+project.boundary_basename, 47 project.boundary_basename, 48 verbose=True, 49 minlat=south-1, maxlat=north+1, 50 minlon=west-1, maxlon=east+1, 51 origin = mesh_origin, 52 zscale = 1, 53 fail_on_NaN = False, 54 inverted_bathymetry = True), 55 56 57 58 #Setup domain 36 59 mesh = project.meshname + '.msh' 37 60 domain = cache(pmesh_to_domain_instance, (mesh, Domain), … … 48 71 49 72 50 # IC73 #Setup IC 51 74 domain.set_quantity('stage', 0) 52 75 domain.set_quantity('elevation', … … 55 78 verbose = True) 56 79 57 #BC 80 #Setup BC 81 Bf = File_boundary(project.boundary_basename + '.sww', domain, verbose = True) 82 58 83 Br = Reflective_boundary(domain) 59 84 domain.set_boundary( {'wall': Br} ) … … 61 86 62 87 #Run 63 for t in domain.evolve(yieldstep = 1, finaltime = 1 ):88 for t in domain.evolve(yieldstep = 1, finaltime = 100): 64 89 domain.write_time()
Note: See TracChangeset
for help on using the changeset viewer.