Changeset 3428
- Timestamp:
- Jul 31, 2006, 4:20:12 PM (19 years ago)
- Location:
- development/dam_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
development/dam_2006/create_mesh.py
r3426 r3428 13 13 #Basic geometry 14 14 15 xedge = - gate_position16 15 xright = 3.0 - gate_position 17 16 ybottom = 0 18 17 ytop = 0.4 19 18 xdam = 0.0 20 xleft = - 5.019 xleft = - gate_position 21 20 22 21 #Outline … … 28 27 # Dam seperation (left) 29 28 point_dam_top = [xdam, ytop] 30 point_dam_bottom = [xdam, ybottom] 31 32 # Catchment seperation 33 point_edge_top = [xedge, ytop] 34 point_edge_bottom = [xedge, ybottom] 35 29 point_dam_bottom = [xdam, ybottom] 36 30 37 31 m = Mesh() … … 43 37 point_ne, 44 38 point_dam_top, 45 point_edge_top, 46 point_nw, 47 point_sw, 48 point_edge_bottom, 49 point_dam_bottom] 39 point_nw, 40 point_sw, 41 point_dam_bottom 42 ] 50 43 #if False: 51 if False:52 dict['segments'] = [[0,1], [1,2], [2,3], [3,4],53 [4,5], [5,6], [6,7 ],[7,0], #The outer border54 [2,7], #dam Separator55 [3,6]] #edge Separator56 44 57 dict['segment_tags'] = ['wall', 58 'wall', 59 'wall', 60 'wall', #back of the dam 61 'wall', 62 'wall', 63 'wall', 64 'wall', 65 '', 66 ''] #Interior 67 68 else: 69 dict['segments'] = [[0,1], [1,2], [2,3], 70 [6,7 ],[7,0], #The outer border 71 [2,7], #dam Separator 72 [3,6]] #edge Separator 45 dict['segments'] = [[0,1], [1,2], [2,3], 46 [3,4 ],[4,5], [5,0], #The outer border 47 [2,5]] #dam Separator 73 48 74 75 76 77 'wall',78 79 '', #Interior80 'edge'] #Interior49 dict['segment_tags'] = ['wall', 50 'wall', 51 'wall', 52 'edge', 53 'wall', 54 'wall', 55 ''] #Interior 81 56 82 57 -
development/dam_2006/run_dam.py
r3426 r3428 100 100 Br = Reflective_boundary(domain) 101 101 Bd = Dirichlet_boundary([0,0,0]) 102 #Bd = None103 102 domain.set_boundary( {'wall': Br, 'edge': Bd} ) 104 103 … … 108 107 t0 = time.time() 109 108 110 for t in domain.evolve(yieldstep = 0. 01, finaltime = 1):109 for t in domain.evolve(yieldstep = 0.1, finaltime = 25): 111 110 domain.write_time() 112 111
Note: See TracChangeset
for help on using the changeset viewer.