iccsa-21-wind

Wind Simulation Using High-Frequency Velocity Component Measurements
git clone https://git.igankevich.com/iccsa-21-wind.git
Log | Files | Refs

vtestbed.gnuplot (2247B)


      1 set terminal svg size 450,450/2 font 'Free Serif, 10' enhanced round dynamic
      2 set xtics nomirror out offset 0,0.5
      3 set ytics nomirror out offset 0.5,0
      4 set border 1+2 back
      5 set xlabel offset 0,1.25
      6 set title offset 0,-1
      7 set tmargin 1
      8 set lmargin 6
      9 set rmargin 1
     10 unset key
     11 
     12 set output 'build/gnuplot/vtestbed.svg'
     13 
     14 set multiplot layout 2,3
     15 
     16 n = 1
     17 rad2deg(rad) = (rad * 180) / pi
     18 set xrange [0:40]
     19 set yrange [0:*]
     20 set xlabel 'Lag'
     21 
     22 set title 'ACF X'
     23 set xtics 0,10
     24 plot \
     25 'build/vtestbed/anem/acf-X' using 1:2 every n with points pt 6 lc '#404040' notitle,\
     26 '' using 1:3 with lines lw 2 lc '#404040' title 'Real',\
     27 'build/vtestbed/vtb/acf-X' using 1:2 every n with points pt 6 lc '#c04040' notitle,\
     28 '' using 1:3 with lines lw 2 lc '#c04040' title 'Simulated'
     29 
     30 set title 'ACF Y'
     31 plot \
     32 'build/vtestbed/anem/acf-Y' using 1:2 every n with points pt 6 lc '#404040' notitle,\
     33 '' using 1:3 with lines lw 2 lc '#404040' title 'Real',\
     34 'build/vtestbed/vtb/acf-Y' using 1:2 every n with points pt 6 lc '#c04040' notitle,\
     35 '' using 1:3 with lines lw 2 lc '#c04040' title 'Simulated'
     36 
     37 set title 'ACF Y'
     38 plot \
     39 'build/vtestbed/anem/acf-Z' using 1:2 every n with points pt 6 lc '#404040' notitle,\
     40 '' using 1:3 with lines lw 2 lc '#404040' title 'Real',\
     41 'build/vtestbed/vtb/acf-Z' using 1:2 every n with points pt 6 lc '#c04040' notitle,\
     42 '' using 1:3 with lines lw 2 lc '#c04040' title 'Simulated'
     43 
     44 n = 5
     45 
     46 set xrange [0:*]
     47 set xtics 0,2
     48 set xlabel 'Velocity, m/s'
     49 set title 'Wind speed'
     50 plot \
     51 'build/vtestbed/anem/velocity' using 1:2 every n with points pt 6 lc '#404040' notitle,\
     52 '' using 1:3 with lines lw 2 lc '#404040' title 'Real',\
     53 'build/vtestbed/vtb/velocity' using 1:2 every n with points pt 6 lc '#c04040' notitle,\
     54 '' using 1:3 with lines lw 2 lc '#c04040' title 'Simulated'
     55 
     56 n = 20
     57 
     58 set xrange [-180:0]
     59 set xtics -180,90
     60 set key top right Left reverse width -20
     61 set xlabel 'Direction, degrees'
     62 set title 'Wind direction'
     63 plot \
     64 'build/vtestbed/anem/direction' using (rad2deg($1)):2 every n with points pt 6 lc '#404040' notitle,\
     65 '' using 1:3 with lines lw 2 lc '#404040' title 'Real',\
     66 'build/vtestbed/vtb/direction' using (rad2deg($1)):2 every n with points pt 6 lc '#c04040' notitle,\
     67 '' using 1:3 with lines lw 2 lc '#c04040' title 'Simulated'