----------------------- PLEASE READ THIS ---------------------------!!!

-- This input file is set up to run for regression check
-- Please make sure you DO NOT MODIFY AND PUSH it to the repository
                                                                          
--------------------------------------------------------------------!!!


require "common"

comment = 'channel2D'
minlevel = 1
folder = mesh -- mesh location spacified in common.lua
--folder = './mesh_wrong'
ebug = {debugMode=true, debugFiles=true, debugMesh='debug/'}

bounding_cube = { origin = {-length/2, -length/2, -length/2},
                  length = length }

spatial_object = {
  { attribute = { kind = 'seed', },
    geometry = { kind = 'canoND',
                 object = { origin = { 0.0, 0.0, 0.0 },
               }
    }
  }, -- seed
  { attribute = { kind = 'boundary', label = 'periodic', level = level },
    geometry = {
      kind = 'periodic',
      object = {
        plane1 = {
          origin = { -length/2, -height/2-dx/2, -dx/2},
          vec = { { 0.0, height+dx, 0.0},
                  { length, 0.0, 0.0},}
        }, -- plane 1
        plane2 = {
          origin = { -length/2, -height/2-dx/2, dx+dx/2},
          vec = { { length, 0.0, 0.0},
                  { 0.0, height+dx, 0.0},}
        }, -- plane 2
      }
    }
  }, -- periodic table
  { attribute = { kind = 'boundary', label = 'outlet', level = level },
    geometry = {
      kind = 'canoND',
      object = {
        origin  = { length/2-dx/2, -height/2-dx/2, dx/2 },
        vec = { { 0.0, height+dx, 0.0},
                { 0.0, 0.0,       height},
        }
      } -- object
    }
  },-- right plane
  { attribute = { kind = 'boundary', label = 'inlet', level = level },
    geometry = {
      kind = 'canoND',
      object = {
        origin  = { -length/2+dx/2, -height/2-dx/2, dx/2 },
        vec = { { 0.0, height+dx, 0.0},
                { 0.0, 0.0,       height},
        }
      } -- object
    }
  },-- left plane
  { attribute = { 
      kind = 'boundary', label = 'top_wall', level = level, calc_dist = true,
    },
    geometry = {
      kind = 'canoND',
      object = {
        origin = { -length/2, height/2 + wall_shift, -dx/2 },
        vec = { { length,0.0,0.0},
                { 0.0,0.0,height},
        }
      } -- object
    }
  }, -- top plane
  { attribute = { 
      kind = 'boundary', label = 'bottom_wall', level = level, calc_dist = true,
    },
    geometry = {
      kind = 'canoND',
      object = {
        origin  = { -length/2, -height/2 - wall_shift, -dx/2 },
        vec = { { length,0.0,0.0},
                { 0.0,0.0,height},
        }
      } -- object
    }
  },-- bottom plane
} -- spatial object
