Authors: William M. Chan
Date: May, 2002.
More detailed description of the two types of grids are given below.
If only the inner box is required, this can be achieved by specifying a zero distance to march out for all outer layers. The degenerate case of a 2D Cartesian grid is also available by specifying xmin=xmax or ymin=ymax or zmin=zmax.
The outer layers are used as transition zones from the typically fine grid spacing of the inner region to a coarser spacing for communicating with the inner surface of the far field grid.
Sample input file for ISTR=1 or 3
1, 3 IMODE,MLEVEL 2.172,2.484,0.0,0.108,0.996,1.212 X,Y,Z MINMAX (inner) 0.012, 0.006, 0.004 DX,DY,DZ 1 IOPT(1/2) 1 ISTR(1/2/3) 1, 0.05, 1.21, IAD,DOL,RMAX (JA) 1, 0.05, 1.21, IAD,DOL,RMAX (JB) 0, 0.00, 1.21, IAD,DOL,RMAX (KA) 0, 0.00, 1.21, IAD,DOL,RMAX (KB) 0, 0.00, 1.21, IAD,DOL,RMAX (LA) 1, 0.05, 1.21, IAD,DOL,RMAX (LB) output_box_grid_filename output_ellipsoid_surface_grid_filename
1, 3 IMODE,MLEVEL 0.24, 2.544, 0.0, 0.432, 0.144, 0.624 X,Y,Z MINMAX (inner) 0.012, 0.006, 0.004 DX,DY,DZ 1 IOPT(1/2) 2 ISTR(1/2/3) 1, 0.24, 1.3, 0.048 IAD,DOL,RMAX,SMAX (JA) 1, 0.24, 1.3, 0.048 IAD,DOL,RMAX,SMAX (JB) 0, 0.00, 1.3, 0.048 IAD,DOL,RMAX,SMAX (KA) 1, 0.24, 1.3, 0.048 IAD,DOL,RMAX,SMAX (KB) 1, 0.24, 1.3, 0.048 IAD,DOL,RMAX,SMAX (LA) 0, 0.00, 1.3, 0.048 IAD,DOL,RMAX,SMAX (LB) output_box_grid_filename output_ellipsoid_surface_grid_filename
1, 3 IMODE,MLEVEL input_grid_filename 0, 0, -1 JCH,KCH,LCH 1 IOPT(1/2) 1 ISTR(1/2/3) 1, 0.05, 1.21, IAD,DOL,RMAX (JA) 1, 0.05, 1.21, IAD,DOL,RMAX (JB) 0, 0.00, 1.21, IAD,DOL,RMAX (KA) 0, 0.00, 1.21, IAD,DOL,RMAX (KB) 0, 0.00, 1.21, IAD,DOL,RMAX (LA) 1, 0.05, 1.21, IAD,DOL,RMAX (LB) output_box_grid_filename output_ellipsoid_surface_grid_filenameThese input files are located in boxgr_1.i, boxgr_2.i, and boxgr_3.i.
IMODE = 1 Generate Cartesian box grid only
= 2 Generate both Cartesian box grid and far field grid
MLEVEL = 0 No restrictions on number of grid points
= 1 Number of grid points in any direction must be odd
>= 2 Number of grid points in any direction must allow MLEVEL
levels of multigrid
Second line of input is inner box minmax or input grid filename.
[X,Y,Z] MINMAX = xmin, xmax, ymin, ymax, zmin, zmax of inner box
If inner box minmax is specified, DX,DY,DZ are needed where
DX, DY, DZ = Uniform grid spacing of inner region in X, Y, Z, respectively
else if input grid filename is specified, JCH, KCH, LCH are needed where
JCH = 0 Do not consider any J boundaries for computing DX,DY,DZ
= 1 Consider J=1 boundary for computing DX,DY,DZ
= -1 Consider J=JMAX boundary for computing DX,DY,DZ
= 2 Consider both J=1 and J=JMAX boundaries for computing DX,DY,DZ
Similarly for KCH and LCH
endif
IOPT = 1 Keep DX,DY,DZ, make minmax bigger if needed
= 2 Keep minmax, make DX,DY,DZ smaller if needed
ISTR = 1 Geometric stretching for outer layers (fix s.r., increase distance)
= 2 Geomunic stretching for outer layers
= 3 Geometric stretching for outer layers (fix distance, lower s.r.)
IAD = 0 No outer layer added in this direction
= 1 Add outer layer in this direction
DOL = Total distance to march out
RMAX = Stretching ratio used for geometric stretching
SMAX = Final grid spacing used for geomunic stretching
The directions are indicated by JA (xmin), JB (xmax), KA (ymin), KB (ymax),
LA (zmin), LB (zmax).