Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

GRID GENERATION 2-1

2 GRID GENERATION

2.1 General Comments

Unlike many modeling programs based on the finite element method, FLAC organizes its zones (or
“elements”) in a row-and-column fashion, like a crossword puzzle. We refer to a particular zone
by a pair of numbers (its row and column numbers) rather than by an arbitrary ID number, as in
finite element programs. Although the numbering scheme resembles that of a crossword puzzle,
the physical shape of a FLAC grid need not be rectangular: the rows and columns can be distorted
so that the boundary fits some given shape; holes can be made in the grid; and separate grids can be
stuck together to create more complicated bodies. Furthermore, the zones can vary in size across
a grid. This section describes the various ways FLAC grids can be made to fit the physical shapes
that are to be modeled.
When fairly simple shapes are to be modeled, FLAC ’s grid scheme is very easy to use and interpret.
For one thing, printed output (such as a list of zone stresses) is arranged on the page in a way that
corresponds closely with positions in physical space. In contrast, finite element output is arranged
arbitrarily. The advantages tend to vanish, however, as the objects to be modeled become more
complicated. Some degree of skill is needed to set up complex grids.
With any numerical method, the accuracy of the results depends on the grid used to represent
the physical system. In general, finer meshes (more zones per unit length) lead to more accurate
results. Furthermore, the aspect ratio (ratio of height to width of a zone) also affects accuracy.
When creating grids with FLAC, remember that the greatest accuracy is obtained for a model with
equal, square zones. If the model must contain different zone sizes, then a gradual variation in
size should be used for maximum accuracy; this factor is important enough that a special option is
provided in the GENERATE command whereby zone sizes can be arranged to increase or decrease
by a constant ratio along any grid line. As a general rule, the aspect ratio of a zone should be kept
as close to unity as possible: anything above 5:1 is potentially inaccurate. Section 3.2 in the User’s
Guide provides some guidelines for choosing zone sizes and shapes, and some justification for the
rules just given. The purpose of this section is to show the reader what tools are available for grid
generation, and how to use them effectively.
The discussion and examples provided in this section use the command-line approach to data input
to FLAC. You are encouraged to work through the examples in this section to become familiar with
the principles used for grid generation in FLAC.*

* The data files in this section are all created in a text editor. The files are stored in the directory
“ITASCA\FLAC700\Datafiles\Theory\2-Grid” with the extension “.DAT.” A project file is also
provided for each example. In order to run an example and compare the results to plots in this
section, open a project file in the GIIC by clicking on the File / Open Project menu item and
selecting the project file name (with extension “.PRJ”). Click on the Project Options icon at the top
of the Project Tree Record, select Rebuild unsaved states, and the example data file will be run, and
plots created.

FLAC Version 7.0


2-2 Theory and Background

Creation of grids, especially for complex model shapes, is greatly assisted by the graphical interface
(the GIIC – see Section 2.2.1 in the User’s Guide and the FLAC-GIIC Reference volume). All
the operations described in this section can be achieved via the GIIC. In addition, a grid library
is provided; it contains grid objects commonly used in geomechanics: dam, retaining wall, tunnel,
etc. The library objects are a useful starting point when constructing a model.
A “virtual-grid” generation mode is also provided in the GIIC to facilitate grid creation. See
Section 1.2.1 in the FLAC-GIIC Reference for a description of the virtual-grid mode of grid
generation.

FLAC Version 7.0


GRID GENERATION 2-3

2.2 Generation of Simple Shapes

The GRID command is of the form


grid p,q
It produces a grid of square zones, with p-zones in the x-direction and q-zones in the y-direction.
The intersections of mesh lines are called gridpoints. By default, the x-coordinates of the gridpoints
are 0, 1, . . . , p, and the y-coordinates are 0, 1, . . . , q. Note that there are (p + 1) vertical mesh lines
and (q + 1) horizontal mesh lines.
In order to stretch, shrink or shift the grid in the x- or y-directions, the initialization command,
INITIAL, can be used to modify the coordinates, using the parameters multiply or add. The input line
ini x mul 2

multiplies all x-coordinates by a factor of two. The input line


ini x add 10

shifts the whole grid by 10 units in the x-direction. Combinations of these operations can be entered
on a single line. For example, the input line
ini x mul 2, y mul 2, x add 10

will enlarge the existing grid by a factor of two, and then shift it ten units in the x-direction. Note
that negative multiplication factors should not be used on coordinates because the “sense” of the
grid will be reversed, causing negative zone areas. This will trigger an error message later on, when
a STEP command is given.
The INITIAL command can also be used to relocate individual gridpoints or all the gridpoints along
a row or column. For example, the nonuniform grid of Figure 2.1 can be produced with the data
file in Example 2.1:

Example 2.1 Creating a nonuniform grid with INITIAL commands


grid 5,4
model elastic
ini x=0.7 i=2
ini x=1.5 i=3
ini x=2.5 i=4
ini x=3.5 i=5
ini y=1.4 j=2
ini y=2.4 j=3
ini y=3.3 j=4

FLAC Version 7.0


2-4 Theory and Background

Figure 2.1 Nonuniform grid, using INITIAL commands

The command
initial x=0.7 i=2

sets all x-coordinates on the vertical grid line i = 2 equal to 0.7 units. Similarly, the command
initial y=2.4 j=3

sets all y-coordinates on the horizontal grid line j = 3 equal to 2.4 units. Note that the MODEL
elastic command is not necessary for the process of changing coordinates, but it is given in order
to render the grid visible when it is plotted via a PLOT grid command. If no model is specified, a
“null” model, which plots as an empty space, is assumed.
An effect similar to that of Figure 2.1 can be obtained with less effort by using the ratio parameter
with the GENERATE command:

Example 2.2 Creating a nonuniform grid with the ratio keyword


grid 5,4
model elastic
gen (ratio 1.2, 0.8)

This produces the grid shown in Figure 2.2:

FLAC Version 7.0


GRID GENERATION 2-5

Figure 2.2 Nonuniform grid, using the ratio keyword with the GENERATE
command

In this grid, the widths of successive zones in the x-direction are increased by a factor of 1.2, and
the heights of successive zones in the y-direction are increased by a factor of 0.8 (i.e., decreased).
On the matter of syntax, the brackets enclosing the ratio keyword and its parameters are optional:
they are simply included for cosmetic reasons (see Section 1.1.1 in the Command Reference).
The GENERATE command has many more options than implied by the previous example. There are
two main forms of the command. The first form produces quadrilateral zoning, in which a region
between two i-lines and two j -lines is distorted into a quadrilateral shape. The general form is
gen x1,y1 x2,y2 x3,y3 x4,y4 <ratio ri rj> <range>
The four pairs of coordinates denote the four corners of the quadrilateral region of space taken in a
clockwise direction, starting with the gridpoint with the lowest i and j numbers in the range. Inter-
mediate points are distributed with even spacing along each i-line and j-line. If a non-rectangular
geometry is required, then the ratio keyword can be used in a manner similar to the one used in the
previous example. The commands in Example 2.3 produce the grid of Figure 2.3.

Example 2.3 Creating a non-rectangular geometry


grid 6,6
model elastic
gen same -2.0,4.0 6.0,7.0 10.0,0.8 (ratio 1.2,0.8)

FLAC Version 7.0


2-6 Theory and Background

Figure 2.3 Non-rectangular geometry produced by GENERATE

Note the use of the same parameter for the first corner, which stays in its original place (at the
origin). In this case, no range is given, which causes FLAC to apply the generation logic to all
gridpoints.
When range parameters are given to the GENERATE command, several different quadrilateral regions
can be created within the grid, as Example 2.4 illustrates (see Figure 2.4).

Example 2.4 Creating two differently zoned regions


grid 10 8
mod elas
gen 0,-40 0,0 100,0 100,-40 rat=1,0.8 j=1,4
gen same 50,45 100,45 same i=4,11 j=4,9
model null i=1,3 j=4,8

Figure 2.4 Two differently zoned regions produced by two GENERATE com-
mands

FLAC Version 7.0


GRID GENERATION 2-7

The region to the left of the slope is “excavated” by declaring the appropriate zones to be null.
Before moving on to the second form of the GENERATE command, note that almost any grid can
be constructed by moving individual gridpoints so that the grid conforms to the required external
and internal shapes. For example, the horseshoe-shaped tunnel of Figure 2.5 can be constructed by
moving appropriate gridpoints and deleting the interior zones using Example 2.5.

Example 2.5 Creating a tunnel with INITIAL commands


grid 7 7
mod elas
ini x=2.3 y=4.7 i=3 j=6
ini x=4.7 y=4.7 i=6 j=6
mod null i=3,5 j=3,5

Figure 2.5 Tunnel created with individual INITIAL commands

FLAC Version 7.0


2-8 Theory and Background

2.3 More Advanced Use of the GENERATE Command

The procedure used in constructing the grid of Figure 2.5 is good for coarse grids, but several
difficulties arise when grids become finer. First, it is annoying to have to provide a large number
of INITIAL commands when the required shape is simple, like a circle or line. Second, deletion of
unwanted zones is tedious when the area to be removed does not lie between a contiguous block of
i-lines and j -lines. Finally, specification of pressure or stress on the created boundary is difficult
when the boundary does not lie along a single grid line, or has an irregular geometry. To help
overcome these problems, the GENERATE command can take several keywords (line, circle, arc and
table) which act like multiple INITIAL commands along their range of influence. They also cause all
of the affected gridpoints to be marked. This string of marks identifies the created boundary as a
single entity that can be addressed by a single command when removing zones, assigning properties
or applying stresses.
The keywords line, circle, arc and table specify lines or curves that may be closed or may have
endpoints. The gridpoints that are nearest to a given line or curve are relocated so that they lie on
the line or curve. Surface gridpoints are not affected, and marked gridpoints are also avoided in the
process of relocation. The general form of each keyword is as follows:
gen line x1,y1 x2,y2
gen circle xc,yc rad
gen arc xc,yc xs,ys theta
gen table n
where x1,y1 and x2,y2 are the starting and ending points of the line, xc,yc are the center coordinates
of the arc or circle, rad is the circle radius, xs,ys are the starting coordinates of the arc, and theta is
the counterclockwise angular span of the arc in degrees. The value n of the table keyword refers to
a table of (x,y)-coordinates that has been prepared using the TABLE command.
The horseshoe-shaped tunnel in Figure 2.6 is created by the sequence of commands in Example 2.6.
The tunnel is similar to that in Figure 2.5, but the grid is much finer.

Example 2.6 Creating a tunnel with the GENERATE arc command


grid 20 20
mod elas
gen arc 10 10 15 10 180
mark i=6,16 j=6
mark j=6,11 i=6
mark j=6,11 i=16
mod nul, region=(6,6)

Note that only the top of the tunnel is created with the arc keyword; the affected gridpoints are
marked, as explained above. In order to excavate the material in the tunnel with one command,
a contiguous series of marked gridpoints must exist all around the tunnel. To do this, the MARK
command is used three times. The region keyword then causes all zones within the region bounded

FLAC Version 7.0


GRID GENERATION 2-9

by marked gridpoints to be converted to null; to address the region, any zone within the region
can be mentioned (in this example, it was (6,6)). Although the region logic was used to change
the constitutive model, it can also be used to change the properties within the region or initialize
variables, such as stress – e.g.,
prop shear=1234.5, reg=7,7
ini sxx=-1e6 reg=8,8

These commands change the shear modulus and set the x-stress, respectively, within the region.

Figure 2.6 Use of the arc keyword with GENERATE

The keyword circle is used in a way similar to the way arc is used, in order to create an enclosed
circular region. Note that is possible to produce an ellipse by first stretching the grid, then creating
a circle, and finally returning the grid to its original shape. Figure 2.7 shows the result of giving
the commands in Example 2.7

Example 2.7 Creating an ellipse


grid 20 20
m e
ini x mul 2
gen circle 20,10,5.5
ini x mul 0.5
mod nul reg=10,10

FLAC Version 7.0


2 - 10 Theory and Background

Figure 2.7 Use of the circle keyword on a stretched grid

The GENERATE line command relocates gridpoints that lie along the track of a single line with
given endpoints. At this stage, gridpoints will not, in general, attach themselves to the endpoints
of a line or an arc unless existing gridpoints lie very close to the given endpoints. For example, if
two lines are supposed to meet at a common point, a nearby gridpoint should be moved there first.
Figure 2.8(a) illustrates the effect of two lines with a common endpoint but lacking a corresponding
gridpoint. The data file is given in Example 2.8:

Example 2.8 Relocating gridpoints with GENERATE line commands


g 8 8
m e
gen line 2.0,0.0 3.3,4.6
gen line 3.3,4.6 8.0,6.0

FLAC Version 7.0


GRID GENERATION 2 - 11

(a) (b) (c)


Figure 2.8 Effect of prespecification of the point at which two lines meet

By moving gridpoint (4,6) to the common point with an INITIAL command, we get the intended grid
of Figure 2.8(b), as illustrated by Example 2.9:

Example 2.9 Moving common gridpoints


g 8 8
m e
; relocate g.p. to common point
ini x=3.3 y=4.6 i=4 j=6
gen line 2.0,0.0 3.3,4.6
gen line 3.3,4.6 8.0,6.0

The grid may be further “improved” by adding a GENERATE adjust command. Figure 2.8(c) shows
how the changes in the shape of adjacent zones are made less abrupt.
If a surface that consists of many connected line segments is needed, then the GENERATE table
command may be useful. For example, the grid of Figure 2.8(b) may be produced directly by the
sequence in Example 2.10:

Example 2.10 Relocating gridpoints with the GENERATE table command


g 8 8
m e
table 1 2.0,0.0 3.3,4.6 8.0,6.0
gen table 1

Here we predefine the sequence of points by means of a table, and then invoke the same table
in the GENERATE command. Sometimes the GENERATE table command is not very clever at
relocating gridpoints near the joints in the line segments, so some manual help may be needed.
The GENERATE table command can be used almost like a boundary element specification, since

FLAC Version 7.0


2 - 12 Theory and Background

only a list of boundary points is needed. The grid of Figure 2.9 is produced from the data set in
Example 2.11; note that the last point is identical to the first point, in order to generate a closed
curve.

Example 2.11 Creating a complex grid with TABLE commands


g 35 35
m e
table 1 7.7,21.6 7.9,24 8.7,27 10.9,30.1 14,31.5 17,32 20,31.6
table 1 23,30.5 25.6,28 26.9,25 26.9,21.4 26.1,18.9 24.5,17
table 1 22,15 20.8,14.2 20,13 19.6,12 19.6,9 14.8,9
table 1 14.8,12.8 15.6,15 17.1,16.9 20,19.4 21,21 21.4,23
table 1 21,24.7 20,26 18,27 17,27 15,26.3 13.8,25.2 13,23
table 1 13,21.6 7.7,21.6
gen table 1
gen circ 17.3,5 2.5
m n reg=18,13
m n reg=18,5

Figure 2.9 Using the table keyword with the GENERATE command

When generating internal boundaries with the line or table option, it is important to note that at
least two zone widths should lie between neighboring line segments. Otherwise, unpredictable
things happen. For example, the “excavated” region of Figure 2.9 is about five zones in width

FLAC Version 7.0


GRID GENERATION 2 - 13

– the generation process is well-behaved. If it is necessary to have very thin gaps between lines
of relocated gridpoints, then it is advisable to zone up this region by hand, and do the rest with
several applications of the GENERATE command. There are some geometries that just cannot be
constructed with an array of quadrilaterals when the required detail is fine enough. The question
to be asked is “Is the detail really necessary to the overall problem?”
The automatic generation scheme is not foolproof: there are some circumstances in which the
resulting grid is not what was intended. In general, the boundary generators should only be used
when many gridpoints lie along the desired boundary; the scheme is not appropriate for relocating
only two or three gridpoints at a time. In this case, the points should be moved individually by using
INITIAL x, y commands, as described previously. Even when most of the gridpoints on a surface are
satisfactorily relocated by the automatic generator, the two endpoints may have to be adjusted by
hand with the INITIAL command, especially if they lie on an outer boundary. This is the case in the
next section, which is concerned with accommodating interfaces in a grid.

FLAC Version 7.0


2 - 14 Theory and Background

2.4 Grid Generation with Interfaces

Consider the case of a biaxial test sample that contains a steeply dipping joint (Figure 2.10(a)).
The joint is represented in FLAC by an INTERFACE, which requires two boundaries separated by
null zones. In general, the FLAC grid should be viewed as a series of discrete blocks bounded by
the required interfaces – each block is zoned separately and then moved to be in contact with the
others. See Section 3 for more details. In the example of Figure 2.10(a), the single joint creates
two blocks. These are generated as follows, beginning with the commands in Example 2.12, with
the resulting grid shown in Figure 2.10(b).

Example 2.12 Creating a grid with a steeply dipping joint


grid 5,20
model elastic
gen line (0.0, 3.0) (5.0, 14.0)
gen line (0.0, 5.0) (5.0, 16.0)
model null, region 1,5

(a) (b) (c) (d) (e)


Figure 2.10 Stages in the creation of an angled interface

FLAC Version 7.0


GRID GENERATION 2 - 15

The two badly placed endpoints can be moved, with the commands in Example 2.13, to produce
the grid in Figure 2.10(c).

Example 2.13 Adjusting gridpoints along the joint


ini x=5.0 y=14.0 (i=6, j=14)
ini x=0.0 y=5.0 (i=1, j=8)

Finally, the top block is moved down to meet the bottom block, and the two blocks are “joined” by
an interface using the commands in Example 2.14 (see Figure 2.10(d)).

Example 2.14 Joining the two blocks


ini y (add) -2.0 i=1,2 j=8,21
ini y (add) -2.0 i=3 j=10,21
ini y (add) -2.0 i=4 j=13,21
ini y (add) -2.0 i=5 j=15,21
ini y (add) -2.0 i=6 j=16,21
interface 1, ASIDE from 1,4 to 6,14 BSIDE from 1,8 to 6,17

The adjust operation is then applied to the central part of the interface example; the ends are left
alone by MARKing the appropriate gridpoints, using the commands in Example 2.15. (Recall that
marked gridpoints are ignored by the GENERATE command.)

Example 2.15 Final adjustment to the grid


mark j=1,4
mark j=17,21
gen adjust

Figure 2.10(e) illustrates the result of this operation. When several interfaces are needed, the
following procedure should be used. First, determine the number and shape of discrete blocks that
are bounded by the set of joints. Second, allocate part of the FLAC grid to each of the blocks,
making sure that there is a buffer strip of at least one zone in width between blocks. Then, generate
the required geometry for each block separately. Finally, move the blocks together if this has not
already been done in the generation phase. This process is explained more fully in Section 3.3.

FLAC Version 7.0


2 - 16 Theory and Background

2.5 Using Several Sub-Grids Attached Together

Quite complex shapes can be created by attaching several sub-grids together with the ATTACH
command. Before attempting to do this, make a plan of the way the sub-grids are to be extracted
from the initial grid provided by the GRID command. The procedure is like cutting rectangles of
paper from a large sheet and then arranging them together in a different way. Each sub-grid must not
share gridpoints with any other sub-grid (i.e., there must be a “buffer region” at least one zone wide
between neighboring sub-grids). Once the sub-grids have been mapped out, they can be deformed,
relocated and attached to other sub-grids.
A good use of the ATTACH logic is to provide a well-graded boundary region around a finely
zoned central region of interest. The input sequence in Example 2.16 produces the grid shown in
Figure 2.11.

Example 2.16 Creating a graded grid


grid 52,10
model elas i=1,40 j=1,8
model elas i=42,51 j=1,10
gen 0,0 40,40 60,40 100,0 rat 1,0.83 i=1,11 j=1,9
gen s s 60,60 100,100 rat 1,0.83 i=11,21 j=1,9
gen s s 40,60 0,100 rat 1,0.83 i=21,31 j=1,9
gen s s 40,40 0,0 rat 1,0.83 i=31,41 j=1,9
attach aside from 1,1 to 1,9 bside from 41,1 to 41,9
gen 40,40 40,60 60,60 60,40 i=42,52 j=1,11
attach aside from 1,9 to 11,9 bside from 42,1 to 52,1
attach aside from 12,9 to 41,9 bside (long) from 52,2 to 42,1

Figure 2.11 Graded grid produced with the ATTACH command

In this case, a 40 × 80 strip of zones is wrapped around the central region by means of four
GENERATE commands. The “tail” of the strip is then attached to the “head.” The strip is also
attached to the central block at all points on the inner surface of the strip.

FLAC Version 7.0


GRID GENERATION 2 - 17

Two sub-grids may be attached together even if the number of gridpoints on the opposing boundary
paths are not equal. However, the number of segments on one side must be an integral multiple
of the number of segments on the other. The term “segment” here denotes the chord joining two
adjacent gridpoints on a boundary. For example, there may be 3 segments (4 gridpoints) on the
first side and 6 segments (7 gridpoints) on the second side. In this case, the first, third, fifth and
seventh gridpoints on the second side will be attached perfectly to their counterparts on the first
side. The remaining gridpoints on the second side are “slaved” to the two nearest perfectly attached
gridpoints on the same boundary, using linear weighting for forces and velocities. In the general
case, every Nth gridpoint is attached perfectly to its opposing counterpart, where N is the integral
ratio of segments between the two sides.
Two boundaries may be attached in this way even if the opposing gridpoints are not at the same
location, but a warning message will be issued for each pair that does not coincide. In this case,
the slaved gridpoints still function as described above, but the weighting factors will be derived
from the slave’s projection onto the chord joining the two nearest perfectly attached gridpoints.
Great care should be taken when setting up attached boundaries in which the gridpoint spacing
varies; always make a plot or printout to verify that the attachment has been made as intended. The
command PRINT attach lists both perfectly attached groups and slaved gridpoints. The PLOT attach
command only indicates perfectly attached gridpoints.
Example 2.17 illustrates the use of the ATTACH command when joining boundary paths with unequal
numbers of gridpoints. The example is unrealistic, but it serves to illustrate how a complicated series
of connections can be made. In particular, the attachment of the lower, right-hand sub-grid illustrates
that two or more ATTACH commands may be needed if the integral ratio varies along a boundary
path that is to be attached. In this case, part of the boundary has a two-to-one ratio and the remainder
has a three-to-one ratio. Thus, two ATTACH commands are needed, even though the two opposing
sub-grid boundaries are contiguous. After stepping, the results exhibit reasonable symmetry (see
Figure 2.12), which illustrates that coarse grids are adequate for regions that are remote from strain
concentrations.

Example 2.17 Demonstration of generalized ATTACH


; Note that the example is contrived, for illustration only
grid 40,20
model elas i=1,20 j=1,20 ; Create large region
model elas i=21,30 j=11,20
model elas i=26,30 j=1,5 ; Create 1st medium-size region
model elas i=36,40 j=11,15 ; Create 2nd medium-size region
model elas i=36,37 j=1,2 ; Create small region
prop dens 2000 shear 1e8 bulk 2e8 ; (disregard warning messages!)
; Move regions to correct places ...
ini x mul 2 y mul 2 x add -30 i=26,31 j=1,6
ini x mul 2 y mul 2 x add -40 y add -10 i=36,41 j=11,16
ini x 30.0 i=36 j=1,3
ini x 34.0 i=37 j=1,3
ini x 40.0 i=38 j=1,3

FLAC Version 7.0


2 - 18 Theory and Background

ini y 6.0 i=36,38 j=2


ini y 10.0 i=36,38 j=3
; Perform attachments ...
attach aside from 21,1 to 31,11 bside from 26,1 to 31,6
attach aside from 31,11 to 31,21 bside from 36,11 to 36,16
attach aside from 31,1 to 31,4 bside from 36,1 to 36,2
attach aside from 31,4 to 31,6 bside from 36,2 to 36,3
attach aside from 36,11 to 38,11 bside from 36,3 to 37,3
attach aside from 38,11 to 41,11 bside from 37,3 to 38,3
; Boundary conditions ...
fix y j=1
fix x i=1
fix x i=38 j=1,3
fix x i=41 j=11,16
apply press=1e5 i=18,24 j=21
set ncw=50
cyc 4000
save attach.sav
plo xdis fill xdis black grid hold

JOB TITLE : DEMONSTRATION OF ATTACH (*10^1)

FLAC (Version 7.00)


2.750

LEGEND

11-Jan-11 16:05 2.250


step 5217
-2.222E+00 <x< 4.222E+01
-1.222E+01 <y< 3.222E+01
1.750

X-displacement contours
-4.00E-04
-3.00E-04 1.250
-2.00E-04
-1.00E-04
0.00E+00
1.00E-04 0.750

2.00E-04
3.00E-04
4.00E-04 0.250

Contour interval= 1.00E-04


X-displacement contours
-0.250
Contour interval= 1.00E-04
Minimum: -4.00E-04
Maximum: 4.00E-04
Grid plot -0.750

0 1E 1
Itasca Consulting Group, Inc.
Minneapolis, MN 55401
0.250 0.750 1.250 1.750 2.250 2.750 3.250 3.750
(*10^1)

Figure 2.12 x-displacement contours in an attached grid

The ability to match unequal grids gives the user more flexibility in creating graded meshes. It
is quite convenient to use a radially graded grid to provide the boundary conditions for a single

FLAC Version 7.0


GRID GENERATION 2 - 19

tunnel. However, it is difficult to extend this approach to multiple tunnels that interact with each
other. Example 2.18 creates a grid that is constructed such that each tunnel has its own fine grid
for good local accuracy, but the interactions and boundary conditions make use of the coarse grid.
Figure 2.13 shows the grid.

Example 2.18 Multiple tunnels with fine and coarse grids attached
grid 77 50
mod elas
prop dens 2000 she 5e8 bulk 1.5e9
mod null i=21 28 j=13,20 ; region 1
mod null i=16,23 j=27,34 ; region 2
mod null i=39,46 j=22,29 ; region 3
mod null i=1,60 j=46,50 ; ... not used
mod null i=61 ; carve out inserted blocks
mod null j=17 i=61,77
mod null j=34 i=61,77
; Now insert blocks ...
gen 20.0,12.0 20.0,20.0 28.0,20.0 28.0,12.0 i=62,78 j=1,17
gen 15.0,26.0 15.0,34.0 23.0,34.0 23.0,26.0 i=62,78 j=18,34
gen 38.0,21.0 38.0,29.0 46.0,29.0 46.0,21.0 i=62,78 j=35,51
attach as long from 21,13 to 29,13 bs long from 62,1 to 78,1
attach as from 21,13 to 29,13 bs from 62,1 to 78,1
attach as long from 16,27 to 24,27 bs long from 62,18 to 78,18
attach as from 16,27 to 24,27 bs from 62,18 to 78,18
attach as long from 39,22 to 47,22 bs long from 62,35 to 78,35
attach as from 39,22 to 47,22 bs from 62,35 to 78,35
gen circ 24.0 16.0 2.0
mod null reg 70,9
gen circ 19.0 30.0 2.0
mod null reg 70,26
gen circ 42.0 25.0 2.0
mod null reg 70,43
ini sxx=-1e6 syy=-3e6 szz=-2e6
fix x i=1
fix x i=61
fix y j=1 i=1,61
fix y j=46 i=1,61
solve
plo xdisp fill int 2.5e-4 grid hold

FLAC Version 7.0


2 - 20 Theory and Background

JOB TITLE : MULTIPLE TUNNELS WITH FINE AND COARSE GRIDS ATTACHED (*10^1)

FLAC (Version 7.00)

LEGEND
4.500

11-Jan-11 16:05
step 1326
-3.333E+00 <x< 6.333E+01
-1.083E+01 <y< 5.583E+01 3.500

Grid plot

0 2E 1
2.500

1.500

0.500

-0.500

Itasca Consulting Group, Inc.


Minneapolis, MN 55401
0.500 1.500 2.500 3.500 4.500 5.500
(*10^1)

Figure 2.13 Multiple tunnels with fine and coarse grids attached

Using a biaxial initial stress field, the resulting x-displacement contours are shown in Figure 2.14.
For comparison, the same geometry was set up with a uniform grid, using the same mesh size as
the fine region of Figure 2.13 throughout. The results, shown in Figure 2.15, are very similar to
those of the Figure 2.13 grid, but the execution time is more than 4.5 times slower.

FLAC Version 7.0


GRID GENERATION 2 - 21

JOB TITLE : MULTIPLE TUNNELS WITH FINE AND COARSE GRIDS ATTACHED (*10^1)

FLAC (Version 7.00)

LEGEND
4.500

11-Jan-11 16:05
step 1326
-3.333E+00 <x< 6.333E+01
-1.083E+01 <y< 5.583E+01 3.500

X-displacement contours
Contour interval= 2.50E-04
Minimum: -1.25E-03
2.500
Maximum: 1.25E-03
Grid plot

0 2E 1
1.500

0.500

-0.500

Itasca Consulting Group, Inc.


Minneapolis, MN 55401
0.500 1.500 2.500 3.500 4.500 5.500
(*10^1)

Figure 2.14 x-displacement contours for fine and coarse grids attached

JOB TITLE : MULTIPLE TUNNELS IN A UNIFORM FINE GRID (*10^1)

FLAC (Version 7.00)

LEGEND
4.500

11-Jan-11 16:05
step 2091
-3.333E+00 <x< 6.333E+01
-1.083E+01 <y< 5.583E+01 3.500

X-displacement contours
Contour interval= 2.50E-04
Minimum: -1.25E-03
2.500
Maximum: 1.25E-03
Grid plot

0 2E 1
1.500

0.500

-0.500

Itasca Consulting Group, Inc.


Minneapolis, MN 55401
0.500 1.500 2.500 3.500 4.500 5.500
(*10^1)

Figure 2.15 x-displacement contours for uniform fine grid

FLAC Version 7.0


2 - 22 Theory and Background

It is not meaningful to apply velocity boundary conditions or fix conditions to slaved gridpoints,
because such gridpoints are controlled by their nearest attached neighbors. However, forces may
be applied to slaved gridpoints.
If all zones surrounding an attached gridpoint (slaved or not) are set to the null model, the attach
condition will still persist, even though such gridpoints will not participate in calculations. However,
if real models are restored to the null zones, the previous attach conditions will be reactivated. There
is no way to “unattach” gridpoints.

FLAC Version 7.0


GRID GENERATION 2 - 23

2.6 Special-Purpose Grid Generation

Sometimes FLAC ’s built-in grid generators will not be able to produce a desired geometry. A
series of INITIAL commands can always be used to specify locations of individual gridpoints if all
else fails. This can be tedious if every x- and y-point must be specified individually, but it is often
possible to write a program that generates the grid automatically using the built-in programming
language FISH (see Section 2.4.2 in the FISH volume). For example, the data file in Example 2.19
includes a FISH program that produces a grid for a thick-walled cylinder.

Example 2.19 Creating a grid for a thick-walled cylinder


grid 10 40
m e
;
;****************** create the mesh **********************
; each gridpoint is defined by its polar coordinates alfa and ro
; rmaxit = the maximum distance from the center for each alfa
; rmin = radius of the excavation
; rmul = number of radii to the boundary
; ratio = grid’s ratio
;
def donut
figp=igp
fjgp=jgp
loop j (1,jgp)
alfa=(j-1)*2.0*pi/(jgp-1)
rmaxit=rmin*rmul
loop i (1,igp)
ro=rmin+(rmaxit-rmin)*(ratioˆ(i-1)-1)/(ratioˆ(igp-1)-1)
x(i,j)=ro*cos(alfa)
y(i,j)=ro*sin(alfa)
end_loop
end_loop
end
set rmin=1 rmul=10 ratio=1.1
donut
attach aside from 1,1 to figp,1 bside from 1,fjgp to figp,fjgp
return

FLAC Version 7.0


2 - 24 Theory and Background

The FISH program consists of a user-defined function called donut which, when invoked with the
appropriate settings, produces the grid shown in Figure 2.16. See Section 3 in the FISH volume
for other types of grid generation FISH functions.

Figure 2.16 Grid produced by calling the FISH function donut

FLAC Version 7.0

You might also like