
set samples 10000
set xlabel "k"
set ylabel "F"
set title "Wave exciting force in surge, sway, and heave motions"
plot 'forces.dat' using "%f%f" title "Surge", "forces.dat" using "%f%*f%f"  title "Sway", 'forces.dat' using "%f%*f%*f%f"  title "Heave", 'forcess.dat' using "%f%f" title "" with lines 1, "forcess.dat" using "%f%*f%f" title "" with lines 1, 'forcess.dat' using "%f%*f%*f%f" title "" with lines 1

pause -1 "Hit return to continue"
set ylabel "M/(rho*eta*g*V)"
set title "Wave exciting force in roll, pitch and yaw motions"
plot 'forces.dat' using "%f%*f%*f%*f%f" title "Roll", 'forces.dat' using "%f%*f%*f%*f%*f%f" title "Pitch", 'forces.dat' using "%f%*f%*f%*f%*f%*f%f" title "Yaw", 'forcess.dat' using "%f%*f%*f%*f%f" title "" with lines 1, 'forcess.dat' using "%f%*f%*f%*f%*f%f" title "" with lines 1, 'forcess.dat' using "%f%*f%*f%*f%*f%*f%f" title "" with lines 1

pause -1 "Hit return to continue"
set title "Phase angle of wave exiting forces in surge, sway, and heave"
set ylabel "Degrees"
plot 'phase.dat' using "%f%f" title "Surge", 'phase.dat' using "%f%*f%f"  title "Sway", 'phase.dat' using "%f%*f%*f%f"  title "Heave"#, 'phases.dat' using "%f%f" title "" with lines, "phases.dat" using "%f%*f%f"  title "" with lines, 'phases.dat' using "%f%*f%*f%f"  title "" with lines

pause -1 "Hit return to continue"
set title "Phase angle of wave exiting forces in roll, pitch, and yaw"
plot 'phase.dat' using "%f%*f%*f%*f%f" title "Roll", 'phase.dat' using "%f%*f%*f%*f%*f%f" title "Pitch", 'phase.dat' using "%f%*f%*f%*f%*f%*f%f" title "Yaw"
#, 'phases.dat' using "%f%*f%*f%*f%f" title "" with lines, 'phases.dat' using "%f%*f%*f%*f%*f%f" title "" with lines, 'phases.dat' using "%f%*f%*f%*f%*f%*f%f" title "" with lines

set nokey
set ylabel "M"

pause -1 "Hit return to continue"
set title "Added mass coefficient of surge motion"
plot 'am.dat', 'ams.dat' with lines 1

pause -1 "Hit return to continue"
set title "Added mass coefficient of sway motion"
plot 'am.dat' using "%f%*f%f", 'ams.dat' using "%f%*f%f" with lines 1

pause -1 "Hit return to continue"
set title "Added mass coefficient of heave motion"
plot 'am.dat' using "%f%*f%*f%f", 'ams.dat' using "%f%*f%*f%f" with lines 1

set ylabel "M"
pause -1 "Hit return to continue"
set title "Added mass coefficient of roll motion"
plot 'am.dat' using "%f%*f%*f%*f%f", 'ams.dat' using "%f%*f%*f%*f%f" with lines 1

pause -1 "Hit return to continue"
set title "Added mass coefficient of pitch motion"
plot 'am.dat' using "%f%*f%*f%*f%*f%f", 'ams.dat' using "%f%*f%*f%*f%*f%f" with lines 1

pause -1 "Hit return to continue"
set title "Added mass coefficient of yaw motion"
plot 'am.dat' using "%f%*f%*f%*f%*f%*f%f", 'ams.dat' using "%f%*f%*f%*f%*f%*f%f" with lines 1


set ylabel "B"

pause -1 "Hit return to continue"
set title "Damping coefficient of surge motion"
plot 'dmp.dat' using "%f%f", 'dmps.dat' using "%f%f" with lines 1

pause -1 "Hit return to continue"
set title "Damping coefficient of sway motion"
plot 'dmp.dat' using "%f%*f%f", 'dmps.dat' using "%f%*f%f" with lines 1

pause -1 "Hit return to continue"
set title "Damping coefficient of heave motion"
plot 'dmp.dat' using "%f%*f%*f%f", 'dmps.dat' using "%f%*f%*f%f" with lines 1

set ylabel "B"

pause -1 "Hit return to continue"
set title "Damping coefficient of roll motion"
plot 'dmp.dat' using "%f%*f%*f%*f%f", 'dmps.dat' using "%f%*f%*f%*f%f" with lines 1

pause -1 "Hit return to continue"
set title "Damping coefficient of pitch motion"
plot 'dmp.dat' using "%f%*f%*f%*f%*f%f", 'dmps.dat' using "%f%*f%*f%*f%*f%f" with lines 1

pause -1 "Hit return to continue"
set title "Damping coefficient of yaw motion"
plot 'dmp.dat' using "%f%*f%*f%*f%*f%*f%f", 'dmps.dat' using "%f%*f%*f%*f%*f%*f%f" with lines 1

pause -1 "Hit return to continue"
