Ignore:
Timestamp:
Sep 26, 2013, 1:10:23 PM (12 years ago)
Author:
davies
Message:

Updates to audusse experimental

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/gareth/tests/parabolic/parabolaplot.py

    r8751 r8991  
    99#import scipy
    1010from matplotlib import pyplot as pyplot
    11 import util
     11#import util
     12from bal_and import plot_utils as util
    1213
    1314p=util.get_output('parabola_v2.sww', 0.001)
     
    3031        pyplot.draw()
    3132        #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])
    3334        pyplot.title(str(i)+'/200') # : velocity does not converge to zero' )
    3435        pyplot.xlabel('x')
     
    6263w = D0 + 2*A*D0/(L**2)*numpy.cos(omega*p2.time)*( (p2.x[ppp]-4.*L/2.) -A/2.*numpy.cos(omega*p2.time))
    6364w2 = 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])
     65w2 = w2*(w2>p2.elev[1,ppp2])+p2.elev[1,ppp2]*(w2<=p2.elev[1,ppp2])
    6566
    6667pyplot.clf()
Note: See TracChangeset for help on using the changeset viewer.