! GMANPRE - Version 6.100 (last changed 1997/08/07 20:47:48) ! ! Read in the Common Grid File. You can convert a PLOT3D file to a ! Common Grid File using cfcnvt. FILE demo.cgd ! ! Select Zone 1 - Airfoil Grid ZONE 1 ! ! Select the overlap boundary type - This type is useful for setting up ! Chimera grids and for setting boundary conditions on interior grid ! points. For this case, Zone 2 (Flap grid) is embedded in zone 1. BOUNDARY OLAP ! ! Use a surface from another grid to cut a hole for Chimera CUTTER SURFACE TYPE ! ! Choose the surfaces in zone 2 that will define the hole. CUTTER SURFACE IN ZONE 2 I20 J26 K1 TO I160 J26 K1 INCREMENT 1 CUTTER SURFACE IN ZONE 2 I20 J1 K1 TO I20 J26 K1 INCREMENT 1 CUTTER SURFACE IN ZONE 2 I160 J1 K1 TO I160 J26 K1 INCREMENT 1 ! ! Set a label number - Must be greater than 6. LABEL 7 ! ! Generate the Hole GENERATE HOLE ! ! Now define the "fringe" - Use the previously defined hole to define ! the fringe. Other options allow you to define a fringe as the outer ! surfaces of a grid block. This is useful if two blocks overlap ! but cutting a hole is not necessary, or for the embedded grid as ! demonstrated below. FRINGE-MODE HOLE GENERATE FRINGE ! ! Now set the boundary condition on the fringe. You can set any BC. ! For this case we are coupling to zone 2. SET FRINGE BOUNDARY COUPLED TO ZONE 2 BOUNDARY OLAP UPDATE ! ! Now go to zone 2 (flap grid) to set the overlap boundary conditions. ZONE 2 BOUNDARY OLAP ! ! Since this grid is completed embedded in zone 1 and the outer ! boundaries do not overlap any solid boundaries, cutting a hole is not ! necessary, and we can use the outer boundaries to define the fringe. FRINGE-MODE OUTER BOUNDARY ON I1 FRINGE-MODE OUTER BOUNDARY ON IMAX FRINGE-MODE OUTER BOUNDARY ON JMAX ! ! Use another label to uniquely define this fringe. LABEL 8 GENERATE FRINGE ! ! Couple this fringe to zone 1. We could set any BC as described above. SET FRINGE BOUNDARY COUPLED TO ZONE 1 BOUNDARY OLAP UPDATE ! ! Now go back to zone 1 to finish setting BCs. ZONE 1 ! ! Boundaries I1 (I=1) and IMAX (I=IMAX) are outflow boundaries of the C ! grid surrounding the airfoil. BOUNDARY I1 CONFINED OUTFLOW UPDATE BOUNDARY IMAX CONFINED OUTFLOW UPDATE ! ! Boundary JMAX (J=JMAX) is the outer boundary of the airflow and should ! be set to freestream conditions (INFLOW OUTFLOW). BOUNDARY JMAX INFLOW OUTFLOW UPDATE ! ! Boundary J1 (J=1) is the airfoil and the C-grid cut line. First ! couple the grid to itself. The remaining UNDEFINED points will be the ! airfoil. Set them to viscous wall. BOUNDARY J1 CPMODE POINT MATCH COUPLED TO ZONE 1 BOUNDARY J1 UNDEFINED IS VISCOUS WALL UPDATE ! ! Now finish the BCs in zone 2 (flap grid). ZONE 2 ! ! The outer and downstream boundaries have been coupled to zone 1 ! already, so the J1 boundary is the only one remaining. Do this the ! same way as the Zone 1 J1 boundary was done. BOUNDARY J1 COUPLED TO ZONE 2 BOUNDARY J1 UNDEFINED IS VISCOUS WALL UPDATE ! ! OK. You're done. Now check the boundary conditions to be sure ! everything is defined. ZONE ALL CHECK BOUNDARY