#!/bin/bash
#
#
export LANG=C 
echo "lancement du calcul"
rm VAL/knd*
   
file="Paroi_bas.dat" 
awk 'BEGIN{
      L0 = 10
      H0 = 1 
      r = 0.1*H0
      wd = L0/2. 
      xc = -0.*L0/10.
      print -0.501 * L0   " "  0.0  "  "  0.0 
      for (x = -wd ; x <= wd; x += 0.01)
        print x " " (0.001 + r*exp(-(x-xc)/H0*(x-xc)/H0))  " 0 "; 
      print  0.501 * L0   " "  0.0  "  "  0.0   
    }' > $file 
 

gerris2D -m pois2.gfs | gfsview2D vue1.gfv

echo "fin normale ?" 

gfs2oogl2D -c P -o -i < VAL/end.gfs > VAL/a.dat
 