Changeset 3541 for development/dam_2006/create_mesh.py
- Timestamp:
- Aug 29, 2006, 5:12:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
development/dam_2006/create_mesh.py
r3535 r3541 29 29 30 30 #Boundary 31 # FIXME (DSG-DSG): Update this to use new interface. 32 dict = {} 33 dict['points'] = [point_sw, #se 34 point_nw, 35 point_dam_top, 36 point_ne, 37 point_se, 38 point_dam_bottom 39 ] 40 #if False: 31 points = [point_sw, #se 32 point_nw, 33 point_dam_top, 34 point_ne, 35 point_se, 36 point_dam_bottom 37 ] 41 38 42 dict['segments']= [[0,1], [1,2], [2,3],39 segments = [[0,1], [1,2], [2,3], 43 40 [3,4 ],[4,5], [5,0], #The outer border 44 41 [2,5]] #dam Separator 45 42 46 dict['segment_tags'] = ['wall', 47 'wall', 48 'wall', 49 'edge', 50 'wall', 51 'wall', 52 ''] #Interior 53 43 segment_tags = {'wall':[0,1,2,4,5],'edge':[3]} # '':[6] 54 44 55 m.add VertsSegs(dict)45 m.add_points_and_segments(points, segments, segment_tags) 56 46 57 47 dam = m.add_region(-0.0000001,(ytop - ybottom)/2)
Note: See TracChangeset
for help on using the changeset viewer.