// Gmsh project created on Wed Dec 13 09:26:09 2017
a=5;
r=2;
Point(   1) = {  1.000000, -0.000000,   0};
Point(   2) = {  0.999013,  0.000143,   0};
Point(   3) = {  0.996057,  0.000572,   0};
Point(   4) = {  0.991144,  0.001280,   0};
Point(   5) = {  0.984292,  0.002260,   0};
Point(   6) = {  0.975528,  0.003501,   0};
Point(   7) = {  0.964888,  0.004990,   0};
Point(   8) = {  0.952414,  0.006710,   0};
Point(   9) = {  0.938153,  0.008643,   0};
Point(  10) = {  0.922164,  0.010770,   0};
Point(  11) = {  0.904508,  0.013071,   0};
Point(  12) = {  0.885257,  0.015523,   0};
Point(  13) = {  0.864484,  0.018106,   0};
Point(  14) = {  0.842274,  0.020795,   0};
Point(  15) = {  0.818712,  0.023569,   0};
Point(  16) = {  0.793893,  0.026405,   0};
Point(  17) = {  0.767913,  0.029279,   0};
Point(  18) = {  0.740877,  0.032168,   0};
Point(  19) = {  0.712890,  0.035048,   0};
Point(  20) = {  0.684062,  0.037896,   0};
Point(  21) = {  0.654508,  0.040686,   0};
Point(  22) = {  0.624345,  0.043394,   0};
Point(  23) = {  0.593691,  0.045992,   0};
Point(  24) = {  0.562667,  0.048455,   0};
Point(  25) = {  0.531395,  0.050754,   0};
Point(  26) = {  0.500000,  0.052862,   0};
Point(  27) = {  0.468605,  0.054749,   0};
Point(  28) = {  0.437333,  0.056390,   0};
Point(  29) = {  0.406309,  0.057755,   0};
Point(  30) = {  0.375655,  0.058819,   0};
Point(  31) = {  0.345492,  0.059557,   0};
Point(  32) = {  0.315938,  0.059947,   0};
Point(  33) = {  0.287110,  0.059971,   0};
Point(  34) = {  0.259123,  0.059614,   0};
Point(  35) = {  0.232087,  0.058863,   0};
Point(  36) = {  0.206107,  0.057712,   0};
Point(  37) = {  0.181288,  0.056159,   0};
Point(  38) = {  0.157726,  0.054206,   0};
Point(  39) = {  0.135516,  0.051862,   0};
Point(  40) = {  0.114743,  0.049138,   0};
Point(  41) = {  0.095492,  0.046049,   0};
Point(  42) = {  0.077836,  0.042615,   0};
Point(  43) = {  0.061847,  0.038859,   0};
Point(  44) = {  0.047586,  0.034803,   0};
Point(  45) = {  0.035112,  0.030473,   0};
Point(  46) = {  0.024472,  0.025893,   0};
Point(  47) = {  0.015708,  0.021088,   0};
Point(  48) = {  0.008856,  0.016078,   0};
Point(  49) = {  0.003943,  0.010884,   0};
Point(  50) = {  0.000987,  0.005521,   0};
Point(  51) = {  0.000000,  0.000000,   0};
Point(  52) = {  0.000987, -0.005521,   0};
Point(  53) = {  0.003943, -0.010884,   0};
Point(  54) = {  0.008856, -0.016078,   0};
Point(  55) = {  0.015708, -0.021088,   0};
Point(  56) = {  0.024472, -0.025893,   0};
Point(  57) = {  0.035112, -0.030473,   0};
Point(  58) = {  0.047586, -0.034803,   0};
Point(  59) = {  0.061847, -0.038859,   0};
Point(  60) = {  0.077836, -0.042615,   0};
Point(  61) = {  0.095492, -0.046049,   0};
Point(  62) = {  0.114743, -0.049138,   0};
Point(  63) = {  0.135516, -0.051862,   0};
Point(  64) = {  0.157726, -0.054206,   0};
Point(  65) = {  0.181288, -0.056159,   0};
Point(  66) = {  0.206107, -0.057712,   0};
Point(  67) = {  0.232087, -0.058863,   0};
Point(  68) = {  0.259123, -0.059614,   0};
Point(  69) = {  0.287110, -0.059971,   0};
Point(  70) = {  0.315938, -0.059947,   0};
Point(  71) = {  0.345492, -0.059557,   0};
Point(  72) = {  0.375655, -0.058819,   0};
Point(  73) = {  0.406309, -0.057755,   0};
Point(  74) = {  0.437333, -0.056390,   0};
Point(  75) = {  0.468605, -0.054749,   0};
Point(  76) = {  0.500000, -0.052862,   0};
Point(  77) = {  0.531395, -0.050754,   0};
Point(  78) = {  0.562667, -0.048455,   0};
Point(  79) = {  0.593691, -0.045992,   0};
Point(  80) = {  0.624345, -0.043394,   0};
Point(  81) = {  0.654508, -0.040686,   0};
Point(  82) = {  0.684062, -0.037896,   0};
Point(  83) = {  0.712890, -0.035048,   0};
Point(  84) = {  0.740877, -0.032168,   0};
Point(  85) = {  0.767913, -0.029279,   0};
Point(  86) = {  0.793893, -0.026405,   0};
Point(  87) = {  0.818712, -0.023569,   0};
Point(  88) = {  0.842274, -0.020795,   0};
Point(  89) = {  0.864484, -0.018106,   0};
Point(  90) = {  0.885257, -0.015523,   0};
Point(  91) = {  0.904508, -0.013071,   0};
Point(  92) = {  0.922164, -0.010770,   0};
Point(  93) = {  0.938153, -0.008643,   0};
Point(  94) = {  0.952414, -0.006710,   0};
Point(  95) = {  0.964888, -0.004990,   0};
Point(  96) = {  0.975528, -0.003501,   0};
Point(  97) = {  0.984292, -0.002260,   0};
Point(  98) = {  0.991144, -0.001280,   0};
Point(  99) = {  0.996057, -0.000572,   0};
Point( 100) = {  0.999013, -0.000143,   0};
Point(101)={1,r,0};
Point(102)={1,-r,0};
Point(103)={a,0,0};
Point(104)={a,r,0};
Point(105)={a,-r,0};
//Point(106)={1-r,0,0};
//+
Line(1) = {1, 103};
Line(2) = {103, 1};
//+
Transfinite Line {1} = 15 Using Progression 1.2;
Transfinite Line {2} = 15 Using Progression 1/1.2;
//+
Line(3) = {101, 104};
//+
Line(4) = {104, 103};
//+
Line(5) = {103, 105};
//+
Line(6) = {105, 102};
//+
Circle(7) = {101, 1, 102};
//Define foil spline 
Spline(8)={1:42};
Spline(9)={42:60};
Spline(10)={60:100,1};
Transfinite Line {9} = 11 Using Bump 5;
Transfinite Line {8} = 15 Using Progression 1.05;
Transfinite Line {10} = 15 Using Progression 1/1.05;
//+
Line Loop(1) = {3, 4, 5, 6, -7};
//+
Line Loop(2) = {1,8, 9, 10,2};
//+
Plane Surface(1) = {1, 2};
//
Field[1] = BoundaryLayer;
Field[1].EdgesList = {1,8, 9, 10,2};
Field[1].NodesList = {103,1,42,60,1,103};
Field[1].hfar = 0.2;
Field[1].hwall_n = 0.0005;
Field[1].thickness = 0.15;
Field[1].ratio = 1.1;
//Field[1].AnisoMax = 10;
Field[1].Quads = 1;
Field[1].IntersectMetrics = 0;
BoundaryLayer Field = 1;//+
