iccsa-20-wind

Virtual Testbed: Simulation of Air Flow Around Ship Hull and Its Effect on Ship Motions
git clone https://git.igankevich.com/iccsa-20-wind.git
Log | Files | Refs

velocity.gnuplot (690B)


      1 set terminal svg dynamic size 1080/4*1.9, 1080/4 round enhanced font 'Liberation Serif, 12'
      2 set output 'build/gnuplot/velocity.svg'
      3 s = 180.0/pi
      4 #static_roll = 0.247885
      5 #static_roll = 0.246736
      6 static_roll = 0
      7 
      8 unset key
      9 set grid
     10 set border 1+2 back
     11 set xtics nomirror out offset 0,0.5
     12 set ytics nomirror out offset 0.5,0
     13 #set xrange [0:*]
     14 #set yrange [0:*]
     15 load 'gnuplot/rdbu.pal'
     16 
     17 set multiplot layout 1,2
     18 
     19 set xlabel 'Wind velocity, m/s' offset 0,1
     20 set ylabel 'Roll angle, °' offset 1.5,0
     21 plot 'gnuplot/wind-aurora.dat' using 1:($3*s) with linespoints ls 1 lw 2 pt 7 ps 0.5
     22 
     23 set ylabel 'Ship velocity, m/s'
     24 plot 'gnuplot/wind-aurora.dat' using 1:2 with linespoints ls 1 lw 2 pt 7 ps 0.5