Changeset 6315
- Timestamp:
- Feb 12, 2009, 12:34:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/eucla_motel/run_model.py
r6294 r6315 26 26 # Related major packages 27 27 from anuga.interface import create_domain_from_regions 28 from anuga.interface import Transmissive_stage_zero_momentum_boundary29 28 from anuga.interface import Dirichlet_boundary 30 29 from anuga.interface import Reflective_boundary … … 32 31 from anuga.interface import create_sts_boundary 33 32 from anuga.interface import csv2building_polygons 33 from file_length import file_length 34 34 35 35 from anuga.shallow_water.data_manager import start_screen_catcher … … 70 70 # Number of boundary segments 71 71 N = len(event_sts)-1 72 # Number of landward_boundary points 73 M = file_length(project.landward_boundary) 72 74 73 75 # Boundary tags refer to project.landward_boundary 74 76 # 4 points equals 5 segments start at N 75 boundary_tags={'back': [N+1, N+2, N+3, N+4, N+5, N+6, N+7],76 'side': [N, N+8],77 boundary_tags={'back': range(N+1,N+M), 78 'side': [N,N+M], 77 79 'ocean': range(N)} 78 80 … … 116 118 117 119 Br = Reflective_boundary(domain) 118 B t = Transmissive_stage_zero_momentum_boundary(domain)120 Bd = Dirichlet_boundary([project.tide,0,0]) 119 121 Bf = Field_boundary(project.event_sts+'.sts', 120 122 domain, mean_stage=project.tide, … … 125 127 verbose=True) 126 128 129 127 130 domain.set_boundary({'back': Br, 128 'side': B t,131 'side': Bd, 129 132 'ocean': Bf}) 130 133
Note: See TracChangeset
for help on using the changeset viewer.