Changeset 2400 for production/sydney_2006/run_sydney_smf.py
- Timestamp:
- Feb 14, 2006, 3:21:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
production/sydney_2006/run_sydney_smf.py
r2353 r2400 89 89 verbose = True) 90 90 91 #Add elevation data to the mesh - this is in place of set_quantity92 #mesh_elevname = 'elevation.msh'93 #cache(fit_to_mesh_file,(meshname, project.combineddemname + '.pts',94 # mesh_elevname, DEFAULT_ALPHA),95 # {'verbose': True, 'expand_search': True, 'precrop': True},96 # dependencies = [meshname],97 # #evaluate = True,98 # verbose = False)99 #meshname = mesh_elevname100 101 91 # Setup domain 102 92 domain = cache(pmesh_to_domain_instance, (meshname, Domain), … … 104 94 verbose = True) 105 95 106 # This section replaced with fit_to_mesh_file above96 # Bring in elevation data 107 97 domain.set_quantity('elevation', 108 98 filename = project.combineddemname + '.pts', 109 # filename = project.finedemname + '.pts',110 99 use_cache = True, 111 100 verbose = True) 112 113 114 101 115 102 print 'Number of triangles = ', len(domain) 116 103 print 'The extent is ', domain.get_extent() … … 121 108 domain.quantities_to_be_stored = ['stage', 'xmomentum', 'ymomentum'] 122 109 123 # slump parameters, wid=len124 len = 30000.0125 dep = 400.0126 #thk = 120.0 for scenario 1 and 176 for scenario 2 rang 0.2-0.44 of depth127 thk = 0.44*dep128 rad = 3330129 dp = 0.23130 th = 6131 alpha = 0.0132 #x0 = project.x0 # slump origin133 #y0 = project.y0134 135 xllcorner = domain.geo_reference.get_xllcorner()136 yllcorner = domain.geo_reference.get_yllcorner()137 138 x0 = project.slump_origin[0] - xllcorner # slump origin (relative)139 y0 = project.slump_origin[1] - yllcorner140 141 110 # Setup Initial conditions 142 t = slump_tsunami(length=len, depth=dep, slope=th, thickness=thk, \ 143 radius=rad, dphi=dp, x0=x0, y0=y0, alpha=alpha) 111 t = slump_tsunami(length=30000.0, 112 depth=400.0, 113 slope=6.0, 114 thickness=176.0, 115 radius=3330, 116 dphi=0.23, 117 x0=project.slump_origin[0], 118 y0=project.slump_origin[1], 119 alpha=0.0, 120 domain=domain) 144 121 domain.set_quantity('stage', t) 145 122 domain.set_quantity('friction', 0)
Note: See TracChangeset
for help on using the changeset viewer.