Changeset 5731 for anuga_work/development/anuga_1d/dam_h_elevation.py
- Timestamp:
- Sep 4, 2008, 8:28:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/anuga_1d/dam_h_elevation.py
r5728 r5731 1 1 import os 2 2 from math import sqrt, sin, cos, pi, exp 3 from shallow_water_domain _newimport *3 from shallow_water_domain import * 4 4 from Numeric import zeros, Float 5 5 #from analytic_dam_sudi import AnalyticDam … … 41 41 domain=Domain(points) 42 42 43 domain.default_order = 243 domain.default_order = 1 44 44 domain.default_time_order = 2 45 45 domain.cfl = 1.0 … … 140 140 from pylab import clf,plot,title,xlabel,ylabel,legend,savefig,show,hold,subplot,ion 141 141 #print 'Test1' 142 #hold(False)143 clf()142 hold(False) 143 #clf() 144 144 #print 'test 2' 145 145 plot1 = subplot(211) 146 146 #print 'test 3' 147 147 148 149 #print 'Test4' 150 148 151 plot(X,ElevationQ,X,HeightQ) 149 #print 'Test4'150 152 plot1.set_ylim([-1,12]) 151 153 xlabel('Position') … … 159 161 plot2 = subplot(212) 160 162 plot(X,MomentumQ) 161 #plot2.set_ylim([-5,35]) 163 plot2.set_ylim([-1,1]) 164 162 165 #legend( ('Numerical Solution', 'for momentum'), 163 166 # 'upper right', shadow=False)
Note: See TracChangeset
for help on using the changeset viewer.