New Open-Source ANSYS-SolidWorks-FLAC3D Geometry Conversion Programs
New Open-Source ANSYS-SolidWorks-FLAC3D Geometry Conversion Programs
H O S T E D BY
ScienceDirect
journal homepage: http://www.elsevier.com/locate/jsm
article info
abstract
Article history:
Numerical calculations are used increasingly often to obtain a stress-strain state in many
engineering problems. A popular program for this type of calculation which makes use of
4 November 2015
important limitation of FLAC3D is the difficulty of geometry creation. This paper presents
software (ANSYS, SolidWorks) and their conversion to internal FLAC3D geometry files. The
converters have been written in BASH-scripting language and published under the terms of
Keywords:
the GNU General Public License, which allows the free distribution and/or modification of
Numerical modelling
Material modelling
Copyright 2015 Central Mining Institute in Katowice. Production and hosting by Elsevier
Mesh design
B.V. This is an open access article under the CC BY-NC-ND license (http://
Geometry converter
creativecommons.org/licenses/by-nc-nd/4.0/).
FDM
FLAC3D
1.
Introduction
Stokes, 2015; Payne et al., 2015), but also the proper simulation of excavation, support and ground reinforcement, interaction between different types of support and/or coupling
thermo-hydro-geomechanical approach (He, Feng, & Sun,
2008; Javeri, 2008; Hokmabadi, Fatahi, & Samali, 2014;
Rutqvist, 2011; Safari & Ghassemi, 2015). The development of
the geometry of 3D models could be performed in a dedicated
software such as SolidWorks or ANSYS, but unfortunately it is
not possible then to import these models directly into FLAC3D,
which is one of the accepted softwares for geomechanical
calculations. This paper presents solutions to bypass this
limitation. Two converters have been written allowing the
conversion of discretized models prepared in ANSYS and
SolidWorks to a format compatible with FLAC3D.
* Tel.: 48 32 2592637.
E-mail address: [email protected].
Peer review under responsibility of Central Mining Institute in Katowice.
http://dx.doi.org/10.1016/j.jsm.2015.11.002
2300-3960/Copyright 2015 Central Mining Institute in Katowice. Production and hosting by Elsevier B.V. This is an open access article
under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).
j o u r n a l o f s u s t a i n a b l e m i n i n g 1 4 ( 2 0 1 5 ) 1 2 4 e1 3 2
2.
In older versions of FLAC3D (up to version 4.0) geometry generation was practically limited to the creation of assembly from
simple, regular shaped objects (Fig. 1). It is possible to distort
the grids to fit arbitrary volumes, but it is a laborious task. This
is mainly due to the fact that each shape has a specific type of
grid connectivity and its distortion must strictly follow the axis
convention and the order of the points definition.
During geometry generation using predefined grid shapes
(primitives), it is possible to create a complete model with the
desired geometry and to perform complex numerical calculations. Such an approach to geometry generation is often used
in the analysis of various aspects of longwall mining (Jiang
et al., 2012; Oraee, Oraee, & Bangian, 2010; Ross, Yu, &
Nyikos, 2005; Xie, Chang, & Yang, 2009; Yasitli & Unver, 2005),
but also in other fields, such as seismic (Chugh, 2005) or surface
subsidence (Shahriar, Amoushahi, & Arabzadeh, 2009). The
main advantage of using predefined shapes is the possibility to
parametrize the geometric properties of objects and therefore
the ability to generate a series of models quickly e for example
shafts with various diameters and lining thickness (Fig. 2).
Geometry generation in FLAC3D has been extended in the
current version 5.01 with the ability to import geometric data
(e.g. DXF files) to filter objects by assigning group names. This
technique may be useful for example in the analysis of multiple coal seam extractions (Fig. 3). In connection with another
algorithm which is available and allows the densifying of
mesh e realised by subdividing zones into two or more
125
3.
Fig. 1 e The shapes available in FLAC3D for geometry generation (FLAC3D, 2015).
126
j o u r n a l o f s u s t a i n a b l e m i n i n g 1 4 ( 2 0 1 5 ) 1 2 4 e1 3 2
Fig. 2 e A parametrized shaft model generated using predefined shapes. a) general view of the model, b) example of the
simulated void behind the lining (Bock, 2014).
Fig. 4 e The result of in-build densifying of mesh. a) original grid, b) grid after densification.
j o u r n a l o f s u s t a i n a b l e m i n i n g 1 4 ( 2 0 1 5 ) 1 2 4 e1 3 2
127
Fig. 5 e Surface topography and layering in FLAC3D. a) the existing grid (blue) and the imported geometry set (grey), b) the
final geometry created by the GENERATE topography command (FLAC3D Manual, Section 5: Using Geometric Data).
Fig. 6 e Examples of mesh generated using 3DShop (2015) and Kubrix Geo (2015) software. a) a model of an underground
coal bunker (Bock, Kowalski, & Szymaa, 2012), b) a model of a shaft inset (Prusek, Rotkegel, Bock, & Szymaa, 2011).
128
j o u r n a l o f s u s t a i n a b l e m i n i n g 1 4 ( 2 0 1 5 ) 1 2 4 e1 3 2
4.
j o u r n a l o f s u s t a i n a b l e m i n i n g 1 4 ( 2 0 1 5 ) 1 2 4 e1 3 2
programming language features allow these utilities to be combined. Files containing commands can be created, and become
commands themselves. These new commands have the same
status as system commands in directories such as/bin, allowing
users or groups to establish custom environments to automate
their common tasks. The last feature allows external programs to be used in the same way as internal commands e
and as a result new tools can be easily and quickly developed. For the ANSYS/SolidWorks converters, the following
standard GNU core utilities (2015) and additional programs
have been used:
standard GNU core utilities:
basename e strip directory and suffix from filenames
cat e concatenate files and print on the standard output
cut e remove sections from each line of files
date e print or set the system date and time
echo e display a line of text
head e output the first part of files
rm e remove files or directories
tail e output the last part of files
tr e translate or delete characters
wc e print newline, word, and byte counts for each file
129
additional programs:
gawk e GNU awk pattern scanning and processing
language (2015)
grep e GNU regular expression matcher (2015)
perl e The Perl Programming Language (2015)
The source codes of the converters are provided in Appendix
1 (ANSYS-FLAC3D converter) and Appendix 2 (SolidWorksFLAC3D converter). Both of the programs should function
without additional requirements on any computer operating
under Linux OS. The additional programs (gawk, grep and perl)
although not belonging to the standard GNU core utilities, are
basic tools installed by default during Linux installation.
The ANSYS-FLAC3D converter allows the transformation
of mesh discretized using tetrahedral, wedge and brick type
zones (Figs. 7e9). The mesh may be mixed with any of the
listed types.
The second converter for discretized models created in
SolidWorks allows the transformation of tetrahedral type
zones only (Fig. 10).
The main difference between the developed converters
and the Kubrix Geo software is that the new converters use an
already discretized geometry, including the division of solids
130
j o u r n a l o f s u s t a i n a b l e m i n i n g 1 4 ( 2 0 1 5 ) 1 2 4 e1 3 2
Fig. 7 e Model of an underground coal bunker using mixed tetrahedral and wedge type zones generated with an ANSYSFLAC3D converter with regular mesh needed for the modelling of concrete beam reinforcement.
Fig. 8 e Model of a coal longwall extraction using brick type zones (W8) generated with ANSYS-FLAC3D converter.
Fig. 9 e Model of a shaft inset using tetrahedral type zones generated with ANSYS-FLAC3D converter.
j o u r n a l o f s u s t a i n a b l e m i n i n g 1 4 ( 2 0 1 5 ) 1 2 4 e1 3 2
131
Fig. 10 e Model of a shaft with variable lining thickness using tetrahedral type zones.
5.
Summary
Acknowledgements
Part of this work was developed in the framework
w konwersji
of statutory activity: Opracowanie algorytmo
zdyskretyzowanych modeli numerycznych do wymagan
programu FLAC3D (The development of algorithms for the
conversion of discretized numerical models to the requirements of the FLAC3D code) e No. GIG: 11160455-153.
The Author thanks Marcin Witek and Micha Smolorz for
providing the geometry files developed in SolidWorks and
ANSYS software.
references
132
j o u r n a l o f s u s t a i n a b l e m i n i n g 1 4 ( 2 0 1 5 ) 1 2 4 e1 3 2