Changeset 458 for inundation/ga/storm_surge/pyvolution/flatbed_compare.py
- Timestamp:
- Oct 28, 2004, 2:40:44 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/flatbed_compare.py
r453 r458 14 14 15 15 #Create basic mesh 16 N = 5016 N = 10 17 17 points, vertices, boundary = rectangular(N, N) 18 18 … … 28 28 domain.filename = 'compare_py3' 29 29 30 #domain.visualise = False 30 31 domain.smooth = False 31 domain.default_order = 232 domain.default_order = 1 32 33 33 34 34 35 print 'Field values' 35 36 domain.set_quantity('elevation', 0.0) 36 domain.set_quantity('friction', 0.0)37 domain.set_quantity('friction', 1) 37 38 38 39 … … 46 47 domain.check_integrity() 47 48 49 print domain.quantities['elevation'].centroid_values[:4] 50 print domain.quantities['friction'].centroid_values[:4] 48 51 49 52 ###################### 50 53 #Evolution 51 for t in domain.evolve(yieldstep = 0.01, finaltime = 0. 2):54 for t in domain.evolve(yieldstep = 0.01, finaltime = 0.5): 52 55 domain.write_time() 56 #print 57 58 #print domain.quantities['level'].centroid_values 59 #print domain.quantities['xmomentum'].centroid_values 60 #print domain.quantities['ymomentum'].centroid_values 61 62 #print 'R' 63 #print domain.quantities['level'].edge_values 64 65
Note: See TracChangeset
for help on using the changeset viewer.