3 path = '/Users/apek/SVN/bookgpu/Chapters/chapter7/figures/';
8 %set ylabel "Cw=Rw/(0.5*rho*S*U^2)"
10 %Fsc(U,S) = 0.5*1000*S*U*U
11 data0 = load('Series60CB06HalfModelforcex.dat');
16 U = froude*sqrt(9.81);
19 force_scale = 0.5*1000*S*U.*U;
21 data1 = load('S60b_resistance.dat');
24 plot(froude,forcex./force_scale,'ks',froude1,forcex1,'kx')
28 ylabel('Cw=Rw/(0.5*rho*S*U^2)')
29 legend('N=513x257x9','Cr, Toda et al 1992')
31 %plot "Series60CB06HalfModelforcex.dat" using 1:(2.0*abs($3)/Fsc(($1)*sqrt(9.81),2.0*0.0797)) title "N=513x257" pointsize 2 linewidth 2 lc rgb "black",\
32 % "/home/ole/postdoc/Series60/S60b_resistance.dat" using 3:7 title "Cr, Toda et al 1992" linewidth 2 lc rgb "gray"
34 %set term postscript eps enhanced color
35 %set output "Series60CB06Cw.eps"
38 %set terminal png enhanced large
39 %set output "Series60CB06Cw.png"
44 filename = 'figSeries60CB06Type7Resistance.eps';
47 print('-depsc',[path filename])