- Timestamp:
- Sep 26, 2013, 1:10:23 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/tests/parabolic/parabolaplot.py
r8751 r8991 9 9 #import scipy 10 10 from matplotlib import pyplot as pyplot 11 import util 11 #import util 12 from bal_and import plot_utils as util 12 13 13 14 p=util.get_output('parabola_v2.sww', 0.001) … … 30 31 pyplot.draw() 31 32 #pyplot.plot( (0,1),(0,0), 'r' ) 32 pyplot.plot(p2.x[v],p2.elev[ v])33 pyplot.plot(p2.x[v],p2.elev[1,v]) 33 34 pyplot.title(str(i)+'/200') # : velocity does not converge to zero' ) 34 35 pyplot.xlabel('x') … … 62 63 w = D0 + 2*A*D0/(L**2)*numpy.cos(omega*p2.time)*( (p2.x[ppp]-4.*L/2.) -A/2.*numpy.cos(omega*p2.time)) 63 64 w2 = D0 + 2*A*D0/(L**2)*numpy.cos(omega*p2.time)*( (p2.x[ppp2]-4.*L/2.) -A/2.*numpy.cos(omega*p2.time)) 64 w2 = w2*(w2>p2.elev[ ppp2])+p2.elev[ppp2]*(w2<=p2.elev[ppp2])65 w2 = w2*(w2>p2.elev[1,ppp2])+p2.elev[1,ppp2]*(w2<=p2.elev[1,ppp2]) 65 66 66 67 pyplot.clf()
Note: See TracChangeset
for help on using the changeset viewer.