- Timestamp:
- Oct 24, 2007, 5:25:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/UQ_runup_2006/run_dam.py
r4751 r4753 37 37 gate_positions = [0.75] 38 38 39 scenario(0, 0.01, 0.02, 0.75)39 return scenario(0, 0.01, 0.02, 0.75) 40 40 41 41 … … 48 48 create_mesh.generate(project.mesh_filename, 49 49 gate_position, 50 is_course=True) # this creates the mesh51 #is_course=False) # this creates the mesh50 #is_course=True) # this creates the mesh 51 is_course=False) # this creates the mesh 52 52 53 53 head,tail = path.split(project.mesh_filename) … … 55 55 # Setup computational domain 56 56 #------------------------------------------------------------------------- 57 domain = Domain(project.mesh_filename, use_cache = False, verbose = True)57 domain = Domain(project.mesh_filename, use_cache = False, verbose = False) 58 58 59 60 print 'Number of triangles = ', len(domain)61 print 'The extent is ', domain.get_extent()62 print domain.statistics()63 59 64 60 … … 81 77 domain.set_quantity('elevation',elevation_tilt) 82 78 83 print 'Available boundary tags', domain.get_boundary_tags()84 79 domain.set_region('dam','stage',inital_depth, 85 80 location = 'unique vertices') … … 94 89 t0 = time.time() 95 90 96 for t in domain.evolve(yieldstep = 0.1, finaltime = 10): #enter timestep and final time 97 domain.write_time() 98 99 print 'That took %.2f seconds' %(time.time()-t0) 100 print 'finished' 91 for t in domain.evolve(yieldstep = 0.1, finaltime = 10): 92 pass 101 93 102 94 # Load actual experimental results … … 108 100 quantities = quantities, 109 101 interpolation_points = gauge_locations, 110 verbose = True,102 verbose = False, 111 103 use_cache = False) 112 104 # create a list of the simulated_depths at the actual data times. … … 122 114 #print "map(None, simulated_depths, flume_depths)", \ 123 115 # map(None, simulated_depths, flume_depths) 124 normmax = 0125 116 norm = err(simulated_depths, 126 117 flume_depths, 2, relative = True) # 2nd norm (rel. RMS 127 if norm > normmax: 128 normmax = norm 129 print norm 130 print "norm", norm 118 return norm 131 119 #------------------------------------------------------------- 132 120 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.