Changeset 4386 for anuga_work
- Timestamp:
- Apr 17, 2007, 2:23:21 PM (18 years ago)
- Location:
- anuga_work/development/friction_UA_flume_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/friction_UA_flume_2006/create_mesh.py
r4351 r4386 7 7 8 8 9 def generate(mesh_filename, is_coarse = False):9 def generate(mesh_filename, maximum_triangle_area=0.01): 10 10 """ 11 11 Generate mesh for University of Aberbeen dam break flume. … … 68 68 # this is the location of the slope region. 69 69 slope.setTag("slope") 70 #slope.setTag("dam") 70 71 71 if is_coarse: 72 m.generate_mesh(maximum_triangle_area=0.01) 73 else: 74 m.generate_mesh(maximum_triangle_area=0.0001) 72 m.generate_mesh(maximum_triangle_area=maximum_triangle_area) 75 73 76 74 m.export_mesh_file(mesh_filename) -
anuga_work/development/friction_UA_flume_2006/parallel_run_dam.py
r4351 r4386 65 65 yieldstep = 1 66 66 finaltime = 15.1 67 maximum_triangle_area=0.01 67 68 else: 68 69 yieldstep = 0.02 69 70 finaltime = 15.1 71 maximum_triangle_area=0.0001 72 73 maximum_triangle_area=0.001 70 74 71 75 … … 107 111 # Create the triangular mesh 108 112 #------------------------------------------------------------------------- 109 113 114 # this creates the mesh 110 115 #gate_position = 12.0 111 116 create_mesh.generate(mesh_filename, 112 is_coarse=is_trial_run) # this creates the mesh117 maximum_triangle_area=maximum_triangle_area) 113 118 114 119 head,tail = path.split(mesh_filename) … … 157 162 158 163 for t in domain.evolve(yieldstep, finaltime): 164 159 165 domain.write_time() 160 161 166 print 'That took %.2f seconds' %(time.time()-t0) 162 167 print 'finished' … … 199 204 0.019, 0.02, 200 205 0.0225, 0.025, 0.03, 0.035, 0.04] # 17 processes 201 #frictions = [0.0]206 frictions = [0.0, 0.014] 202 207 for i, friction in enumerate(frictions): 203 208 if i%size == rank: 204 209 print "I am processor %d of %d on node %s" %(rank, size, node) 205 main(friction, is_trial_run = True, outputdir_name='friction_UA_new_meshII') 210 main(friction, is_trial_run = True, 211 outputdir_name='friction_UA_new_meshII_0.06_stageIII')
Note: See TracChangeset
for help on using the changeset viewer.