Changeset 8433
- Timestamp:
- May 18, 2012, 4:20:29 PM (12 years ago)
- Location:
- trunk/anuga_core/validation_tests/Tests/Analytical
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/validation_tests/Tests/Analytical/deep_wave/plotme.py
r8431 r8433 18 18 pyplot.ylim((-1.5,2.0)) 19 19 pyplot.legend() 20 pyplot.xlabel('Time (s)') 21 pyplot.ylabel('m') 20 22 pyplot.savefig('wave_atten.png') -
trunk/anuga_core/validation_tests/Tests/Analytical/deep_wave/results.tex
r8431 r8433 9 9 \begin{center} 10 10 \includegraphics[width=0.9\textwidth]{wave_atten.png} 11 \caption{Stage over time in the centre of the parabola}11 \caption{Stage over time at 3 points in space} 12 12 \label{stagewave} 13 13 \end{center} -
trunk/anuga_core/validation_tests/Tests/Analytical/parabolic_basin_1D/parabolaplot.py
r8429 r8433 73 73 pyplot.plot(p2.time,p2.stage[:,ppp], color='green', label='numerical') 74 74 pyplot.legend() 75 pyplot.xlabel('time (s)') 76 pyplot.ylabel('Stage (m)') 75 77 pyplot.savefig('Stage_centre_v2.png') 76 78 # pyplot.savefig('runup_x_velocities.png') … … 79 81 pyplot.plot(p2.time,p2.stage[:,ppp2], color='green', label='numerical') 80 82 pyplot.legend(loc=10) 83 pyplot.xlabel('time (s)') 84 pyplot.ylabel('Stage (m)') 81 85 pyplot.savefig('Stage_centre_v3.png') 82 86 … … 90 94 pyplot.plot(p2.x[v], -omega*A*numpy.sin(omega*p2.time[pltind])*(w>p2.elev[v]), label='Analytical') 91 95 pyplot.legend() 96 pyplot.xlabel('x (m)') 97 pyplot.ylabel('x velocity (m/s)') 92 98 pyplot.title('Velocity near to time=3T') 93 99 pyplot.savefig('Vel_3T_v2.png') … … 101 107 pyplot.plot(p2.x[v], -omega*A*numpy.sin(omega*p2.time[pltind])*(w>p2.elev[v]), label='Analytical') 102 108 pyplot.legend() 109 pyplot.xlabel('x (m)') 110 pyplot.ylabel('x velocity (m/s)') 103 111 pyplot.title('Velocity near to time=3.25T') 104 112 pyplot.savefig('Vel_3_5T_v2.png') -
trunk/anuga_core/validation_tests/Tests/Analytical/runup_sinusoid/runup_sinusoidplot.py
r8412 r8433 47 47 pyplot.quiver(p1.x,p1.y,p1.xvel[t1,:],p1.yvel[t1,:]) 48 48 pyplot.title('The maximum VERTEX speed is '+ str(p1.vel[t1,:].max()) + ' m/s at time '+ str(p1.time[t1])+'s') 49 pyplot.xlabel('x (m)') 50 pyplot.ylabel('y (m)') 49 51 pyplot.savefig('vel_sinu3s_v2.png') 50 52 … … 55 57 pyplot.quiver(p2.x,p2.y,p2.xvel[t1,:],p2.yvel[t1,:]) 56 58 pyplot.title('The maximum CENTROID speed is '+ str(p2.vel[t1,:].max()) + ' m/s at time ' + str(p1.time[t1]) + ' s') 59 pyplot.xlabel('x (m)') 60 pyplot.ylabel('y (m)') 57 61 pyplot.savefig('vel_sinu3s_v2_cent.png') 58 62 … … 63 67 pyplot.quiver(p1.x,p1.y,p1.xvel[t2,:],p1.yvel[t2,:]) 64 68 pyplot.title('The maximum VERTEX speed is '+ str(p1.vel[t2,:].max()) + ' m/s at time ' + str(p1.time[t2]) +' s') 69 pyplot.xlabel('x (m)') 70 pyplot.ylabel('y (m)') 65 71 pyplot.savefig('vel_sinu30s_v2.png') 66 72 … … 71 77 pyplot.quiver(p2.x,p2.y,p2.xvel[t2,:],p2.yvel[t2,:]) 72 78 pyplot.title('The maximum CENTROID speed is '+ str(p2.vel[t2,:].max()) + ' m/s at time' + str(p1.time[t2])+ ' s') 79 pyplot.xlabel('x (m)') 80 pyplot.ylabel('y (m)') 73 81 pyplot.savefig('vel_sinu30s_v2_cent.png') 74 82 -
trunk/anuga_core/validation_tests/Tests/Analytical/trapezoidal_channel/plotme.py
r8427 r8433 83 83 # But in my tests, they are not equal 84 84 pyplot.legend( ('computed velocity', 'Analytical velocity', 'computed depth', 'analytical depth'), loc=4) 85 pyplot.xlabel('Down channel distance (m)') 86 pyplot.ylabel(' Generic scale (m or m/s)') 85 87 pyplot.savefig('trapz_velocity_downstream_l0_eq_1_EL.png') 86 88 … … 101 103 pyplot.legend( ('computed velocity (m/s)', 'analytical velocity (m/s)', 'bed elevation (m)', 'computed stage (m)', 'analytical_stage (m)') ,loc=10) 102 104 pyplot.title('Velocity (analytical and numerical) and Stage:' + '\n' +'Central channel regions (470 to 500m)' +'\n') 105 pyplot.xlabel('Cross-channel distance (m)') 106 pyplot.ylabel(' Generic scale (m or m/s)') 103 107 pyplot.savefig('trapz_velocity_cross_channel_l0_eq_1_EL.png') 104 108 … … 120 124 pyplot.legend( ('computed velocity (m/s)', 'analytical velocity (m/s)', 'bed elevation (m)', 'computed stage (m)', 'analytical_stage (m)') ,loc=10) 121 125 pyplot.title('Velocity (analytical and numerical) and Stage:' + '\n' +'Central channel regions (470 to 500m)' +'\n') 126 pyplot.xlabel('Cross-channel distance (m)') 127 pyplot.ylabel(' Generic scale (m or m/s)') 122 128 pyplot.savefig('trapz_velocity_cross_channel_l0_eq_1b_EL.png') 123 129 … … 138 144 pyplot.legend( ('computed velocity (m/s)', 'analytical velocity (m/s)', 'bed elevation (m)', 'computed stage (m)', 'analytical_stage (m)') , loc=10) 139 145 pyplot.title('Velocity (analytical and numerical) and Stage:' + '\n' +'Central channel regions (870 to 900m)' +'\n') 146 pyplot.xlabel('Cross-channel distance (m)') 147 pyplot.ylabel(' Generic scale (m or m/s)') 140 148 pyplot.savefig('trapz_velocity_cross_channel_l0_eq_1c_EL.png')
Note: See TracChangeset
for help on using the changeset viewer.