Changeset 647
- Timestamp:
- Dec 1, 2004, 2:25:43 PM (20 years ago)
- Location:
- inundation/ga/storm_surge/analytical solutions
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/analytical solutions/Analytical_solution_MacDonald_import_mesh.py
r638 r647 8 8 Copyright 2004 9 9 Christopher Zoppou, Stephen Roberts, Ole Nielsen, Duncan Gray 10 Geoscience Australia 10 Geoscience Australia, ANU 11 11 12 12 Specific methods pertaining to the 2D shallow water equation … … 83 83 #-------------------- 84 84 # Boundary Conditions 85 upstream_depth = 5.035-4.393 85 upstream_depth = 5.035 - 4.393 86 downstream_depth = 1.5 - 0 86 87 discharge = 20 87 88 tags = {} 88 tags['Upstream'] = Dirichlet_boundary([ 5.035, 2, 0.0])89 tags['Upstream'] = Dirichlet_boundary([upstream_depth, 2, 0.0]) 89 90 tags['external'] = Reflective_boundary(domain) 90 tags['Downstream'] = Transmissive_boundary(domain)91 tags['Downstream'] = Dirichlet_boundary([downstream_depth, 2, 0.0]) 91 92 domain.set_boundary(tags) 92 93 … … 104 105 import time 105 106 t0 = time.time() 106 for t in domain.evolve(yieldstep = 5 0, finaltime = 5000):107 for t in domain.evolve(yieldstep = 5, finaltime = 500): 107 108 domain.write_time() 108 109
Note: See TracChangeset
for help on using the changeset viewer.