lbm-d3q19

3D lattice-Boltzmann code to approximate Navier-Stokes incompressible flow
git clone git://src.adamsgaard.dk/lbm-d3q19 # fast
git clone https://src.adamsgaard.dk/lbm-d3q19.git # slow
Log | Files | Refs | README | LICENSE Back to index

plotmatrix.gp (408B)


      1 #!/usr/env gnuplot
      2 
      3 # plot matrix file. Invoke with:
      4 #   $ gnuplot -e "matrixfile='file.txt'" plotmatrix.gp
      5 
      6 set terminal png
      7 set output matrixfile.".png"
      8 
      9 set size ratio -1
     10 
     11 set title "LBM D3Q19"
     12 set xlabel "x"
     13 set ylabel "z"
     14 set cblabel "density"
     15 
     16 set cbrange [0.99999:]
     17 
     18 # Without interpolation
     19 set pm3d map
     20 
     21 # With interpolation
     22 #set pm3d map interpolate 0,0
     23 
     24 
     25 #set palette gray
     26 splot matrixfile matrix
     27