Changeset 8466 for trunk/anuga_core/source/anuga
- Timestamp:
- Jul 11, 2012, 9:42:10 PM (12 years ago)
- Location:
- trunk/anuga_core/source/anuga/shallow_water
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/shallow_water/eqf.py
r6157 r8466 2 2 # earthquake_tsunami function 3 3 # 4 4 #import okada 5 5 """This function returns a callable object representing an initial water 6 6 displacement generated by a submarine earthqauke. -
trunk/anuga_core/source/anuga/shallow_water/eqf_v2.py
r7769 r8466 37 37 from math import sin, radians 38 38 39 raise Exception, 'WARNING: (GD, 11/07/2012) there seem to be bugs in eqf_v2.py\ 40 , I suggest you use okada_tsunami' 41 39 42 if domain is not None: 40 43 xllcorner = domain.geo_reference.get_xllcorner() … … 156 159 157 160 for i in range(N-1): 158 self.SRECTF(alp, xr[i]*.001, yr[i]*.001, depth*.001, zero, length,\ 161 # GD CHANGE 162 self.SRECTF(alp, xr[i]*.001, yr[i]*.001, depth, zero, length,\ 159 163 zero, width, sd, cd, disl1, disl2, disl3) 164 #self.SRECTF(alp, xr[i]*.001, yr[i]*.001, depth*0.001, zero, length,\ 165 # zero, width, sd, cd, disl1, disl2, disl3) 160 166 161 167 z2[i] = self.U3 … … 281 287 282 288 if Q != F0: 283 TT = atan( radians( XI*ET/(Q*R) )) 289 #TT = atan( radians( XI*ET/(Q*R) )) 290 # GD CHANGE 291 TT = atan( XI*ET/(Q*R) ) 284 292 else: 285 293 TT = F0 … … 299 307 if CD == 0: 300 308 #C============================== 301 #C===== INCLINEDFAULT =====309 #C===== VERTICAL FAULT ===== 302 310 #C============================== 303 311 RD2=RD*RD … … 312 320 else: 313 321 #C============================== 314 #C===== VERTICALFAULT =====322 #C===== INCLINED FAULT ===== 315 323 #C============================== 316 324 TD=SD/CD … … 319 327 A5=F0 320 328 else: 321 A5= ALP*F2/CD*atan( radians((ET*(X+Q*CD)+X*(R+X)*SD) / \ 329 #A5= ALP*F2/CD*atan( radians((ET*(X+Q*CD)+X*(R+X)*SD) / \ 330 # (XI*(R+X)*CD) )) 331 # GD CHANGE 332 A5= ALP*F2/CD*atan( ((ET*(X+Q*CD)+X*(R+X)*SD) / \ 322 333 (XI*(R+X)*CD) )) 323 334 A4= ALP/CD*( log(RD) - SD*DLE )
Note: See TracChangeset
for help on using the changeset viewer.