 $GLOBAL
   PROJECT = .T.,
   ORPHFIX = .T.,
   LEVEL2  = .T.,
   FRINGE  = 2,
   OFFSET  = 1,
   DISTANCE = 27,
   CNX = 1024,
   CNY = 1024,
   CNZ = 1024,
   $END

 $MESH NAME =  'body', $END

 $MESH NAME =  'nosecap', $END

 $MESH NAME =  'tailcap', $END

 $MESH NAME =  'slat_collar', $END

 $MESH NAME =  'slat', $END

 $MESH NAME =  'slat_tipcap1', $END

 $MESH NAME =  'slat_tipcap2', $END

 $MESH NAME =  'slat_tecap1', $END

 $MESH NAME =  'slat_tecap2', $END

 $MESH NAME =  'slat_tecap3', $END

 $MESH NAME =  'wing_collar', $END

 $MESH NAME =  'wing', $END

 $MESH NAME =  'wing_tipcap1', $END

 $MESH NAME =  'wing_tipcap2', $END

 $MESH NAME =  'wing_tipcap3', $END

 $MESH NAME =  'wing_tipcap4', $END

 $MESH NAME =  'wing_tipcap5', $END

 $MESH NAME =  'wing_tipcap6', $END

 $MESH NAME =  'wing_tecap1', $END

 $MESH NAME =  'wing_tecap2', $END

 $MESH NAME =  'wing_tecap3', $END

 $MESH NAME =  'flap_collar', $END

 $MESH NAME =  'flap', $END 

 $MESH NAME =  'flap_tipcap1', $END

 $MESH NAME =  'flap_tipcap2', $END

 $MESH NAME =  'flap_tecap1', $END

 $MESH NAME =  'flap_tecap2', $END 

 $MESH NAME =  'flap_tecap3', $END

 $MESH NAME =  'slat_wake_box', $END

 $MESH NAME =  'wing_wake_box', $END

 $MESH NAME =  'mid_box', $END

 $MESH NAME =  'outer_box' $END

 $MESH NAME =  'flap_cove_box_lwr', $END

 $MESH NAME =  'flap_cove_box_upr' $END

 $BCINP ISPARTOF = 'body', 
    IBTYP =     5,   17,   17,
    IBDIR =     3,    2,   -2,
    JBCS  =     1,    1,    1,
    JBCE  =    -1,   -1,   -1,
    KBCS  =     1,    1,   -1,
    KBCE  =    -1,    1,   -1,
    LBCS  =     1,    1,    1,
    LBCE  =     1,   -1,   -1,
    YSYM  = 1,
    $END

 $BCINP ISPARTOF = 'nosecap', 
    IBTYP =     5,   17,
    IBDIR =     3,    2,
    JBCS  =     1,    1,
    JBCE  =    -1,   -1,
    KBCS  =     1,    1,
    KBCE  =    -1,    1,
    LBCS  =     1,    1,
    LBCE  =     1,   -1,
    YSYM  = 1,
    $END

 $BCINP ISPARTOF = 'tailcap',
    IBTYP =     5,   17,
    IBDIR =     3,   -1,
    JBCS  =     1,   -1,
    JBCE  =    -1,   -1,
    KBCS  =     1,    1,
    KBCE  =    -1,   -1,
    LBCS  =     1,    1,
    LBCE  =     1,   -1,
    YSYM  = 1,
    $END

 $BCINP ISPARTOF = 'slat_collar', 
    IBTYP =     5,    5,   51,   
    IBDIR =     3,    3,    3,   
    JBCS  =     1,   29,    1,   
    JBCE  =    -1,  -29,   28,   
    KBCS  =     1,   19,   19,   
    KBCE  =    19,   -1,   -1,   
    LBCS  =     1,    1,    1,   
    LBCE  =     1,    1,    1,   
    $END

 $BCINP ISPARTOF = 'slat', 
    IBTYP =     5,   51,   
    IBDIR =     3,    3,   
    JBCS  =    29,    1,   
    JBCE  =   -29,   28,   
    KBCS  =     1,    1,   
    KBCE  =    -1,   -1,   
    LBCS  =     1,    1,   
    LBCE  =     1,    1,   
    $END

 $BCINP ISPARTOF = 'slat_tipcap1', 
    IBTYP =     5,   52,
    IBDIR =     3,    3,
    JBCS  =     1,   74,
    JBCE  =    73,   -1,
    KBCS  =     1,    1,
    KBCE  =    -1,   37,
    LBCS  =     1,    1,
    LBCE  =     1,    1,
    $END

 $BCINP ISPARTOF = 'slat_tipcap2', 
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'slat_tecap1',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'slat_tecap2',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'slat_tecap3',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'wing_collar',
    IBTYP =     5,    5,   51,
    IBDIR =     3,    3,    3,
    JBCS  =     1,   37,    1,
    JBCE  =    -1,  -37,   36,
    KBCS  =     1,   19,   19,
    KBCE  =    19,   -1,   -1,
    LBCS  =     1,    1,    1,
    LBCE  =     1,    1,    1,
    $END

 $BCINP ISPARTOF = 'wing',
    IBTYP =     5,   51,
    IBDIR =     3,    3,
    JBCS  =    37,    1,
    JBCE  =   -37,   36,
    KBCS  =     1,    1,
    KBCE  =    -1,   -1,
    LBCS  =     1,    1,
    LBCE  =     1,    1,
    $END

 $BCINP ISPARTOF = 'wing_tipcap1',
    IBTYP =     5,   52,
    IBDIR =     3,    3,
    JBCS  =     1,   38,
    JBCE  =    37,   -1,
    KBCS  =     1,    1,
    KBCE  =    -1,   37,
    LBCS  =     1,    1,
    LBCE  =     1,    1,
    $END

 $BCINP ISPARTOF = 'wing_tipcap2',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'wing_tipcap3',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'wing_tipcap4',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'wing_tipcap5',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'wing_tipcap6',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'wing_tecap1',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'wing_tecap2',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'wing_tecap3',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'flap_collar',
    IBTYP =     5,    5,   51,
    IBDIR =     3,    3,    3,
    JBCS  =     1,   37,    1,
    JBCE  =    -1,  -37,   36,
    KBCS  =     1,   19,   19,
    KBCE  =    19,   -1,   -1,
    LBCS  =     1,    1,    1,
    LBCE  =     1,    1,    1,
    $END

 $BCINP ISPARTOF = 'flap',
    IBTYP =     5,   51,
    IBDIR =     3,    3,
    JBCS  =    37,    1,
    JBCE  =   -37,   36,
    KBCS  =     1,    1,
    KBCE  =    -1,   -1,
    LBCS  =     1,    1,
    LBCE  =     1,    1,
    $END

 $BCINP ISPARTOF = 'flap_tipcap1',
    IBTYP =     5,   52,
    IBDIR =     3,    3,
    JBCS  =     1,   74,
    JBCE  =    73,   -1,
    KBCS  =     1,    1,
    KBCE  =    -1,   37,
    LBCS  =     1,    1,
    LBCE  =     1,    1,
    $END

 $BCINP ISPARTOF = 'flap_tipcap2',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'flap_tecap1',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'flap_tecap2',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'flap_tecap3',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'slat_wake_box', $END

 $BCINP ISPARTOF = 'wing_wake_box', $END

 $BCINP ISPARTOF = 'mid_box',
    IBTYP =    17,
    IBDIR =     2,
    JBCS  =     1,
    JBCE  =    -1,
    KBCS  =     1,
    KBCE  =     1,
    LBCS  =     1,
    LBCE  =    -1,
    YSYM  = 1,
    $END

 $BCINP ISPARTOF = 'outer_box' 
    IBTYP =    40,   31,   40,   17,   40,   40,
    IBDIR =     1,   -1,   -2,    2,    3,   -3,
    JBCS  =     1,   -1,    1,    1,    1,    1,
    JBCE  =     1,   -1,   -1,   -1,   -1,   -1,
    KBCS  =     1,    1,   -1,    1,    1,    1,
    KBCE  =    -1,   -1,   -1,    1,   -1,   -1,
    LBCS  =     1,    1,    1,    1,    1,   -1,
    LBCE  =    -1,   -1,   -1,   -1,    1,   -1,
    YSYM  = 1,
    $END

 $BCINP ISPARTOF = 'flap_cove_box_lwr',
    IBTYP =     5,
    IBDIR =     3,
    JBCS  =     1,
    JBCE  =    19,
    KBCS  =     1,
    KBCE  =    -1,
    LBCS  =     1,
    LBCE  =     1,
    $END

 $BCINP ISPARTOF = 'flap_cove_box_upr', $END
C
C  Index cutter in body.
C
    $REGION NAME = 'Index cutter in body',
           ISPARTOF = 'body',
                       $END

      $VOLUME ISPARTOF = 'Index cutter in body',
           JRANGE =  33,  34,
           KRANGE =  37,  38,
           LRANGE =   1,  28,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in body',
           JRANGE =  75,  75,
           KRANGE =  48,  49,
           LRANGE =   1,  30,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in body',
           JRANGE =   1,   1,
           KRANGE =   2,   2,
           LRANGE =  47,  49,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in body',
           JRANGE =   1,   1,
           KRANGE =  72,  72,
           LRANGE =  47,  49,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in body',
           JRANGE =  -1,  -1,
           KRANGE =   2,   2,
           LRANGE =  47,  49,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in body',
           JRANGE =  -1,  -1,
           KRANGE =  72,  72,
           LRANGE =  47,  49,
                      $END
C
C  Index cutter in slat_collar.
C
    $REGION NAME = 'Index cutter in slat_collar',
           ISPARTOF = 'slat_collar',
                       $END

      $VOLUME ISPARTOF = 'Index cutter in slat_collar',
           JRANGE =  29,  36,
           KRANGE =  19,  -1,
           LRANGE =   1,  17,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in slat_collar',
           JRANGE = -39, -29,
           KRANGE =  19,  -1,
           LRANGE =   1,  17,
                      $END
C
C  Index cutter in slat.
C
    $REGION NAME = 'Index cutter in slat',
           ISPARTOF = 'slat',
                       $END

      $VOLUME ISPARTOF = 'Index cutter in slat',
           JRANGE =  29,  36,
           KRANGE =   1,  -1,
           LRANGE =   1,  17,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in slat',
           JRANGE = -39, -29,
           KRANGE =   1,  -1,
           LRANGE =   1,  17,
                      $END
C
C  Index cutter in slat_tipcap1.
C
    $REGION NAME = 'Index cutter in slat_tipcap1',
           ISPARTOF = 'slat_tipcap1',
                       $END

      $VOLUME ISPARTOF = 'Index cutter in slat_tipcap1',
           JRANGE =  68,  73,
           KRANGE =   1,  -1,
           LRANGE =   1,  17,
                      $END
C
C  Index cutter in wing_collar.
C
    $REGION NAME = 'Index cutter in wing_collar',
           ISPARTOF = 'wing_collar',
                       $END

      $VOLUME ISPARTOF = 'Index cutter in wing_collar',
           JRANGE =  37,  44,
           KRANGE =  19,  -1,
           LRANGE =   1,  17,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in wing_collar',
           JRANGE = -47, -37,
           KRANGE =  19,  -1,
           LRANGE =   1,  17,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in wing_collar',
           JRANGE = 163, 167,
           KRANGE =  10,  12,
           LRANGE =   1,  25,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in wing_collar',
           JRANGE =   7,   7,
           KRANGE =  10,  10,
           LRANGE =   1,  29,
                      $END
C
C ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C  This cutter creates a hole where the flap_cove_box grids should take over.
C ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C
      $VOLUME ISPARTOF = 'Index cutter in wing_collar',
           JRANGE =  84,  94,
           KRANGE =  21,  -1,
           LRANGE =  25,  29,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in wing_collar',
           JRANGE =  51,  83,
           KRANGE =  21,  -1,
           LRANGE =  30,  30,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in wing_collar',
           JRANGE =  34,  50,
           KRANGE =  21,  -1,
           LRANGE =  24,  29,
                      $END
C
C  Index cutter in wing.
C
    $REGION NAME = 'Index cutter in wing',
           ISPARTOF = 'wing',
                       $END

      $VOLUME ISPARTOF = 'Index cutter in wing',
           JRANGE =  37,  44,
           KRANGE =   1,  -1,
           LRANGE =   1,  17,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in wing',
           JRANGE = -47, -37,
           KRANGE =   1,  -1,
           LRANGE =   1,  17,
                      $END

C ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C  This cutter creates a hole where the slat_wake_box grid should take-over.
C ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      $VOLUME ISPARTOF = 'Index cutter in wing',
           JRANGE = 158, 257,
           KRANGE =   1,  -1,
           LRANGE =  25,  37,
                      $END

C ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C  This cutter creates a hole where the flap_cove_box grids should take over.
C ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      $VOLUME ISPARTOF = 'Index cutter in wing',
           JRANGE =  86,  95,
           KRANGE =   1,  37,
           LRANGE =  23,  34,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in wing',
           JRANGE =  50,  85,
           KRANGE =   1,  37,
           LRANGE =  33,  34,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in wing',
           JRANGE =  35,  50,
           KRANGE =   1,  37,
           LRANGE =  23,  34,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in wing',
           JRANGE =  86,  95,
           KRANGE =  38,  -5,
           LRANGE =  23,  34,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in wing',
           JRANGE =  50,  85,
           KRANGE =  38,  -5,
           LRANGE =  31,  34,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in wing',
           JRANGE =  35,  50,
           KRANGE =  38,  -5,
           LRANGE =  23,  34,
                      $END
C
C  Index cutter in wing_tipcap1.
C
    $REGION NAME = 'Index cutter in wing_tipcap1',
           ISPARTOF = 'wing_tipcap1',
                       $END

      $VOLUME ISPARTOF = 'Index cutter in wing_tipcap1',
           JRANGE =  32,  37,
           KRANGE =   1,  -1,
           LRANGE =   1,  17,
                      $END
C
C  Index cutter in flap_collar.
C
    $REGION NAME = 'Index cutter in flap_collar',
           ISPARTOF = 'flap_collar',
                       $END

      $VOLUME ISPARTOF = 'Index cutter in flap_collar',
           JRANGE =  37,  47,
           KRANGE =  19,  -1,
           LRANGE =   1,  13,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in flap_collar',
           JRANGE = -47, -37,
           KRANGE =  19,  -1,
           LRANGE =   1,  13,
                      $END
C
C  Index cutter in flap.
C
    $REGION NAME = 'Index cutter in flap',
           ISPARTOF = 'flap',
                       $END

      $VOLUME ISPARTOF = 'Index cutter in flap',
           JRANGE =  37,  47,
           KRANGE =   1,  -1,
           LRANGE =   1,  17,
                      $END

      $VOLUME ISPARTOF = 'Index cutter in flap',
           JRANGE = -47, -37,
           KRANGE =   1,  -1,
           LRANGE =   1,  17,
                      $END

C ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C  This cutter creates a hole where the wing_wake_box grid should take-over.
C ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      $VOLUME ISPARTOF = 'Index cutter in flap',
           JRANGE = 113, 177,
           KRANGE =   1,  -1,
           LRANGE =  24,  38,
                      $END
C
C  Index cutter in flap_tipcap1.
C
    $REGION NAME = 'Index cutter in flap_tipcap1',
           ISPARTOF = 'flap_tipcap1',
                       $END

      $VOLUME ISPARTOF = 'Index cutter in flap_tipcap1',
           JRANGE =  68,  73,
           KRANGE =   1,  -1,
           LRANGE =   1,  17,
                      $END
C
C  Symmetry Plane Trim.
C
    $BOUNDARY NAME = 'symmetry plane trim',
           ISPARTOF = 'outer_box',
           MHOLEIN  = 'slat',
                      'slat_tecap2',
                      'wing',
                      'wing_tecap2',
                      'flap',
                      'flap_tecap2',
           CLOSED = .F.,
                       $END

      $SURFACE ISPARTOF = 'symmetry plane trim',
           JRANGE =  1, -1,
           KRANGE =  1,  1,
           LRANGE =  1, -1,
           NVOUT  = '+K',
                       $END
