Changeset 3190 for documentation/user_manual/examples/runsydney.py
- Timestamp:
- Jun 21, 2006, 9:31:57 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/user_manual/examples/runsydney.py
r3150 r3190 57 57 interior_regions = [[project.northern_polygon, interior_res], 58 58 [project.harbour_polygon, interior_res], 59 [project.southern_polygon, interior_res]] 59 [project.southern_polygon, interior_res], 60 [project.manly_polygon, interior_res], 61 [project.top_polygon, interior_res]] 60 62 61 63 62 64 create_mesh_from_regions(project.demopoly, 63 65 boundary_tags= {'oceannorth': [0], 64 'onshorewest': [1], 65 'harbournorth': [2], 66 'harbourwest': [3], 67 'harboursouth': [4], 68 'oceansouth': [5], 69 'oceaneast': [6]}, 66 'onshorenorth1': [1], 67 'onshorenorthwest1': [2], 68 'onshorenorthwest2': [3], 69 'onshorenorth2': [4], 70 'onshorewest': [5], 71 'onshoresouth': [6], 72 'oceansouth': [7], 73 'oceaneast': [8]}, 70 74 maximum_triangle_area=100000, 71 75 filename=meshname, … … 115 119 verbose = True) 116 120 117 118 121 #------------------------------------------------------------------------------ 119 122 # Setup boundary conditions (all Dirichlet) … … 123 126 124 127 Bd = Dirichlet_boundary([0.0,0.0,0.0]) 125 domain.set_boundary( {'oceannorth': Bd, 'onshorewest': Bd, 126 'harbournorth': Bd, 'harbourwest': Bd, 127 'harboursouth': Bd, 'oceansouth': Bd, 128 'oceaneast': Bd}) 129 128 domain.set_boundary( {'oceannorth': Bd, 129 'onshorenorth1': Bd, 130 'onshorenorthwest1': Bd, 131 'onshorenorthwest2': Bd, 132 'onshorenorth2': Bd, 133 'onshorewest': Bd, 134 'onshoresouth': Bd, 135 'oceansouth': Bd, 136 'oceaneast': Bd} ) 130 137 131 138 #------------------------------------------------------------------------------ … … 135 142 import time 136 143 t0 = time.time() 137 tend = 7200.0138 print 'Simulate to time = %d secs' %tend139 144 140 for t in domain.evolve(yieldstep = 60, duration = tend):145 for t in domain.evolve(yieldstep = 60, finaltime = 7200): 141 146 print domain.timestepping_statistics() 142 147 print domain.boundary_statistics(tags = 'oceaneast')
Note: See TracChangeset
for help on using the changeset viewer.