Changeset 5149 for anuga_work/production/busselton/run_busselton.py
- Timestamp:
- Mar 10, 2008, 3:59:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/busselton/run_busselton.py
r5121 r5149 169 169 #print 'Reading Boundary file',project.boundaries_dir_namea + '.sww' 170 170 171 if project.source != 'test': 171 print'set_boundary' 172 173 Br = Reflective_boundary(domain) 174 Bd = Dirichlet_boundary([kwargs['tide'],0,0]) 175 Bo = Dirichlet_boundary([kwargs['tide']+10.0,0,0]) 176 177 if project.source != 'other': 172 178 Bf = Field_boundary(kwargs['boundary_file'], 173 179 domain, time_thinning=kwargs['time_thinning'], mean_stage=kwargs['tide'], 174 180 use_cache=True, verbose=True) 175 176 kwargs['input_start_time']=domain.starttime 177 178 print 'finished reading boundary file' 179 180 Br = Reflective_boundary(domain) 181 Bd = Dirichlet_boundary([kwargs['tide'],0,0]) 182 Bo = Dirichlet_boundary([kwargs['tide']+5.0,0,0]) 183 184 185 print'set_boundary' 186 187 domain.set_boundary({'back': Br, 188 'side': Bd, 189 'ocean': Bf}) 181 print 'finished reading boundary file' 182 domain.set_boundary({'back': Br, 183 'side': Bd, 184 'ocean': Bf}) 185 else: 186 print 'set ocean' 187 domain.set_boundary({'back': Br, 188 'side': Bd, 189 'ocean': Bd}) 190 191 # kwargs['input_start_time']=domain.starttime 192 190 193 print'finish set boundary' 191 194 … … 195 198 t0 = time.time() 196 199 197 for t in domain.evolve(yieldstep = 240, finaltime = kwargs[' starttime']):200 for t in domain.evolve(yieldstep = 240, finaltime = kwargs['finaltime']): 198 201 domain.write_time() 199 202 domain.write_boundary_statistics(tags = 'ocean') 200 203 201 if allclose(t, 120):204 if allclose(t, 240): 202 205 domain.set_boundary({'back': Br, 'side': Bd, 'ocean': Bo}) 203 206 204 if allclose(t, 720):207 if allclose(t, 1440): 205 208 domain.set_boundary({'back': Br, 'side': Bd, 'ocean': Bd}) 206 209 … … 274 277 275 278 kwargs['output_dir']=project.output_run_time_dir 276 kwargs['bathy_file']=project.combined_dir_name 279 kwargs['bathy_file']=project.combined_dir_name+'.pts' 277 280 # kwargs['bathy_file']=project.combined_small_dir_name + '.pts' 278 281 kwargs['boundary_file']=project.boundaries_in_dir_name + '.sww'
Note: See TracChangeset
for help on using the changeset viewer.