The following description really needs to be updated. For the moment, look at the source code to see what is expected.
The geometric description of the flow domain is read in from the Bezier file (e.g. sod2.bez) and is used by mb_prep to set up the grids and initial flow solution (i.e. at t = 0). The preferred way to set up the Bezier file is to use the scriptit, however the Bezier file is a normal text file that may be written "by hand" with any text editor.
The geometry for each block is specified as a set of 4 polylines; one for each of the 4 block boundaries.
Line 1 of the the Bezier file provides a title. Line 2 specifies the number of blocks nblock. The data for blocks 0 through nblock-1 follow from line 3.
The data for each block consists of a one-line title,
one line for the grid-generation option
0 = Coons patch (transfinite interpolation),
1 = AO grid generation (Knupp's elliptic method),
2 = Ruled-grid (where internal grid lines are straight),
followed by 4 sets of polyline data for
the South, North, West and East boundaries respectively.
For each polyline, the data are specified as...
Here is the sod2.bez Bezier file as an example...
One-dimensional shock tube (Sod test case) 2 nblock Block 0 is the driver section 0 generation option 1 0 0 0.0 0.0 South: generated by quad.c 0.000000 0.000000 0.166667 0.000000 0.333333 0.000000 0.500000 0.000000 1 0 0 0.0 0.0 North : generated by quad.c 0.000000 0.100000 0.166667 0.100000 0.333333 0.100000 0.500000 0.100000 1 0 0 0.0 0.0 West : generated by quad.c 0.000000 0.000000 0.000000 0.033333 0.000000 0.066667 0.000000 0.100000 1 0 0 0.0 0.0 East : generated by quad.c 0.500000 0.000000 0.500000 0.033333 0.500000 0.066667 0.500000 0.100000 Block 1 is the driven section 0 generation option 1 0 0 0.0 0.0 South: generated by quad.c 0.500000 0.000000 0.666667 0.000000 0.833333 0.000000 1.000000 0.000000 1 0 0 0.0 0.0 North : generated by quad.c 0.500000 0.100000 0.666667 0.100000 0.833333 0.100000 1.000000 0.100000 1 0 0 0.0 0.0 West : generated by quad.c 0.500000 0.000000 0.500000 0.033333 0.500000 0.066667 0.500000 0.100000 1 0 0 0.0 0.0 East : generated by quad.c 1.000000 0.000000 1.000000 0.033333 1.000000 0.066667 1.000000 0.100000
Since points on the Bezier curves are essentially weighted summations of the control-point positions, a nonuniform distribution of control-point locations will result in a nonuniform distribution of points along the Bezier curve. This is most easily demonstrated with 4 colinear control points defining a straight line. Putting the intermediate control points at any 2 locations along the line will still result in the Bezier curve being a straight line. However, to get a uniform distribution of points along the line, the intermediate control points need to be set at distances 1/3 and 2/3 along the line. This effect has implications for the AO grid generator since the first stage of the generator makes use of what is assumed to be a set uniformly distributed cells. If, for a particular Bezier curve, a uniform variation of Bezier parameter results in a very nonuniform distribution of points in the physical plane, a very strange grid will be generated.