Changeset 5212 for anuga_work/production/tonga/run_fangauta.py
- Timestamp:
- Apr 14, 2008, 3:20:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/tonga/run_fangauta.py
r5194 r5212 22 22 import time 23 23 import sys 24 from math import radians 24 25 25 26 # Related major packages … … 175 176 from math import sin, pi 176 177 Bw = Time_boundary(domain = domain, 177 f=lambda t: [0.5*sin(t* 2*pi/60), 0, 0])178 f=lambda t: [0.5*sin(t*radians(2*pi/60)), 0, 0]) 178 179 179 180 domain.set_boundary({'land':Bt,'mouth':Bw}) … … 193 194 194 195 Bw = Time_boundary(domain = domain, 195 f=lambda t: [0.5*sin(t* 2*pi/180), 0, 0])196 f=lambda t: [0.5*sin(t*radians(2*pi/180)), 0, 0]) 196 197 domain.set_boundary({'land':Bt,'mouth':Bw}) 197 198 domain.write_time() … … 201 202 for t in domain.evolve(10,finaltime=32400,skip_initial_step=True): 202 203 Bw = Time_boundary(domain = domain, 203 f=lambda t: [0.5*sin(t* 2*pi/300), 0, 0])204 f=lambda t: [0.5*sin(t*radians(2*pi/300)), 0, 0]) 204 205 domain.set_boundary({'land':Bt,'mouth':Bw}) 205 206 domain.write_time() … … 209 210 for t in domain.evolve(10,finaltime=43200,skip_initial_step=True): 210 211 Bw = Time_boundary(domain = domain, 211 f=lambda t: [0.5*sin(t* 2*pi/420), 0, 0])212 f=lambda t: [0.5*sin(t*radians(2*pi/420)), 0, 0]) 212 213 domain.set_boundary({'land':Bt,'mouth':Bw}) 213 214 domain.write_time() … … 217 218 for t in domain.evolve(10,finaltime=54001,skip_initial_step=True): 218 219 Bw = Time_boundary(domain = domain, 219 f=lambda t: [0.5*sin(t* 2*pi/540), 0, 0])220 f=lambda t: [0.5*sin(t*radians(2*pi/540)), 0, 0]) 220 221 domain.set_boundary({'land':Bt,'mouth':Bw}) 221 222 domain.write_time() … … 225 226 for t in domain.evolve(10,finaltime=64800,skip_initial_step=True): 226 227 Bw = Time_boundary(domain = domain, 227 f=lambda t: [0.5*sin(t* 2*pi/660), 0, 0])228 f=lambda t: [0.5*sin(t*radians(2*pi/660)), 0, 0]) 228 229 domain.set_boundary({'land':Bt,'mouth':Bw}) 229 230 domain.write_time() … … 233 234 for t in domain.evolve(10,finaltime=75600,skip_initial_step=True): 234 235 Bw = Time_boundary(domain = domain, 235 f=lambda t: [0.5*sin(t* 2*pi/780), 0, 0])236 f=lambda t: [0.5*sin(t*radians(2*pi/780)), 0, 0]) 236 237 domain.set_boundary({'land':Bt,'mouth':Bw}) 237 238 domain.write_time() … … 241 242 for t in domain.evolve(10,finaltime=86400,skip_initial_step=True): 242 243 Bw = Time_boundary(domain = domain, 243 f=lambda t: [0.5*sin(t* 2*pi/900), 0, 0])244 f=lambda t: [0.5*sin(t*radians(2*pi/900)), 0, 0]) 244 245 domain.set_boundary({'land':Bt,'mouth':Bw}) 245 246 domain.write_time() … … 249 250 for t in domain.evolve(10,finaltime=97200,skip_initial_step=True): 250 251 Bw = Time_boundary(domain = domain, 251 f=lambda t: [0.5*sin(t* 2*pi/1020), 0, 0])252 f=lambda t: [0.5*sin(t*radians(2*pi/1020)), 0, 0]) 252 253 domain.set_boundary({'land':Bt,'mouth':Bw}) 253 254 domain.write_time() … … 257 258 for t in domain.evolve(10,finaltime=108000,skip_initial_step=True): 258 259 Bw = Time_boundary(domain = domain, 259 f=lambda t: [0.5*sin(t* 2*pi/1140), 0, 0])260 f=lambda t: [0.5*sin(t*radians(2*pi/1140)), 0, 0]) 260 261 domain.set_boundary({'land':Bt,'mouth':Bw}) 261 262 domain.write_time() … … 264 265 for t in domain.evolve(10,finaltime=11800,skip_initial_step=True): 265 266 Bw = Time_boundary(domain = domain, 266 f=lambda t: [0.5*sin(t* 2*pi/1260), 0, 0])267 f=lambda t: [0.5*sin(t*radians(2*pi/1260)), 0, 0]) 267 268 domain.set_boundary({'land':Bt,'mouth':Bw}) 268 269 domain.write_time()
Note: See TracChangeset
for help on using the changeset viewer.