Professional Documents
Culture Documents
Sample of Geometry Creation With Gid
Sample of Geometry Creation With Gid
Sample of Geometry Creation With Gid
This tutorial describe some of the basic tools available in the GiD preprocess used to create or
modify the geometry of a model.
In the GiD Reference Manual all the commands and tools are explained; in this tutorial only
some of them will be used to build a simple 3D model.
This tutorial shows the different ways that GiD offers to enter the coordinates of a point
(absolute, relative, polar, etc.), the use of the copy and move tool, the intersection of curves,
how to collapse entities, the use of layers, etc.
The bridge is a sequence of arcs; we will build one arc, and then, we will make copies of it.
If the third coordinate is not entered, GiD assumes that z=0; command “close”, closes the
polygon joining with a line the last and first point entered.
Next line will start from point number 3 (note that we don’t' want to create a new point, point 3
will be used).
When selecting the line tool, the Contextual menu changes, offering
commands related with line creation (Contextual menu is in the mouse
menu - click the right mouse button to open that menu)
We will use option "Join" of the Contextual menu to select points which
already exist.
Point 5 has the same coordinates as point 3 plus 6 vertical units. Points 6 and 7 are created
using relative polar coordinates (@modulus<angle with x axis in degrees). Relative coordinates
consider the last point entered.
Command @1<180 is repeated two times; we can enter again the last command pressing the
up button <↑>.
To create the arcs of half bridge we will use the copy tool: we will rotate the points 5 and 6
around a center located at (10,9,0), and lines will be extruded.
Rotation is 2D, and we'll have to enter a negative angle of -90º (anti-clockwise)
2
Master in Computational Mechanics Computational Mechanics Tools
GiD Practice Year 2016-2017
In a similar way, can create lines by extrusion with a translation transformation, for example
copy the line number 7 with a relative translation from (0,0,0) to (0,10,0), extruding lines.
Create the other lines to have a model like the next image:
It exist an automatic mode creation; GiD tries to find the possible surfaces with a specified
number of sides, for example we will create surfaces with 4, and 5 sides:
Now all surfaces are in the plane z=0, some of them must have another z, so we'll have to move
them using the "move" tool (similar to "copy").
Surfaces 1 and 5 are leaved in z=0, and we move surfaces {3} with
an increment of dz=-1.0 and surfaces {2,4,6} with dz=-2.0.
Note: entity numbers are referred to the picture; depending on the followed process your model
can show other identifiers.
We build now the surfaces of the opposite face and the lateral extruded
ones by using the "copy" tool, extruding surfaces.
- Relative translation, with dz= -6 for surfaces {1,5}, dz=-4 for surfaces
{3}, and dz= -2 for surfaces {2,4,6}.
So, we need to delete the internal surfaces to get the "shell" of the volume. (“boundary
representation”). The best solution is to delete all surfaces and create them again later.
To delete all surfaces use command Geometry Delete Surface and select them all.
We also need to remove all lines that are inside the volume; some of them must be divided
because only a piece is inside the volume.
We can divide all lines with a multiple intersection between all lines. All lines can be selected
using command 1:, which means "from line 1 to the last one".
Now it's possible to manually delete those lines which are inside the volume:
To be sure that there are not duplicated points, we'll use the "Collapse" command. We collapse
the model with the menu: Geometry->Edit->Collapse->Model.
NOTE: you have to make sure that the variable "Import Tolerance" is small enough to avoid the
collapse of points which are really different; "Import Tolerance" can be set in the Preferences
window, under Import settings.
Now, we create again all the surfaces automatic with 4, 5, and 6 sides.
We'll have to delete some extra surfaces which are not needed; these surfaces are unneeded
interior walls.
4
Master in Computational Mechanics Computational Mechanics Tools
GiD Practice Year 2016-2017
When selecting entities, by default, the first time an entity is clicked it becomes selected, the
second time it's clicked, that entity deselects (“SwapSelection”). This can be changed from the
Contextual menu with options “AddToSelection" (always adds new entities, never deselects),
“RemoveFromSel” (only removes entities from selection) and "ClearSelection” (deselects all).
GiD draws volumes in blue. If the contour of a volume doesn't close, GiD informs of the number
of entities where there are problems; it's useful in these cases to label entities (View - Label) to
find and correct the problem.
If the group of surfaces define a unique volume, it's useful to use option "search", which finds all
the surfaces of a volume automatically (user has to select only one of them). If the group of
surfaces defines many volumes and we use the "search" option, we'll have to check if the
volume created is the one we wanted.
Then, we create the other half of the bridge using the 3D mirror tool (Copy window). The mirror
requires three coordinates to define the mirror plane: pick three existent points (unaligned).
In that case we have to select volumes as source to be copied; it's important to not check option
"Duplicate entities", to avoid the creation of duplicated points ones over the others, else a
collapse can be required.
Using layers
With a complex geometry is highly recommended to divide the entities by layers; like this, it's
possible to hide those layers which we don't need to see
(it makes selection processes easier and avoid confusions).
Menu: Utilities->Layers…
Meshing test
We can create the mesh of our model with the command
“Generate” found in the "Mesh" menu (we'll accept the size by
default)
5
Master in Computational Mechanics Computational Mechanics Tools
GiD Practice Year 2016-2017
NOTE: when copying geometry the mesh it's not automatically copied; it's also possible to make
copies of the mesh, which is unadvised because conditions would not be applied correctly.
To do tests quickly we delete the copied volumes (and his lower-entities) to have only one.
Following the previous model, the geometry has volume entities, then by default, when
generating a mesh we will obtain unstructured tetrahedra, and any surface nor line elements,
because these entities are hierarchically lower-entities of the volume.
If we want also to obtain this triangles and/or line elements, we must explicitly specify it, from
the menu:
Mesh->Mesh criteria
E.g. we can force to not to mesh the volume and mesh only the lines, with
Note: an easy mode to select all entities is to writing in the command line
1:
What means from the number 1 to the last
If we generate a mesh again, we can see that now there are only line elements (2-noded)
Mesh->Mesh criteria->Mesh->Surfaces
From left to right: line mesh with hidden and visible nodes, and triangle mesh
Types of elements
The different types of elements that GiD can generate are: lines, triangles, quadrilaterals,
tetrahedra, hexahedra, prisms, spheres and points. They can have linear or quadratic degree.
For example, triangles can be linear of 3 nodes or quadratic of 6 nodes, quadrilaterals can be of
4, 8 or 9 nodes.
Before meshing the degree must be selected, from the menu: Mesh-> Quadratic elements
All elements of the grid must have the same degree, i.e. cannot be mixed linear with quadratic
elements.
The quadratic elements can be interesting on the one hand to get a better approximation of the
grid to the original shape (in case of entities with curvature), and secondly, in order to better
represent the solution in numerical computations. Usually this aspect is more important than the
improvement in the representation of form.
For example, a structural analysis of a classic beam subjected to bending, in a planar section
the deformation follows a linear law. If we use a linear approximation for the displacements, we
will have in an element a constant deformation (because it is derived from the displacement).
With a quadratic finite element the deformation field is linear, more realistic.
Note: Depending on your preferences, quadratic elements are represented as if they were
linear (for more efficient redraw), or with curved sides.
In GiD we can classify meshes in three categories: structured, semi-structured and unstructured
(structured in an extrusion direction and unstructured in its two tops)
A structured grid is one in which the nodes are created according to a predefined pattern.
In GiD to mesh a surface with structured quadrilaterals, it is necessary that its shape is
topologically rectangle with four corners (To create structured hexahedra GiD restrictions are
stronger: it is necessary that the volume takes exactly 6 faces each one with 4 sides).
7
Master in Computational Mechanics Computational Mechanics Tools
GiD Practice Year 2016-2017
Structures meshes have the advantage that usually lead to fewer nodes and elements, which
requires a lower cost for the analysis, in addition elements tend to be more symmetrical, which
can improve the numerical solution. The major drawback is that it requires a very important
geometric manipulation, often impractical. Another important drawback is that it does not allow
local refinements, because the number of divisions in each direction must be maintained.
An unstructured mesh usually requires no user manipulation. The triangles are better suited to a
general shape that quadrilaterals.
The menu option to specify that a surface must be meshed with quadrilaterals is:
Mesh-> Element type-> Quadrilateral
The normal way to work with GiD is to assign to geometric entities information about what mesh
sizes do you want to obtain.
For example, suppose that you want to concentrate more element in the center of the arc,
where bending stresses of the structure will be more significant.
Attach a size of 0.2 units to the lines near the bridge center, and set 5 as general size
Mesh-> Unstructured-> Assign sizes on lines 0.2
Mesh-> Generate mesh… 5
The size of 0.2 was assigned to the whole geometric entity, in this case the whole line, if we
want to have more local control, it might be interesting to divide entities to assign sizes
individually.
We may assign size of 0.2 only to the mirror plane points, to concentrate elements here.
8
Master in Computational Mechanics Computational Mechanics Tools
GiD Practice Year 2016-2017
To remove the information from previous size, we use: Mesh-> Reset mesh data
There is a parameter that controls the speed of transition of the element’s size. This parameter
is set in the Preferences window (Utilities-> Preferences). With a low value the transition will be
slow and vice versa.
GiD incorporates three surface unstructured meshers: Rfast, Rsurf and Rjump
Rfast creates the mesh in a two-dimensional parameter space, and after that nodes are
"mapped" to the real 3D space, while Rsurf generates triangles directly in three-dimensional
space.
Rjump works like Rfast in the 3D space but trying to jump between surfaces.
Generally it is advisable for a first test to use RFast, which as its name suggests is faster. In
certain surfaces, where the parameterization is not uniform, it may be convenient to use Rsurf
to achieve better quality (more equilateral triangles).
It is possible to plot graphs showing the quality of the elements, according to different criteria:
minimum/maximum angle, edge size, volume element, and so on.
9
Master in Computational Mechanics Computational Mechanics Tools
GiD Practice Year 2016-2017
Note: When you double-click on the graphic elements with quality worse that shown in the
horizontal scale will be selected.
If a surface has a corner with a very acute angle, at that point elements will result in poor quality.
It may be desirable to modify the geometry to avoid this kind of problems.
CALCULATION
Continuing with the previous model, we are going to analyze it with a linear elastic model, using
RamSolid. GiD itself does not incorporate any calculation program. It has been designed as a
neutralpre and postprocess that could be coupled to any external module. One example is
RamSeries: a program to perform structural analysis (linear and non-linear static and dynamic
analysis). RamSeries comprises two modules: RamBshell and RamSolid.
RamBshell can analyze shells and beams coupled, where each node has associated 6 degrees
of freedom (3 displacements and 3 rotations)
RamSolid can analyze three-dimensional solid, with 3 degrees of freedom per node (3
movements). This difference of degrees of freedom between solids and beams / shells is
responsible that they can’t be mixed in a consistent way.
To use it professionally requires a "password". You can obtain a temporary "password" from the
related Web. The password must be entered in the Help-> Register Problem type window.
By doing this, a specific toolbar will appear, and some menus will be modified.
We are going to analyze the bridge with self-weight load, plus an additional pressure of 500
kp/m2 on the top. Supports are all fixed except the central pillars, simulating that water has
eroded its foundation.
Assign materials: We use a material with elastic modulus E = 2e5 Kp/cm2, Poisson modulus=
0.3 and specific weight = 2.5 ton/m3
Be careful with the units. In the “general data” window declare that the units of the mesh are
meters, and set for example that we want postprocess results in kp and cm.
In the materials and boundary conditions window, the units of each value could be selected by
the user, to feel comfortable. For example choosing kp ad cm for the material, we must set E =
2e5 Kp/cm2 (2e10 N/m2), and specific weight = 2500e6 kp/cm3 (25000 N/m3)
We separate the load cases in two simple load cases: self-weight and load of 500 kp/m2 (5000
N/m2), to see its effects independently or combined.
As boundary conditions, we set the basis of all pillars with no movement, except the central one
that leaves free.
You must generate the mesh again, to refresh the conditions that we have changed on the
geometry. After meshing all conditions are automatically transferred to nodes and/or elements,
and then run the calculation.
Calculate-> Calculate…
We can follow the progress of the analysis using Calculate-> View process info
11
Master in Computational Mechanics Computational Mechanics Tools
GiD Practice Year 2016-2017
A message will indicate that the calculation is finished, and then we can swap to postprocess to
view the results: Menu Files-> Postprocess
POSTPROCESS
With the 'Windows> View Style' window we can select different kinds of visualization of the grid:
Boundary visualization
12
Master in Computational Mechanics Computational Mechanics Tools
GiD Practice Year 2016-2017
GiD, is a neutral program separated from the analysis code, could not know the physical
meaning of the results, a value called ‘displacement’, ‘temperature’ or ‘damage factor’ is nothing
more than a label for GiD. Just know if it is a scalar value (temperatures, damage factor), a
vector (velocity, deformation) or a 3x3 symmetric matrix (stress, strain). So the user is
responsible of how to use them.
e.g, GiD can deform the mesh with a vector result, but if the user chooses 'speed' as vector the
deformated shape will not have a logical meaning.
There are two basic types of results: nodal results and elemental results (in Gauss points,
generally used as integration points within the finite element).
Gaussian results are extrapolated to nodes to define this field in the whole space. Results will
be then showed discontinuous between neighbor elements (e.g. with a Contour Fill), it is
possible to calculate a smoothed continuous field by assigning a single value to shared nodes
(e.g. using a Smooth Contour will do this).
'Show Min Max': shows the location of the maximum and minimum values of a result
'Scalar line diagram': to draw graphs over beam line elements (bending, shear effort, etc.)
'Iso surfaces': draw a surface that represents points of constant value of a volumetric field.
e.g. to visualize the free surface of a fluid, or the filling of a mould, etc.
'Display vectors', as the name indicates draw vector arrows (in case of vector results and also
with results matrix where eigenvectors are drawn in blue for negative compressions and in red
for positive tractions).
'Deformations' deform the mesh according to a result vector (nodes displacement). Generally it
is interesting to contrast this mesh against the original one.
'Stream lines', lines that are instantaneously tangents to a vector field, typically a field of
velocities, to show streams of particles inside a fluid (e.g. air, water).
Using ‘Windows> Results' and 'Windows> Deform Mesh' you can get these views:
13
Master in Computational Mechanics Computational Mechanics Tools
GiD Practice Year 2016-2017
Sometimes seeing the whole 3D mesh could be confusing. In this case for example a
longitudinal 2D cut of the bridge can be understood easily.
14
Master in Computational Mechanics Computational Mechanics Tools
GiD Practice Year 2016-2017
Succession of 26 cuts (Do Cuts-> succession) with a contour fill of the Tyz stress
15