Changeset 5192
- Timestamp:
- Apr 7, 2008, 3:55:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/near_shore_PMD/run_beach.py
r5191 r5192 77 77 78 78 # Structured mesh variables 79 dx = 5.79 dx = 1.0 80 80 dy = dx 81 81 L = 2080. … … 87 87 outputdir_name += '_test' 88 88 yieldstep = 1 89 finaltime = 100.89 finaltime = 200. 90 90 maximum_triangle_area=3000 91 91 thinner=True 92 92 else: 93 93 yieldstep = 1. 94 finaltime = 1 60094 finaltime = 1700 #1600 95 95 maximum_triangle_area = 100 96 96 thinner=True … … 193 193 Br = Reflective_boundary(domain) 194 194 Bd = Dirichlet_boundary([10.,0,0]) 195 196 197 def wave_func(t): 198 if t < 100: 199 wave = [(1.2*t/100.0*sin(2*t*pi/10)), 0.0 ,0.0] 200 else: 201 wave = [(1.2*sin(2*t*pi/10)), 0.0 ,0.0] 202 return wave 203 195 204 Bwp = Transmissive_Momentum_Set_Stage_boundary(domain, 196 lambda t: [(1.2*sin(2*t*pi/10)), 0.0 ,0.0])205 wave_func) 197 206 Bwp_velocity = Time_boundary(domain, 198 207 lambda t: [(1.2*sin(2*t*pi/10)), … … 206 215 'bottom': Br , 207 216 'left' : Br , 208 'right' : Bwp 217 'right' : Bwp} ) 209 218 else: 210 219 domain.set_boundary( {'wall': Br, 'wave': Bwp} ) … … 218 227 for t in domain.evolve(yieldstep, finaltime): 219 228 domain.write_time() 220 229 221 230 print 'That took %.2f seconds' %(time.time()-t0) 222 231 print 'finished' … … 247 256 friction=0.0, 248 257 is_structured=True, 249 outputdir_name='structured_ old_limiters')258 outputdir_name='structured_ramp_up2')
Note: See TracChangeset
for help on using the changeset viewer.