Changeset 3408
- Timestamp:
- Jul 24, 2006, 11:49:21 AM (19 years ago)
- Location:
- development/dam_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
development/dam_2006/create_mesh.py
r3226 r3408 13 13 #Basic geometry 14 14 15 xleft = - 5.416 xright = . 415 xleft = -2.25 16 xright = .75 17 17 ybottom = 0 18 18 ytop = 0.4 … … 56 56 57 57 m.addVertsSegs(dict) 58 59 dam = m.add_region(0.2,0.2) 58 59 dam = m.add_region(0.2,0.2) # this is the location of the region. 60 60 dam.setTag("dam") 61 #m.generate_mesh(maximum_triangle_area=0.01)62 m.generate_mesh(maximum_triangle_area=0.0001)61 m.generate_mesh(maximum_triangle_area=0.01) 62 #m.generate_mesh(maximum_triangle_area=0.0001) 63 63 64 64 m.export_mesh_file(project.mesh_filename) -
development/dam_2006/run_dam.py
r3227 r3408 75 75 76 76 tide = 0.0 77 slope = -0.05 77 78 78 79 def elevation_tilt(x, y): 79 return -x*0.1580 return x*slope 80 81 81 82 domain.set_quantity('stage', elevation_tilt) … … 85 86 print 'Available boundary tags', domain.get_boundary_tags() 86 87 87 domain.set_region(Set_region('dam','stage',0. 4,location = 'unique vertices'))88 domain.set_region(Set_region('dam','stage',0.2,location = 'unique vertices')) 88 89 89 90 Br = Reflective_boundary(domain)
Note: See TracChangeset
for help on using the changeset viewer.