Straus7 Meshing Tutorial
Straus7 Meshing Tutorial
Straus7 Meshing Tutorial
Introduction
Straus7 Release 2 includes a set of powerful new tools that can dramatically inc
rease pre-processing productivity by automatically converting CAD models into FE
A models for analysis. Included in this set of tools
are the Clean Geometry, Surface Automeshing and Solid Automeshing tools. Clean G
eometry tools are used to
prepare the CAD model geometry for FEA use. This may involve the removal of unwa
nted geometric detail
or unintended discontinuities in the model. The Surface Automeshing tool is used
to generate a high quality
surface mesh consisting of Tri3, Quad4, Tri6 or Quad8 elements. The Solid Autome
shing tool is used to generate a solid mesh consisting of either Tet4 or Tet10 e
lements. To illustrate the use of tools - and the many
other related new tools and features - and to show how they work in practice, a
set of tutorials is provided.
Tutorial 1 gives an introduction to the three main tools by showing how a solid
CAD geometry can be converted into a solid FEA model. It describes how the model
can be imported and cleaned. It then shows how
the surface of the model can be meshed, followed by the solid meshing of the int
ernal volume. Importantly,
it gives examples of problem areas to consider when converting a CAD model for F
EA use. Consequently
the tutorial shows how an FEA mesh can be improved by cleaning the geometry in S
traus7.
Tutorial 2 shows how some manual input can be used to exploit the Extrude tool i
n Straus7. This can then
create a solid hexahedral mesh of higher quality than can otherwise be expected
from a tetrahedral mesh.
Tutorial 3 focuses on checking the quality of automatically generated surface an
d solid meshes, which can
then determine the usefulness of the mesh for analysis.
Tutorial 4 emphasises the need for a clean geometry for automeshing by highlight
ing what can go wrong
when meshing incorrectly prepared geometry. It also describes the use of a numbe
r of tools to obtain information from the geometry.
Tutorial 5 explains other uses of the Clean Geometry tool and other methods of c
leaning the geometry. This
tutorial also gives an in-depth description of how settings for the Surface Auto
meshing tool can be used to fine
tune a resultant mesh.
Tutorial 6 demonstrates how attributes can be applied to geometry. These attribu
tes are then converted to
their plate or brick equivalents by the automesher.
1
Terminology
To understand the terminology used throughout the tutorials, a list of is given
below with reference to Figure
1.
Figure 1. Types of geometric entities
Surface meshing: Automatically generated 2D finite elements (plates) created fro
m underlying geometry
describing the shape of an object. The surface mesher can generate triangular or
quadrilateral dominant plate
meshes.
Solid meshing: Automatically generated 3D finite elements (bricks) created from
a skin surface mesh of
plates. For a solid mesh to be generated a surface mesh must be closed, having n
o unbounded or free edges.
The solid mesher generates tetrahedral elements.
Geometry and Topology: Straus7 geometry mathematically represents the physical t
hree dimensional domain of an object, in a manner analogous to Boundary Represen
tation (Brep) solid modelling. In this representation, any geometric object can
be represented by a collection of faces requiring the definition of the
following geometric and topological entities:
Face: A face is a topological entity, consisting of one or more loops located on
an arbitrary, three-dimensional surface. The face defines a region of finite ar
ea, on a surface that may be of either finite area (e.g.
a sphere) or infinite area (e.g. an unbounded plane). Each face contains either
one or two bounding or
outer loops. All non-periodic faces contain one outer loop. Periodic faces, such
as could be used to
define a simple cylinder without any seam, may contain two outer loops. All face
s can contain any
number of additional cavity loops. A cavity loop defines a region on the face wh
ere material has been
removed (e.g. a hole). Faces may be assigned attributes such as pressure. These
attributes are then automatically assigned to elements upon meshing.
Loop: A loop is a topological entity, consisting of a collection of connected ed
ges. In a well-defined
loop, the end of the last edge is coincident with the start of the first edge.
Edge: An edge is a topological entity consisting of one or more connected curves
. Associated with each
edge are a start vertex and an end vertex. For single edges that form a closed l
oop, the start vertex is the
same as the end vertex. Edges may be assigned attributes such as shear stress. T
hese attributes are then
automatically assigned to elements upon meshing.
Curve: A curve is a geometric entity, defining a line in 3D space. A curve may b
e a simple analytical
curve (e.g. ellipse, straight line) or a spline curve. When a curve is associate
d with a surface via the edge
to loop to face hierarchy, the curve may be defined with reference to global 3D
space, or with reference
2
to a local (u,v) coordinate system, on the surface. An example of the former cou
ld be a line segment
between two points in 3D space, which also lies on a specified plane in 3D space
. An example of the latter could be a circular segment that lies on a cylindrica
l surface, but is defined in terms of (, z) coordinates on the cylinder.
Vertex: A vertex is a geometric entity, defining a point in 3D space. These poin
ts are used to define the
ends (start and end points) of edges. A correctly defined vertex must lie on the
curve that is referenced
by the edge that referenced the vertex. Vertices may be assigned attributes such
as a point force. These
attributes are then automatically assigned to the node generated at the vertex p
osition, upon meshing.
Surface: A surface is a geometric entity that defines the finite or infinite dom
ain on which a face entity
lies. Surfaces can be either simple analytical surfaces such as planes, cones, s
pheres or torii, or they can
be spline surfaces. Simple surfaces such as a plane re uire a small amount of da
ta to define them - a
plane for example, can be defined by a vector representing the surface normal, t
ogether with a point that
lies on the plane. Spline surfaces, particularly complex curved surfaces defined
by many control points,
can potentially re uire large amounts of data.
3
small fillets and holes, some fine-tuning of the mesh density may be re uired. I
f you can afford a very
large mesh, only the Max Edge Length value can be decreased to allow for a globa
lly fine mesh. However, a more efficient mesh can be created by keeping the Max
Edge Length value high and using the Custom Settings to allow for small elements
to be created around detailed faces and edges. (Tutorial 5)
5
Check the density of the mesh, both on a global and local level. If undesired cl
ustering exists, undo and
correct the geometry using the Geometry Cleaning tool or adjust the Surface Auto
meshing settings. If a
solid mesh is ultimately re uired, remember that at least two elements should sp
an any thickness that
may experience bending. (Tutorials 1 and 5)
Check the completed surface mesh for free edges. If some exist, changes should b
e made to the geometry by cleaning it. Alternatively, the mesh can be manually e
dited or cleaned by using the Mesh Cleaning
tool. (Tutorial 4)
Check the overall uality of the mesh by using the element contouring options. (
Tutorial 3)
If a solid mesh is intended, ensure that no plate free edges exist and that no p
late T-junctions exist. Note
that the uality of a solid mesh is very much dependent on the uality of the su
rface mesh on which it is
based. Also note that very large differences between sizes of elements that are
nearby can result in a very
poor solid mesh. In particular, a surface mesh representing a thin region may be
very difficult to solid
mesh if there is a large discrepancy in plate mesh size across the two surfaces.
(Tutorial 3)
The Solid Automeshing tool allows for either a Coarse, Medium or Fine mesh. A mo
del that is simple,
with few features and of low overall aspect ratio can be meshed with the Coarse
setting. A model that is
thin in areas and/or contains small features should be meshed using the Medium or
Fine setting. Note,
however, that the surface mesh has a big influence on the resulting solid mesh a
nd that sometimes this
setting can have minimal effect. Additionally, note that if the surface mesh all
ows for only 2 elements
across the thickness of any walls in the model, Tet10 elements should be used.
Evaluate the solid mesh by using the element contouring options. Ensure that ele
ments near areas of
interest and along the surface are of good uality. Note that the Display Brick
Free Edges tool is not useful
for tetrahedral meshes. (Tutorial 3)
Miscellaneous Tips
This section describes some miscellaneous tips that can be used in many situatio
ns when converting CAD
models for FEA.
Geometry Cleaning
The Geometry Cleaning tool will collapse part of a face or an entire face that c
ontains an edge length (or edge
lengths) less than the cleaning tolerance. In some cases, these collapsed faces
lose their original neighbouring
connections, but remain connected to the model at one or two vertices, as shown
in Figure 1. These faces
are easy to find because their remaining edges are free edges or T-junctions. Th
e Geometry Cleaning tool will
not be able to repair such faces because the remaining edges are outside the cle
aning tolerance. Such faces
can be removed by selecting and deleting them individually. It is usually easy t
o select all these orphaned
faces by using the Select Free Entities tool.
.
In many cases, a model will contain neighbouring faces that were intended to be
connected, but are separated
by a large distance. Such faces can be seamed by using the Geometry Cleaning too
l with a Min Edge Length
that is greater than the distance between the two faces. However, if this cleani
ng operation is applied to the
whole model, many intentionally small faces can be unintentionally collapsed by
the tool. In addition, faces
that are intended to remain separate may be unintentionally seamed if the distan
ce between the two faces is
less than the tolerance. This situation can be avoided by selecting only the two
faces that are to be seamed
and checking that the Geometry Cleaning tool is to be applied to the selected fa
ces only. The cleaning tolerance
can then be set to a higher value. Use the Entity Inspector to evaluate what the
tolerance should be.
Sometimes, two neighbouring free edges may exist, but cannot be seamed by the Ge
ometry Cleaning tool even
if the distance between the two edges is much less than the tolerance. Such a ca
se can occur with the free
edges shown in Figure 2. This occurs because there are no vertices within range
of the neighbouring face.
Seaming will only occur if a vertex of one face is within the tolerance range of
another face. Hence, to enforce
the faces to seam, a vertex can be created using the Create Vertex tool (Tutoria
l 5) along one of the free edges.
Seaming will then occur with a tolerance value determined by the distance betwee
n the two edges.
Figure 2. Example of two faces that cannot be correctly seamed without the creat
ion of a vertex at a neighbouring edge
Small Radius Fillets and Features
CAD models often contain every geometric feature of the object it represents. Th
is is normally to more completely represent the object visually. For FEA, howeve
r, many small features are irrelevant or well away from
areas of structural interest. If such features are to be kept in the FE model, a
n unnecessarily large and complex
mesh is re uired to capture these features. Two undesirable scenarios can occur
if such small features are
kept. If the mesh is fine enough to generate good uality elements, it may becom
e too large to allow a solution in reasonable time. If global transitioning (adj
ustable in the Custom Settings and described in Tutorial
5) is allowed to change rapidly, the mesh size may be sufficiently small, but th
e resulting mesh uality, particularly for tetrahedra, may be poor.
To avoid these problems, a global model should not include small features that a
re far from areas of structural
interest (possible stress concentration points, areas along main stress paths, p
oints of load and restraint application). If the small features are in areas of
interest, they can be defeatured in the global model and a submodel can be creat
ed so that only a local analysis can be performed.
Small features can be removed and corrected in a CAD package. The model can then
be meshed in Straus7.
Alternatively, the faces that represent the features can be manually deleted in
Straus7 or collapsed and removed by the Geometry Cleaning tool. However, collaps
ing such faces may introduce unwanted distortions
at other parts of the model. If this is the case, deleting the face is best. The
geometry can then be meshed.
However, this method will result in a hole in the mesh due to the removed face. If
the face was of a simple
shape, the hole can be filled by manually connecting a row or rows of elements.
If this is too laborious an
option, fixing the geometry in a CAD package is the best route to a successful m
esh.
Automeshing is not Always the Answer
The availability of the automeshing tools in Straus7 can prompt you to feel that
this is the one and only way
to create FE models whereby only a few button clicks are re uired. Many seemingl
y complex shapes can be
7
created by using element manipulation tools such as grading and extrusion in tan
dem with User Coordinate
Systems. Where this is not possible, and a solid mesh is re uired, an extruded s
urface automesh may be a
viable option. This can result in a vastly better hexahedral-dominant mesh with
fewer degrees of freedom
than would be generated by a tetrahedral automesh. This course of action and var
ious examples are described
in Tutorial 2.
Additionally, note that thin-walled solid CAD models are often better suited to
a 3D plate mesh. If a solid
model is re uired, the plate mesh can be extruded by thickness to create a hexah
edral dominant mesh of a
higher uality.
8
Tutorial 1:
Automeshing a Simple Solid Model
Introduction
This tutorial is a guide to converting CAD geometry files into finite element me
shes suitable for use in
Straus7 and FEA in general. It demonstrates both the Surface and Solid Automeshi
ng tools, which can be used
to automatically generate high uality finite element meshes. The tutorial also
addresses several problems
that can be encountered when converting CAD geometry into a finite element mesh.
The CAD model of Figure 1 (Automesh Tutorial 1.IGS), which represents a solid part
, is used in this tutorial. The model is imported, prepared for meshing and then
automatically meshed. Attributes such as restraints and pressures are assigned
to the geometry and these attributes are automatically transferred to the
elements by the automesher. Meshing of the solid model consists of two stages: t
he meshing of the surface
followed by the meshing of the volume.
Figure 1. CAD model of the solid part
Importing the CAD Geometry
Straus7 can import models from a
or IGES formats. Files
of these formats may be selected
to a new model or into
an existing model currently open
utomesh Tutorial
1.IGS, from the Straus7\Samples
wing steps:
9
1
2
3
4
5
Create a new file by selecting New from the FILE menu;
The units specified in CAD files are used by Straus7. Upon import, the CAD file
units are
converted to the units of the current Straus7 model. For this tutorial, set the
Straus7 units to
Nmm before importing the CAD file. Click GLOBAL/Units and select Nmm;
Select FILE/Import to import the CAD file. Change the path to the Straus7\Sample
s folder;
Change Files of Type to display files of IGES type and select the model file Aut
omesh Tutorial
1.IGS from the file list;
Click OK.
After selecting the file, a dialog (Figure 2) is displayed that confirms the IGE
S file to be imported. This window also includes import options. The default set
tings are sufficient for this tutorial. To proceed with the
import, click OK.
Figure 2. IGES Import Dialog Box
Prior to displaying the geometry another dialog (Figure 3) is shown, which infor
ms you about the length
unit used in the CAD file. The dialog also shows the overall model size in both
the CAD files units and the
unit system used in Straus7. The dialog provides the facility to change the CAD
files length unit, in case it
has been incorrectly specified in the CAD file. For example, if the length unit
of the CAD file was defined
as millimetres (or not defined at all) when metres was intended, you can specify
the correct length unit on
this dialog. Note that if the scale of the model is intended to be changed by so
me arbitrary factor, this can
be performed by the scale geometry tool after import.
Figure 3. CAD File Units Dialog Box
The geometry of the imported CAD model, Automesh Tutorial 1.IGS, is then displayed
as shown in Figure 4. Notice that the model name has changed from the default M
eshxx to the IGES filename. New Straus7
model files will always adopt the name of the imported filename. Once saved howe
ver, the filename will not
be altered if additional geometry is imported.
10
For a CAD model to be successfully meshed and used as an FE model, all faces mus
t have common edges.
This ensures the resulting meshes for each face will be compatible. On the Entit
y Toggle Toolbar, the Display
Geometry Free Edges button
can be used to identify mismatched face edges. Figure 7 shows this function
identifying two free edges.
Figure 7. Display Geometry Free Edges tool highlighting free edges found
For this particular CAD model, these free edges were never intended, but they we
re of no conse uence in
the CAD package as the edges formed a gap that was too small to appear. However,
if imported as is into
an FEA model, these free edges would represent a cut in the faces of the model. Be
cause of the cut, the faces
would not be closed and therefore, cannot correctly describe a solid entity.
The free edges can be seamed or zipped by using the Clean Geometry tool, which is si
milar to the Mesh
Cleaning tool. The Clean Geometry tool provides a number of options and paramete
rs as shown in Figure 8.
The Edge Merging Angle is used to specify whether edges connected to the same ve
rtex, are to be merged as
a single edge. For example, if an Edge Merging Angle of 90 is set, edges that mee
t at an interior angle greater than 90 will be merged to become a single edge and
the vertex between then is removed. An Edge Merging
Angle of 180 means that only edges that are perfectly tangential are merged.
The Minimum Edge Length parameter determines the minimum edge length of any face
. Faces that have an
edge that is less than the minimum will have that edge collapsed by the Clean Ge
ometry tool. If this means
that the face is reduced to two superimposed edges the face will be deleted by t
he tool. Note that the Mininum Edge Length can be specified relative to the leng
th of the longest dimension of the model or by an absolute length.
The Clean Geometry tool also provides the option to delete duplicate or co-incid
ent faces. When duplicate
faces are found, you can specify whether all co-incident faces are to be removed
, or whether at least one face
should remain.
Geometry cleaning can be applied to the whole model or just selected faces. This
works together with the
Free edges only option; by setting Free edges only, it is possible to operate on
the cuts and gaps in the model,
without affecting any other features in the model that are smaller than the mini
mum edge length.
13
The default settings are often a reasonable starting point for geometry cleaning
. All CAD models imported
should be cleaned to remove unreferenced geometry entities not re uired when the
CAD geometry is translated into Straus7 geometry entities.
Figure 8. Clean Geometry Dialog
To clean this model follow the steps below:
1
2
3
4
Select TOOLS, Clean Geometry;
Choose the Relative option;
Enter a relative Minimum Edge Length of 0.002;
Click OK.
The above procedure results in the Clean Geometry tool zipping free edges within
the tolerance specified.
Upon completion, a dialog box reports the changes made to the model.
If geometry cleaning results in the removal of all free edges, the Display Geome
try Free Edges button will automatically become inactive as there are no free ed
ges to display. By clicking on the Display Geometry Free
Edges button again, a message box will report that no free edges are found. Once
this is the case, the geometry is ready to be surface meshed.
Assigning Attributes to the Geometry
Attributes are assigned to geometric entities in the same way they are assigned
to elements and nodes. Vertices, faces and face edges can all be assigned attrib
utes. These attributes include restraints, thermal attributes,
loads and masses amongst others. In this tutorial, the model will be set up such
that the rear face is fully
restrained and the front face is assigned a normal pressure.
Restraints can only be applied to vertices. To assign a restraint to a vertex, c
arry out the following steps:
1
2
3
4
Ensure the Vertex Select toggle
and the Entity Select toggle
Select the vertices;
Click ATTRIBUTES, Vertex, Restraint;
Specify the desired restraint type;
14
are on;
5
Click Apply.
Attributes assigned to geometry are maintained after an automeshing operation. H
ence, when one vertex is
assigned a restraint, the node that is created at that location will inherit the
same restraint. Applying a restraint to an edge or a face usually involves assi
gning the restraint to two or more vertices. In the case where
two or more vertices on an edge are assigned restraints, nodes generated along t
hat edge (between the two
vertices) are assigned the least restrictive of the two attributes assigned at t
he vertices. Similarly, an entire
face will be assigned the least restrictive of all vertex restraints that are pa
rt of that face. Hence, if only one
vertex on a face is not restrained, that face will not be assigned a restraint.
Instead only the edges will be
assigned a restraint.
There are cases where an entire edge or face uses only one vertex. In such cases
, the entire edge or face inherits the restraint assigned to the one vertex. Bes
ides restraints and the mesh size attribute, the vertex temperature attribute is
also interpolated along the nodes generated on an edge. Other vertex and edge a
ttributes
(such as a point force at a vertex or an edge shear on an edge) are only applied
to the generated node or edge
respectively, without interpolation. The mesh size attribute is discussed in Tut
orial 6.
To fully fix the rear face of the imported model, select all vertices belonging
to that face and assign fully fixed
vertex restraints (not node restraints). Next, a pressure can be applied to the
front face. Ensure the Face Select
toggle is on and select the front face. In the Attributes menu, select Face, Pre
ssure, Normal (not plate pressure).
Apply a pressure of 1MPa. Figure 9 shows the restraints assigned to the rear fac
e and the pressure assigned
to the front face.
Figure 9. Vertices with restraint attributes and face with pressure attribute as
signed
Surface Automeshing
The Surface Automeshing tool is used to automatically generate a mesh of plate e
lements for specified geometry faces. This generates surface elements on the sur
face of the model. Note that the Surface Automeshing
15
tool must be used prior to creating a solid mesh. The tool can be configured to
mesh at a specified density,
and to mesh all or a selected number of faces. Meshes can be created using Tri3,
Tri6, Quad4 or Quad8
elements. Note that if a uadrilateral element type is specified, some triangula
r elements may still be generated, but usually only a small number. Hence, these
meshes are often referred to as uadrilateral dominant
or uad dominant meshes.
The decision as to which element type to generate can be made by determining whe
ther a plate or a brick
mesh is ultimately re uired. For plate meshes modelling plate/shell structures,
and for plate meshes to be
extruded into brick meshes, a uadrilateral dominant mesh is preferred. This is
because the four-node uadrilateral element is a better uality element than the
three-node triangular element. However, triangular elements should be used for
generating tetrahedral meshes. The decision to create either linear or uadratic
elements is dependent on the re uired analysis. A suitable mesh density is also
dependent on the analysis type
and the density necessary to provide an acceptable solution within the available
computer resources.
The Surface Automeshing tool (Figure 10) can function in two modes. In Auto mode
(default option) the
mesh density is specified by the Maximum Edge Length, either as an absolute leng
th or a percentage of the
maximum model size. Clicking Custom allows detailed control of the surface mesh
creation parameters. For
this tutorial the default automatic settings are used.
Maximum edge length sets the largest edge length of any element created by autom
eshing. This maximum
edge length can be previewed graphically by clicking on the Preview button, whic
h temporarily displays nodes
along the edges. Previewing the mesh can be achieved by the following steps:
1
2
3
Click TOOLS, Automeshing, Surface Mesh;
Select the mesh density by entering a value into the Maximum Edge Length field a
s either a
percentage or absolute value;
Click Preview.
Figure 10. Surface Automeshing dialog
This function gives an indication of the mesh density by displaying nodes at the
specified edge length. You
should use this function if you are uncertain about the mesh density re uired to
correctly represent the geometry. The node density displayed is only indicative
, however. The actual density may be somewhat different as the preview does not
take into account transitioning or the local edge curvature. Figure 11 shows
the resulting display using a Maximum Edge Length of 3%.
16
This operation could be performed only on those faces by choosing the selected o
ption, however this zipping
tolerance is still a safe global zipping tolerance for this model as there are n
o intentionally small features that
need to be maintained. Removal of the sliver faces can be achieved with the foll
owing steps:
1
2
3
4
5
Click EDIT, Undo to undo the previous automesh operation;
Display the geometry by clicking the Show Geometry toggle button;
Click TOOLS, Clean Geometry;
Specify a relative Minimum Edge Length of 0.05;
Click Apply.
Once the sliver faces are removed by the cleaning operation, the model is ready
to be automeshed. Figure14
shows the remeshed model with a 5% mesh density. The mesh is now more uniform wi
thout noticeable
clustering.
Figure 14. Remeshed model with slivers removed
Solid Automeshing
The Solid Automeshing tool (Figure 15), can generate solid meshes of either line
ar or uadratic tetrahedral
elements (Tet4, Tet10). The Surface Automeshing tool must be used to create a cl
osed surface (plate) mesh
prior to using the Solid Automeshing tool. Because tetrahedral elements are gene
rated, it is usually preferable
to create a surface mesh of triangles such that better tetrahedral aspect ratios
are generated. However, the
Straus7 solid mesher accepts any Straus7 plate type for the definition of the su
rface. With a model containing
plate elements that enclose a volume, applying the Solid Automeshing tool involv
es carrying out the following
steps:
1
2
Click TOOLS, Automeshing, Solid Mesh;
Select target element type (Tet4 or Tet10);
19
3
4
Specify that automeshing is to be applied to all of the model by setting Whole m
odel under the
Options tab;
Click Mesh.
Figure 15. Solid Automeshing dialog
The tetrahedral brick mesh is shown in Figure 16.
Figure 16. Solid meshed geometry
A Important Note about Tetrahedra
When using tetrahedra for solid models, it is important to ensure that a suffici
ently fine mesh density has
been used. Tet10 elements will provide results that are far superior to Tet4 ele
ments, especially for coarse
meshes or for modelling structures in bending and/or shear. However, a Tet10 mes
h re uires significantly
more computer resources than a Tet4 mesh with the same number of elements. It is
recommended that you
familiarise yourself with the limitations of these elements before using them fo
r real analysis work. The
Straus7 Verification manual provides some comparison of the results achieved by
different brick types.
20
Tutorial 2:
Extrusion of Solid Meshes
Introduction
In many cases, solid geometry is created by extruding one or more surfaces in a
straight line or about an axis
of rotation. Solid meshes of such geometry can be generated without the solid au
tomeshing tool. Instead,
a surface (plate) mesh is generated and then extruded into brick elements by usi
ng one of the element extrusion tools in Straus7. By following this procedure, i
t is possible to create a hexahedral or hexahedral dominant solid mesh of better
uality than a solid automeshed tetrahedral mesh.
This chapter provides three examples to show how solid CAD models can exploit th
e Extrude tool to create
a solid mesh from a surface mesh. The CAD models are Automesh Tutorial 2a.IGS (Fig
ure 1), Automesh
Tutorial 2b.IGS (Figure 10) and Automesh Tutorial 2c.IGS (Figure 18).
The tutorial also highlights some of the considerations that should be made when
creating any CAD model
for finite element use.
Figure 1. Solid CAD model
Example 1
The model of Figure 1 can be created by two extrusion operations. Firstly, the s
urface of the bottom of the
boss can be extruded to create the solid base. Secondly, the solid boss can be e
xtruded by its top surface to
meet the solid base. Both extrusions can be performed in CAD and in Straus7. How
ever, to achieve this on
an imported geometry in Straus7, several steps must be performed on the model in
the CAD package first.
21
If the CAD model is imported into Straus7 as it is, a problem will arise because
the top surface of the boss
in not aware of the bottom surface and conversely, the bottom surface is not aware
of the top of the boss.
A modification to the CAD model can be made to ensure that the boundary edge of
the top of the boss has
a corresponding edge on the bottom surface. This modification entails splitting th
e bottom surface such
that a split line e uivalent to the top of the boss is created. This results in
two faces superimposed on the
same plane. With two faces, automeshing can be controlled such that nodes confor
m to the boundary of the
split line. For the model of Figure 1, the face of the base surface is split such
that the outline of the boss
becomes an edge on this face. In this way, the two faces on the base surface can
be independently extruded
to create a compatible solid mesh. The split line is shown in Figure 2. The two
surfaces that are produced
are shown in Figure 3.
Figure 2. Split line to create two faces on the bottom surface
Figure 3. Two surfaces created via split line of Figure 2
This geometry is then ready to be exported into either IGES or ACIS format for i
mport by Straus7. As an
aside, as with building any CAD model for finite element use, any features that
are not to be analysed (such
as purely decorative features or small features far from areas of interest) shou
ld be removed.
Importing and Meshing the CAD Model
The model of Figure 3 can be imported as described in Tutorial 1 using the defau
lt settings. This model is
shown in Figure 4 with the wireframe option on.
22
Figure 11 shows the imported Straus7 model in an isometric view complete with wi
reframes. This example
shows that only a surface mesh of the cross section of the tunnel is re uired. T
his mesh can then be extruded
with the plate extrusion tool. Specifically, the Extrude, by Project, to Plane t
ool will be used to exploit the
planar end of the tunnel. Hence, the diagonally cut end of the model will be surfa
ce meshed and extruded
to the opposite end. For this operation to be carried out only the end faces are
necessary. All other faces are
not needed and can be deleted as shown in Figure 12
.
Figure 11. Imported geometry
27
1
2
3
4
Click TOOLS, Subdivide;
Select all Hexa8 bricks;
Set C to 30 so that there are 30 subdivisions in the axial direction;
Click Apply.
Figure 16. Subdivision of Hexa8 bricks
Next, repeat the same operation on all remaining elements by selecting them with
the Wedge6 toggle
In this case, B is set to 30 in the Subdivide tool dialog. The final mesh is sho
wn in Figure 17.
31
.
Example 3
Figure 18 shows a surface CAD model of a relatively thin structure consisting of
two intersecting pipes and
a fillet between them (Automesh Tutorial 2c.IGS). This model could be analysed as
a thin shell using only
plate elements located at the mid-plane surface, or if it is considered that the
thickness effects are important
in the analysis, it could be analysed using brick elements. This example shows h
ow to generate hexahedral
brick meshes for such structures.
Figure 18. Isometric view of imported CAD model of intersecting pipes with wiref
rames displayed
The model file (Automesh Tutorial 2c.IGS) is imported into Straus7 and all default
s are accepted. The
model is cleaned using the defaults and the Wireframes are generated for better
visualisation.
The first step to generating a solid mesh is to generate the surface plate mesh.
It is assumed that the CAD
model surface has been constructed as a the mid-plane surface. In any case, as l
ong as we know whether it
is an inner surface, a mid-plane surface or an ourter surface model, the procedu
re is basically the same.
The surface mesh is generated using a 4% relative edge length and the target typ
e set to Quad8. Quad8 elements can be curved and this generates a more accurate
mesh for this type of geometry, particularly around
the fillet.
Figure 19 shows the resulting plate mesh in Orientation display. The display rev
eals that the surface normals
are not consistent between the cylinders and the fillet. Plate Normals consisten
cy is essential for the extrusion
process. The normals can be easily adjusted by using TOOL, Align, Plate Normals.
Figure 20 shows the
aligned mesh.
33
Tutorial 3:
Checking Mesh Quality
Introduction
Although the Automeshing tool in Straus7 employs some of the latest methods to m
esh practically all surface
and solid models, this does not guarantee that the resulting mesh will not re ui
re further improvement or
uality checking or that it is suitable for analysis at all. As with any FE mesh
, checks should be made to ensure
that created elements are of a good uality and that the mesh is an acceptable r
epresentation of the intended
geometry. This entails inspection of element aspect ratios and internal angles.
Both these uantities represent how effective each elements formulation will be i
n calculating a resultant displacement field. Elements
of a bad uality with poor aspect ratio and/or internal angles are referred to a
s distorted elements. Such
distorted elements will give poor uality results and should be avoided.
The results obtained by automatic meshing can be highly dependent on the uality
of the underlying geometry. So it is not always known in advance what uality o
f mesh will be obtained. Therefore, uality checking
of the mesh is limited to after the mesh has been created. Factors that influenc
e the uality of an automatically generated mesh include the complexity and clea
nliness of the geometry and the prescribed mesh density.
A low density mesh with a large variation in geometrical feature size (e.g. larg
e faces near small holes or slivers) will re uire a sharp transition in element
size and will heighten the possibility of the creation of distorted
elements. A common problem in solid automeshes is the flat or near-flat tetrahed
ral element.
This tutorial demonstrates the use of a number of tools in Straus7 that can help
identify problem areas when
generating a solid mesh. The geometry of a bike wheel hub (Automesh Tutorial 3.IG
S, Figure 1), is used
as an example. The tutorial will also show how symmetry can be exploited to redu
ce meshing time.
37
Tutorial 4:
Geometry Cleaning
Introduction
Tutorial 1 highlighted some problem areas that can be encountered when importing
CAD geometry. This
tutorial will further stress the importance of ensuring that the geometry to be
meshed is ade uately prepared
by illustrating a number of techni ues and tools that can be used to clean the g
eometry. The model of a
household tap (Automesh Tutorial 4.IGS, Figure 1) is used as an example.
Figure 1. CAD model of a household tap
Displaying the Geometry
The imported geometry is shown in Figure 2.
49
Entity Inspector gives information about Face 47 of the model, which is a B-spli
ne surface. The length of the
nearest edge, Edge 40, is also given.
Figure 4. Use of Entity Inspector
As with any geometry that is successfully imported, this model can be immediatel
y surface meshed using the
Surface Automeshing tool. Using a relative Maximum Edge Length of 8%, the mesh o
f Figure 5 is produced.
In this example, however, this mesh is invalid if used for analysis. By clicking
the Show Plate Free Edges button, a number of free edges are shown, as seen in
Figure 5. Figure 6 shows a zoomed view. The free edges
that can be seen in Figure 5 imply that parts of the model are near, but topolog
ically separated from one
another. These free edges were not the result of the automeshing operation, but
due to the lack of compatibility between faces of the imported geometry. The mes
hing operation can be undone by clicking the Undo
button, or clicking EDIT, Undo. The free edges of the imported geometry can then
be found by clicking the
Show Geometry Free Edges tool, as shown in Figure 7.
51
1
2
3
4
5
Select faces that neighbour existing free edges (as in Figure 11);
Click TOOLS, Clean Geometry;
Specify a Minimum Edge Length of 0.02 (ensure that the value is otherwise smalle
r than edge
lengths in the selected faces);
Select Act on ... selected only;
Click Apply.
Figure 11. Selected faces around free edges
After all free edges are removed, the geometry is ready to be meshed. Figure 12
shows the resulting surface
mesh using a relative Maximum Edge Length of 4% and Quad4 elements as the target
element type.
An alternative to selecting the faces to be acted upon would be to set the Free
edges only check box. In this
case, only the edges that are free would be seamed, without affecting other edge
s in the model that are already
correctly seamed. The result would be the same as achieved above.
55
Tutorial 5:
Advanced Features
Introduction
This tutorial illustrates a number of tools and methods that can fine-tune a mes
h or repair imported geometry. To demonstrate these, four examples are presented
. The first is of a sheet metal part (Automesh Tutorial 5a.IGS) with poor geometry
definition. The second is a detailed 3 dimensional model (Automesh
Tutorial 5b.SAT) that includes a number of features that are unnecessary for anal
ysis purposes. The third
example focuses on the meshing of a single face of the model used in the second
example. The last example
demonstrates the use of the Surface Automeshing tools custom settings and vertex
attributes for local mesh
control.
Example 1
The geometry of a sheet metal part (Figure 1), is composed of two separate faces
. The figure displays the
wireframe, vertices and free edges of this geometry. Note that the geometry is i
nvalid for analysis purposes
as there are free edges between the two faces (the free edges along the perimete
r of the model are expected
as this is a surface-only model). In addition, there are a number of vertices th
at are not necessary for meshing.
The geometry is cleaned using the default settings.
Figure 1. Geometry of the Sheet Metal Part example
57
a clean re uires knowing the width of the narrow portion. In this example, the w
idth is e ual to the shortest
edge near the chamfer of the same face. Figure 4 shows the Entity Inspector disp
laying the length of this edge.
Figure 4. Entity Inspector displaying edge length
The length of the shortest edge is 6.35. To remove these edges along with the na
rrow region, the geometry
should be cleaned with a Minimum Edge Length that is greater than this value. Fi
gure 5 shows the result of
the geometry cleaned with an absolute Minimum Edge Length of 7.0. It can be seen
that the resulting cleaning operation has split the single face into two.
Figure 5. Cleaned geometry with the narrow region removed
59
Meshing the geometry of Figure 5 using the same settings used in the previous au
tomesh, results in the mesh
of Figure 6. This mesh does not suffer from the inclusion of high aspect ratio e
lements and would be preferred for analysis. It is important to note that if you
intend to mesh this part at a mesh size near to 6.35 (the
shortest edge size of the uncleaned geometry), you should not perform the defeat
uring shown here.
Figure 6. Meshed geometry
Example 2
Figure 7 displays the solid CAD model of an embossed bracket with 3 holes. When
imported, it displays as
shown in Figure 8. The imported geometry shows two additional cylinders. These a
re holes in the original
model that have been plugged with solid cylinders. For analysis, such plugged hole
s must be corrected.
More importantly, the embossing is unnecessary for analysis purposes and should
also be removed, otherwise
an unnecessarily large mesh would be generated.
60
Figure 9. Circular ends of the plugged holes selected with Toggle Loop Select on
The embossing may be removed manually by selecting each face that comprises the
embossing. This is a slow
process that can be expedited by using the Select Connected Entities tool. Howev
er, the embossing geometry
is connected to the bracket geometry, which would mean that selecting all entiti
es connected to a face on the
embossing would select the entire geometry. Because the Select Connected Entitie
s function can apply to only
entities that are drawn, this problem can be avoided by not displaying the face
that the embossing is connected to. To hide this face, first select it and then
click Hide Selected. Figure 10 shows the result of such an
action.
Figure 10. Geometry with selected faces hidden
62
The Select Connected Entities function can then be used on only the embossing. A
fter clicking the Select Connected Entities toggle, a dialog appears prompting y
ou to select a Master Entity of a specified Entity Type.
Note that by default the Select Connected Entities tool does not consider hidden
entities, which in this example
is what is re uired. Upon selecting a single face of one of the letters of the e
mbossing click Apply to select
all visible entities connected to it. This action selects the entire letter. Pre
ss Delete to remove these selected
entities. Figure 11 shows the Select Connected Entities dialog along with a lett
er of the embossing selected
with the tool.
.
Figure 11. Select Connected Entities tool used to select the embossing
Once all the letters of the embossing have been removed, the faces of the bracke
t that were hidden can be
displayed again by clicking the Show Selected Entities toggle. Viewing the face
that the embossing was connected to will then reveal the outlines of the removed
embossing, as shown in Figure 12. Removal of these
can be performed after selecting these entities with the Toggle Loop Select func
tion. Figure 13 shows the completed model.
63
this action. Press Delete when the selection has been made. Figure 15 is a plan
view of the remaining front
face with vertices displayed.
Figure 14. All but front face selected
Figure 15. Front face
The result of using the Surface Automeshing tool with the default settings is sh
own in Figure 16. From the
figure, it is clear that there is a clustering of elements about the top left ch
amfer. To see why this is the case,
the meshing operation can be undone by clicking the Undo button and displaying t
he geometry by clicking
the Show Geometry toggle. Focusing on this area reveals a number of closely spac
ed vertices (Figure 17).
65
the Clean Geometry tool with a Merging Angle of 140 results in the geometry and v
ertices as shown in Figure
18. This operation has eliminated all 4 vertices positioned along the chamfer.
Figure 18. Cleaned geometry
The Surface Automeshing operation can then be reapplied to the geometry. The res
ulting mesh is as shown
in Figure 19.
Figure 19. Meshed geometry
67
The result of an automeshing operation can be fine tuned by using the Custom Set
tings in the Surface Automeshing dialog (Figure 20). The following will offer an
overview of the four extra settings.
Figure 20. Custom Settings dialog
The Length ratio setting can be used to specify the minimum edge length that can
be created by any one element (with exception of elements that connect closely
spaced vertices as seen in Figure 16). By default the
Length ratio is set to 0.1, which means that the minimum element size created wi
ll be limited to 10% of that
specified by the Maximum Edge Length setting. To highlight the use of this setti
ng the face of Figure 18 is
remeshed with a Maximum Edge Length of 10% and a Length ratio of 0.01. This sett
ing should allow for
relatively large and relatively small elements to be created in the one mesh. Fi
gure 21 shows the result of this
setting. Here, the curvature of the circular holes is well defined with small el
ements, which uickly grow into
larger elements with distance away from the holes.
Figure 21. Result of Maximum Edge Length of 10% and Length ratio set to 0.01
The change in element size across faces of a geometry can be controlled with the
Maximum Increase setting.
This defines the percentage difference in edge length that is allowed between ne
ighbouring elements. In68
creasing this value gives a faster transition in element size from small geometr
ic features to large. Reducing
this value maintains a more gradual transition between element sizes. A small Ma
ximum Increase value will
produce a better uality mesh, but will introduce more elements. Figure 22 shows
the result of repeating
the last meshing operation with a Maximum Increase of 8%. The effect of this set
ting is pronounced when
compared to Figure 21. The much more stable gradation of element size has produc
ed more elements overall
resulting in a better defined mesh which is most obvious around the centre circl
e.
Note that it is possible and valid to enter a Maximum Increase of zero. Such a v
alue means that the increase
in edge length between neighbouring elements is zero. Therefore the entire mesh
will be composed of elements of a size dictated by the smallest edge length or f
eature in the model.
Figure 22. Mesh with Maximum Increase of 8%
The Edges per circle setting determines the minimum number of elements to be pla
ced around a circle and,
effectively any curved edges. For this example with no closely spaced vertices d
efining the geometry, the Edges per circle setting is the one factor that has fo
rced some elements down to a size that approaches that defined
by the Length ratio. If a circle is so small that to put the minimum number spec
ified means that the edge
length of those elements will be smaller than that defined by the Length ratio,
then the number created around
that circle will be less than the minimum specified. Instead only the maximum nu
mber of elements of the
minimum size that can fit around that circle will be created. The minimum value
that can be assigned to the
Edges per circle setting is 8. Figures 23 and 24 show the result of repeating th
e last operation with Edges per
circle set to 8 and 34, respectively.
69
Figure 25. Mesh with ...on edges longer than set to 10mm
The Edges per circle and ...on edges longer than settings are not limited in the
ir application to only circles; these
settings apply to any edge with curvature. An edge with curvature has a radius o
f curvature. Based on the
radius of curvature, a circumference is derived. This circumference is compared
to the ...on edges longer than
setting. If it is greater than that value, the edge is assigned a portion of the
elements defined by the Edges per
circle value, corresponding to the ratio of the edge length and the circumferenc
e of a circle with the same
curvature. For example if an edge has a length of 10mm and is shaped as a uarte
r arc of a circle, it is considered as a circle of length (circumference) 40mm.
An ...on edges longer than setting of less than 40mm will
assign the minimum number of elements to that edge.
The custom settings in the Surface Mesh dialog are not the only way to control o
r fine tune a mesh. Much
more control is afforded through the use of the Mesh Size attribute and the crea
tion of new vertices. The use
of attributes applied to geometric entities such as vertices was discussed in Tu
torial 1. The following describes how the Mesh Size attribute and creation of ne
w vertices can be used to change the local mesh density.
Consider that at the bottom left portion of the geometry a support is to be mode
lled via a number of contact
elements. This would then re uire a locally dense mesh. A locally dense mesh can
be enforced by adding a
number of vertices that can be used to delimit the region. Create two vertices a
long the bottom of the left
straight edge via the following procedure:
1
2
3
4
Click CREATE, Vertex;
Select the left straight edge of the geometry;
Use the slider tool or specify an absolute or relative edge position in the dial
og (Figure 26);
Click Apply.
71
Note that the two additional vertices are positioned along a straight edge and d
o not specify any additional
geometric information their removal would not affect the geometry. Hence, if the
Clean Geometry tool was
to be used, these vertices would be removed. This can be prevented by changing t
he vertex type attribute to
Fixed Type. To change the Type of a vertex, carry out the following steps:
1
2
3
4
Click ATTRIBUTES, Vertex, Type;
Select the vertices to be changed;
Select the type in the dialog (Figure 29);
Click Apply.
Figure 29. Vertex Type dialog
To further demonstrate the control provided by the use of the mesh size attribut
e, additional attributes can
be assigned. In this case, the small hole on the right is assigned a relatively
fine mesh density, along with a
small portion of the right side of the centre hole. To achieve this, create a ve
rtex at the right side of the centre
hole. Next assign both this vertex and the vertex at the small hole on the right
, a mesh size of 0.25mm. Figure 30 shows the meshed result. Note that the entire
small hole inherits this fine mesh size, whereas only a
small portion of the larger hole inherits the finer mesh size. This is because t
he small hole contains only one
vertex and the mesh size attribute is therefore applied to the entire edge. You
can avoid this if necessary,
simply by creating another vertex on the circle, somewhere diametrically opposit
e the first vertex. This new
vertex is not assigned an attribute and hence the mesh is not constrained betwee
n the two vertices.
74
Figure 30. Locally enforced mesh density at right side and centre hole
Example 4
The following figures are intended to further illustrate the use of the Vertex M
esh Size attribute. A s uare
face of edge length 1.5 units is imported. The face is then meshed at 10% and 30
% relative edge length, with
and without specifying a vertex mesh size at one or both of the top vertices. Wh
en a vertex mesh size is specified, its value is set to 0.05 units.
75
80
Tutorial 6:
Geometry Attributes
Introduction
This tutorial demonstrates how the vertex, face and edge attributes can be used
on the imported CAD geometry of a jig (Automesh Tutorial 6.IGS), which is shown in
Figure 1. These attributes include vertex mesh
size, vertex restraint, edge type and face pressure, amongst others.
Although geometric attributes such as restraints and pressures have element attr
ibute e uivalents, the application of the attributes at the geometry stage has s
ome advantages. In many cases a face represents a region
where an attribute such as a pressure can be assigned. At the meshed stage, howe
ver, applying such attributes
can be difficult because selection of the appropriate regions can be tedious. Th
is can be because there are
many elements in the region, or the region cannot be easily selected by using on
e of the selection tools.
The mesh size attribute, as discussed in Tutorial 5, is very useful if the local
mesh density is to be varied. In
Tutorial 6, one region, the fillet at the base of the shaft of the jig, is to ha
ve a relatively high mesh density to
capture the radius of the fillet. The edge type attribute, like the vertex type
attribute, is used to define how
attributes are interpolated. It controls how some attributes, such as vertex res
traints are interpolated along
the edge.
Figure 1. CAD model of a jig
Importing the Geometry
Automesh Tutorial 6 is a half symmetric model of the picture shown in Figure 1. An
isometric view of the
imported geometry is as shown in Figure 2. As with all imported geometry, the Cl
ean Geometry tool should
be used to perform preliminary cleaning.
81
5
Click Apply.
Edges that are marked as being non-interpolated have their colour changed (as de
fined in the Entity Display
dialog). Figure 4 shows the edges that are changed in type.
Figure 4. Non-interpolated edges
Assigning Pressures
A pressure is to be assigned to the model to represent a weight on top of the re
ar flat area. This flat area is
represented by a single face. Hence, applying a pressure to this region involves
assigning a pressure attribute
to the face. Because the geometry display does not currently support the orienta
tion display that is supported
by plate elements, determining the direction of the pressure can be achieved by
applying the pressure attribute and observing the direction of the vectors. The
following steps show how a pressure can be applied
to a face:
1
2
3
4
Click ATTRIBUTES, Face, Pressure, Normal;
Select the face to be assigned;
Enter a pressure in the dialog;
Click Apply.
In the case of the jig, a pressure of -1 MPa is assigned to the face. Figure 5 s
hows the model of the jig with
a pressure applied to the rear flat face.
84
Figure 6. Entity Inspector used to determine the edge length of the fillet
The intention is to have 3 elements across the radius of the fillet. For this to
happen, the mesh size should
be approximately 2.5 mm. Use the following steps:
1
2
3
4
Click ATTRIBUTES, Vertex, Mesh Size;
Select all vertices that comprise the fillet faces;
Specify a mesh size of 2.5 mm in the dialog;
Click Apply.
Figure 7 shows the Mesh Size attribute dialog being used to change the mesh size
at the fillet.
86
Figure 8. Surface mesh of the jig with face attributes transferred to elements
88