Changeset 1404
- Timestamp:
- May 16, 2005, 11:11:44 PM (20 years ago)
- Location:
- inundation/ga/storm_surge
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/Hobart/run_hobart_buildings.py
r1397 r1404 42 42 domain.default_order = 1 43 43 domain.smooth = True 44 domain.visualise = True44 domain.visualise = False 45 45 46 46 #------------------------------ … … 79 79 80 80 81 82 81 Friction = domain.quantities['friction'] 83 82 for triangle in domain.tagged_elements['Building']: … … 88 87 89 88 90 91 92 89 ###################### 93 90 #Evolution … … 96 93 for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime): 97 94 domain.write_time() 98 domain.visualiser.update_quantity_color('friction',(1.0,0.0,0.0))95 #domain.visualiser.update_quantity_color('friction',(1.0,0.0,0.0)) 99 96 100 97 print 'That took %.2f seconds' %(time.time()-t0) 101 -
inundation/ga/storm_surge/parallel/run_parallel_advection.py
r1402 r1404 9 9 from Numeric import array 10 10 11 N = 4012 M = 4011 N = 30 12 M = 30 13 13 14 points, vertices, boundary, ghosts = rectangular_periodic _lr(N, M)14 points, vertices, boundary, ghosts = rectangular_periodic(N, M) 15 15 16 16 #Create advection domain with direction (1,-1) -
inundation/ga/storm_surge/pyvolution/netherlands.py
r1393 r1404 156 156 t0 = time.time() 157 157 158 from visual import *159 158 160 159 for t in domain.evolve(yieldstep = 0.1, finaltime = 15.0):
Note: See TracChangeset
for help on using the changeset viewer.