Changeset 7077
- Timestamp:
- May 25, 2009, 4:19:43 PM (16 years ago)
- Location:
- anuga_core/documentation/user_manual/demos/cairns
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/demos/cairns/project.py
r7064 r7077 5 5 6 6 #------------------------------------------------------------------------------ 7 # Define scenario as either slide or fixed_wave. 7 # Define scenario as either slide or fixed_wave. Choose one. 8 8 #------------------------------------------------------------------------------ 9 scenario = 'fixed_wave' 10 #scenario = 'slide' 9 #scenario = 'fixed_wave' # Huge wave applied at the boundary 10 scenario = 'slide' # Slide wave form applied inside the domain 11 11 12 12 #------------------------------------------------------------------------------ -
anuga_core/documentation/user_manual/demos/cairns/runcairns.py
r7064 r7077 70 70 # Setup parameters of computational domain 71 71 #------------------------------------------------------------------------------ 72 domain.set_name('cairns_ ' + project.scenario) # Name of sww file72 domain.set_name('cairns_X' + project.scenario) # Name of sww file 73 73 domain.set_datadir('.') # Store sww output here 74 74 domain.set_minimum_storable_height(0.01) # Store only depth > 1cm … … 106 106 print 'Available boundary tags', domain.get_boundary_tags() 107 107 108 Bd = Dirichlet_boundary([tide, 0,0]) # Mean water level108 Bd = Dirichlet_boundary([tide, 0, 0]) # Mean water level 109 109 Bs = Transmissive_stage_zero_momentum_boundary(domain) # Neutral boundary 110 110 … … 135 135 136 136 if project.scenario == 'slide': 137 # Initial run without any event 137 138 for t in domain.evolve(yieldstep=10, finaltime=60): 138 139 print domain.timestepping_statistics() 139 140 print domain.boundary_statistics(tags='ocean_east') 140 141 141 # Add slide 142 thisstagestep = domain.get_quantity('stage') 142 # Add slide to water surface 143 143 if allclose(t, 60): 144 slide = Quantity(domain) 145 slide.set_values(tsunami_source) 146 domain.set_quantity('stage', slide + thisstagestep) 144 domain.add_quantity('stage', tsunami_source) 147 145 146 # Continue propagating wave 148 147 for t in domain.evolve(yieldstep=10, finaltime=5000, 149 148 skip_initial_step = True):
Note: See TracChangeset
for help on using the changeset viewer.