3 Solid Mesh
3 Solid Mesh
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.1. Introduction
This tutorial presents in detail all the steps taken to generate one tetra and one hexa mesh for the same component. You will read an ANSA database containing the geometry of the component create a tetrahedral mesh, and then read again the same file in order to create the hexa mesh. The steps described in this tutorial are: Read the ANSA database of the component. Generate the triangular surface mesh for the tetra solid mesh. Examine and improve the quality of the surface mesh. Define the closed volume that will be meshed. Generate the tetra elements. Examine the quality of the volume mesh. Obtain information regarding the mesh (number, quality) and the component (weight, volume) Read the same ANSA database to mesh it from the beginning with hexa elements. Prepare the geometry for hexa meshing, by cutting it into blocks. Align the nodal number of the Perimeter Segments. Create a surface mesh of quad elements only. Generate the hexa elements using the Volume Map algorithm. Examine and improve the quality of the volume mesh.
Note that the hexa mesh requires more effort and time than the tetra mesh. Both of them though will familiarize you with many ANSA functionalities. 3.1.2. Prerequisites Reading the 4 pages of section Intro.2.1. Getting Started of this Guide is recommended in order to obtain a familiarization with the ANSA interface and terminology. It is also suggested to have performed Tutorial 1. 3.1.3. Problem description The geometry of the component is shown below:
3.1.4. Data files The file required for this tutorial is tutorial_files/03-solid_mesh/solid.ansa . The results can be found in files solid_tetra.ansa and solid_hexa.ansa in the same directory for reference.
Tutorial 3 - 2
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.2. Read the ANSA database
Start ANSA. In this case you will read an ANSA database with clean geometry and no topological problems. Keep the default middle tolerance settings in the SETTINGS>TOLERANCES function. Select FILE>OPEN to read the ANSA file. The File Manager window appears. Specify a filter (*ansa in this case), navigate and select the ANSA file solid.ansa.
Press OK. The geometry of the part is read into ANSA. The part should appear as shown.
Activate SHADOW display mode and rotate the part to view it better.
SHADOW
You can perform a quick check of the topology by de-activating SHADOW mode and DOUBLE CONS visibility flag buttons. The display is left blank which implies that there are no free (red) or triple (cyan) CONS and hence this is the description of a closed volume. Activate SHADOW and DOUBLE flag buttons back. Save the file as solid.ansa in your local directory from FILE>SAVE AS.
Tutorial 3 - 3
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.3. Generate the tetra Volume Mesh
MESH > WIRE Switch to MESH menu.
Switch to WIRE display mode de-activating SHADOW. Before proceeding to volume meshing, you should ensure that the correct element length and distortion settings are assigned to all Perimeter Segments. Activate the SHELL MESH> PARAM. PARAM. and ensure that the Element Length minimum limit is set to zero.
Activate the MACROs>LENGTH function. Select with left mouse box selection all the Macro Areas. Confirm with middle mouse button. The Input window appears.
The element length is applied on all the Perimeter Segments of the selected Macro Areas. Finally activate the PERIMETERs>DISTOR function. The Distortion Definition window appears. Specify a distance distortion of 20% of the local element length. Press OK to apply these settings on all the visible Perimeter Segments. Note that the appearance of the model has not changed. This is because the values of length and distortion were already applied in the ANSA database that you opened. However it is advised to always check these parameters. DISTOR In order to mesh the component with tetra elements you must first define the Volume entity. Activate the VOLUMEs>DEFINE function. Keep the Auto flag active in the Mode window. Left click on one of the Macros that form the volume. The Auto mode recognizes and selects all the Macros that form a closed volume. DEFINE Press middle mouse button to accept.
Tutorial 3 - 4
Back to the Properties window, the newly created Property is highlighted in black. Double click on it in order to select it.
Next, the Part Manager appears, in order to allocate the Volume entity to a Part. Select NEW [PART] to create a new Part. A new empty Part appears in the Part Manager. Click on the name and change it to "volume".
Then left click on the new part to place the Volume entity in it.""
Make sure that the VOLUM. Visibility flag button is active, otherwise you cannot see or select a Volume entity. VOLUM. To verify the Volume entity creation, activate the VOLUMEs>INFO function and pick the Volume. This becomes highlighted for a preview. Press ESC to exit. INFO
Tutorial 3 - 5
(Note that the number of generated elements may vary between different machines due to round off).
De-activate the MACROs visibility flag to remove the Macro Areas from the view. Only the tetra volume elements remain visible. MACROs
Tutorial 3 - 6
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.4. Identify poor quality regions of the volume mesh
The quality of the surface and volume mesh will be examined with respect to skewness criteria. Activate the Presentation Parameters window by pressing the F11 key. F11 Keep only the Skewness flag button active and then select the IDEAS skewness definition. Input a threshold value of 90 degrees for shells and 0.4 for solids. Ensure that you have the default threshold values shown for quality criteria (min, max elem. length =0) as they affect the surface mesh generation process. In case that these were not the values used in the previous step erase and remesh the model. De-activate the Middle Point Dev and Align. flags at the bottom. Press the OK button to accept the settings and exit. To perform the quality check HIDDEN switch to HIDDEN view mode by activating the respective flag. Elements that violate skewness quality criterion are colored in green according to the legend on the right. The number of visible violating elements, 9 in this case, is shown on the left under OFF. Note that the number of OFF elements may vary slightly between different machines due to round off. As a result the following steps of shell mesh improvement may have to be performed in different areas. Activate the EXTREME function of the FOCUS group to isolate the violating tetra elements. EXTREME
(Note that MACROs visibility flag is de-activated and hence only failed tetras are visible). ! Note also that from ANSA v11.3.1. the EXTREME function can zoom automatically to the worst element (see ANSA Users Guide section 9.5.3.1.). The following steps are optional and are performed in order to mark the positions in space of the problematic tetra elements. This will allow a clearer observation of their locations with respect to the surface mesh.
Tutorial 3 - 7
You are going to create 3D Points at the locations of the tetra elements. Make sure that the POINTs POINTs visibility flag is active so that you can see the Points that you will create. Activate the POINTs>RELAT. RELAT. function. Select with left mouse button box selection all the nodes of the violating tetra elements. Confirm selection with middle mouse button. The Relative window opens. Keep the default zero values and press OK to create the 3D Points at the selected positions. The created 3D Points appear as cyan squares.
De-activate HIDDEN display switching to WIRE to be able to see inside the outer surface mesh. Activate MACROs visibility again MACROs to bring the surface mesh back. You should be able to see the surface mesh and the violating tetra elements marked by cyan 3D Points. Rotate the part to examine them better. Notice that all OFF tetra elements are near the surface. To avoid such elements you should focus on the generation of a good quality surface mesh first. Activate the SHELL MESH> ERASE ERASE [Visible] to erase the surface mesh of all the visible Visible Macro Areas. Notice that as a consequence the volume mesh is erased automatically, due to its dependency to the surface mesh. Note however that the Volume entity remains valid even if unmeshed. (Notice that the 3D Points remain still visible. You can switch back to TOPO and de-activate the POINTs visibility flag button.)
Tutorial 3 - 8
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.5. Generate a good quality triangular surface mesh
Now you will focus on the generation of a good quality surface mesh to guarantee a volume mesh without problematic tetra elements. MIXED.. MIXED QUAD TRIA
Activate the SHELL MESH>FREE [Visible] function to mesh all visible Macro Areas with the FREE
All Macro Areas are meshed as reported in the Text Window. The number of generated elements is displayed at the bottom left of the screen. To perform the quality check HIDDEN switch to HIDDEN view mode by activating the respective flag. Elements that violate skewness quality criterion are colored in green according to the legend on the right. The number of visible violating elements, 29 in this case, is shown on the left under OFF. Note that the number of generated and OFF elements may vary slightly between different machines due to round off. As a result the following steps of shell mesh improvement may have to be performed in different areas. The improvement of the mesh will be made in two steps. The first and most important consists of the improvement of the shape of the Macro Areas, the application of different meshing algorithms, and the adjustment of the nodal number of selected Perimeter Segments. These actions will eliminate most of the problematic elements. The second step will consist of movement of nodes on the CAD geometry, and element splitting in order to improve the quality of the remaining violating elements. Zoom in to the location shown in the small image. You can see a very narrow Macro Area with highly skewed elements. Activate the MACROs>JOIN function and select with left mouse button the Perimeter Segment shown. JOIN
Note that to retrieve a Perimeter Segment, that was joined unintentionally, activate the MACROs>RELEASE function and select it among the previewed Segments with the left mouse button.
Tutorial 3 - 9
Activate the HOT POINTs> DELETE function and select the leftover Hot Points to delete them. DELETE
As the Hot Points are deleted from the Perimeters, the Perimeter nodes are recalculated and therefore the mesh is again erased.
Activate the SHELL MESH> RE-MESH [Visible] function to remesh all the visible Visible unmeshed Macros with the algorithm that was last used for each one (in this case the Free Tria). ! Note that from ANSA v11.3.1. the SHELL MESH> A.MESH function allows the automatic remeshing of Macros which were erased by such modifications (see ANSA Users Guide section 9.4.3.). Notice that not only the violating elements have disappeared, but also the overall look of the mesh has improved. RE-MESH
Tutorial 3 - 10
Use the SHELL MESH> GRADUAL [Visible] function to mesh the single unmeshed Macro with the Gradual
Notice how the resulting mesh differs from the previous one. The Gradual algorithm produces more elements than the Free, and thus avoids some skewed elements.
! Note that from version 11.3.0 the [ReGenerate] option is available in all meshing functions and there is no need to erase the current mesh to try a different algorithm (see Users Guide section 9.4.2.).
Tutorial 3 - 11
Activate the MACROs>JOIN function and select with left mouse button this Perimeter Segment. JOIN
Activate the HOT POINTs> DELETE function and select with a box the leftover Hot Points to delete them. DELETE
RE-MESH Visible
Activate the SHELL MESH> RE-MESH [Visible] function to remesh all the visible unmeshed.
Tutorial 3 - 12
To view the inner Macros of the hole, perform a NOT operation from the FOCUS Group of commands, and select with box selection the Macros that you want to remove form the view. NOT To further isolate the region, perform an OR operation and select with box selection the Macros of interest. OR
Again here you can join some Perimeter Segments, to improve the quality of the generated mesh. Activate the MACROs>JOIN function and select with left mouse button the Perimeter Segment shown. JOIN
Tutorial 3 - 13
Now you can also delete the left over Hot Points.
Activate the HOT POINTs> DELETE function and perform a box-selection with the left mouse button. DELETE
To demonstrate the use of another algorithm, activate the SHELL MESH> MAP Visible [Visible] function to mesh all the visible unmeshed Macros with the Map algorithm. MAP
Tutorial 3 - 14
In the next area there is one skewed element. This could be corrected by increasing the nodal number of the nearby Perimeter Segment.
Activate the PERIMETERs> NUMBER function and select the Segment with the left mouse button. NUMBER
The Segment is highlighted and the Input window appears, displaying the current nodal number.
The Segment is now colored in red, indicating that its nodal number has been specified explicitly.
Tutorial 3 - 15
Note that by now the number of OFF elements has dropped to only six. These will be corrected with the use of some manual functions for demonstration of that kind of functions. Move to the next region shown. The problematic element will be corrected by a minor nodal movement. Activate the GRIDs>MV SURF [SINGLE] function to SINGLE move a selected Macro Area node. Select with the left mouse button the node to be moved. Start moving the node. The motion takes place on the underlying CAD surface. MV SURF During the motion the participating elements are highlighted and their quality is continuously monitored and colored accordingly. In this case, as soon as the green color disappears the element is fixed. Press again the left mouse button to lock the node at its new position.
Move to the next region shown, with the two skewed elements.
Activate again the GRIDs>MV SURF [SINGLE] function to SINGLE move a selected Perimeter node. Select with the left mouse button the node to be moved. Start sliding the node along the Perimeter to improve its skewness. MV SURF
Tutorial 3 - 16
To lock the node to its new position, press the left mouse button again.
Although you could improve the skewness of the elements by moving the nodes with the MV.SURF function, a much better result can be achieved in the following way.
Tutorial 3 - 17
Note that the split operation left two QUAD elements that should be removed, so that the volume can be meshed with tetra elements later. Activate the GRIDs>PASTE function. Ignore the Paste window that appears, as it is required for more advanced use. Select with the left mouse button the nodes with the same order as shown. Confirm with middle mouse button. PASTE The first node was pasted onto the other and as a result the QUAD elements was collapsed to a TRIA, and the collapsed small TRIA has been completely removed. Perform the same operation for the other element.
2 1
2
(Note that you can paste more than one nodes to another. All the selected nodes are pasted to the last selected one. Hence you could perform the above two-step operation in a single one.)
Tutorial 3 - 18
Notes You should always aim to produce a good quality mesh by shaping properly the Macro Areas, using the most suitable meshing algorithm and adjusting the Perimeter element length or number. This is the faster way and it also assures that if the mesh is erased for some reason, a simple remesh operation will bring it back exactly as it was. On the contrary, corrections that were made using manual nodal movements and element splitting are not retrieved during remeshing. The powerful Reconstruction algorithm, available from ANSA version 11.3.0, can be used during or after the mesh generation to correct most of the problems that were resolved manually in this section, thus saving time in model creation. See the ANSA Users Guide section 9.4.4. for details on the use of Reconstruction.
without Reconstruction
with Reconstruction
Tutorial 3 - 19
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.6. Remesh the volume
Having completed the surface mesh, mesh the Volume entity again. Remember that you do not have to define the Volume entity, as it exists from your work in Section 3.3. Activate the VOLUMEs> MESHV MESHV [TET MESH] function and select the TET MESH Volume with the left mouse button. Confirm with middle mouse button. As the Macros Areas are meshed their mesh will be used as a starting mesh for the tetra elements. The volume mesh generation process begins. A progress bar appears as well as messages in the Text Window. 15295 tetra elements in the volume, as reported in the text legend on the bottom left of the display. While still in HIDDEN display mode to examine the mesh quality, no OFF elements are reported HIDDEN
De-activate the MACROs visibility flag to remove the Macro Areas from the view. Only the tetra volume elements remain visible. MACROs SHADOW mesh. Switch to SHADOW display mode to better view the volume
Tutorial 3 - 20
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.7. Obtain information about the mesh.
ANSA can provide various type of information in a report format through the D.INFO (Deck Info) command in the DECK menu (for all DECKS). Activate the D.INFO function, D.INFO located at the bottom of the DECK menu. The Deck info parameters window appears. Select the type of information you want to acquire by activating the respective flag button. DECK > Activate the Solid and Shell info flags. Activate the Skewness flag in the SHELL QUALITY section, to obtain information about the skewness quality of the surface mesh.
Activate also the Skewness flag button in the SOLID QUALITY section, to obtain information about the skewness of the volume mesh. Click on the Custom button. The Threshold Values window appears.
In this window there are five subdivisions of the whole range of values that this criterion takes. Having selected the IDEAS solid skewness definition, the default subdivisions have to be altered, as the specific criterion ranges from zero to one. Type in the value 1 in the last entry box and press on the Distribute button. The limits of the subdivisions are automatically redistributed. Press OK to close. Back to the Deck info parameters window, activate the WHOLE DB (Whole Database) flag so that you get information for all the entities in the Database and not only for the visible ones. Remember that at the moment only the solid elements are visible, as the MACROs visibility flag is de-activated. Press OK in the Deck info parameters window to obtain the information. The Deck Report-Information window opens, displaying all the information.
Tutorial 3 - 21
Scroll down in the window to view the rest of the information. Shell skewness info ID of best and worst element with respect to skewness.
Distribution of shell skewness (absolute and percentage) ID of tria shell with worst skewness (note down this ID, see next page) ID of best and worst element with respect to skewness. Distribution of solid skewness (absolute and percentage) Press the SAVE AS button to save the info to a text file or press ESC to exit.
Tutorial 3 - 22
Now the IDs of the elements appear on the screen. (Note that some Macros have been removed for clarity).
To obtain more information about the specific element activate the INFO ELEMENTs>INFO [INFO] function and select the element from its center with the left mouse button. The element card opens and information is provided in the Text Window. INFO
Tutorial 3 - 23
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.8. Obtain information about the component
The D.INFO function can also be used to inquire about the volume, the mass and the center of gravity (CoG) of a meshed solid part. Prior to this however you must specify the correct material properties. Activate the Material List from the M.LIST M.LIST button. The Materials window appears. Select the single Material 1 from the list and press EDIT. (Note that the appearance of the cards depends on the active DECK, which in this case is NASTRAN). The MAT1 card opens. Note that length units are mm and mass units are kg. Change the name to "steel" in the top field and then type in 210 (kN/mm2) for the Youngs Modulus and 7.85x10-6 (kg/mm3) for the density. Press OK to confirm and close the card.
Back in the Materials window the name has been updated. Press ESC to exit from the Materials window.
MACROs visible.
WIRE
Activate the D.INFO function. The Deck info parameters window appears. De-activate all previous flag button selections. Activate the Mass info flag. D.INFO
Activate the Visible flag so that now you obtain this type of information about the visible entities, in this case the solid tetra elements. Press OK to get the information report.
Tutorial 3 - 24
The CoG position and principal axes are also presented graphically on the screen. (Move the Deck-Report-Information window aside to view the part. Do not exit from the window, as the axes will disappear).
Note that the units of the output correspond to the units that you use for the specification of length and material properties. Press the SAVE AS button to save the info to a text file, or press ESC to exit. The tetra volume meshing task has been completed. Save the file from FILE>SAVE. Quit ANSA from FILE>QUIT.
Tutorial 3 - 25
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.9. Prepare the geometry for Hexa meshing
Start ANSA, read in the file solid.ansa that you have saved in Section 3.1., and save it as solid_hexa.ansa from FILE>SAVE AS. To create a Hexa mesh you must decompose the solid part into sub-volume blocks that can be meshed by the Volume MAP algorithm. To do so you will use certain CAD functions of ANSA to cut Faces at specific convenient locations, and also create new Faces that will be the interior boundaries of connected sub-volumes.
The volume decomposition must be made always with the scope that: - The Volume MAP algorithm requires two opposite sets of Macros (master and slave), with compatible shell mesh, and that all the bounding guiding sets of Macros, which close the volume and define the extrusion direction, are meshed with quad mapped mesh only. Careful Perimeter nodal alignment will be required to satisfy this requirement. - To achieve solid mesh continuity, the created interior Faces, and hence Macros, must belong to both adjacent Volumes. - The blocks must have ideally orthogonal corners, so that the generated hexas are of good quality. The image below describes the volume decomposition that will be performed in order to generate the hexa mesh. Five sub-volumes will be created and meshed separately. The extrusion directions are displayed by an arrow, indicating which surfaces will be master and slave sets and which will be guiding sets.
volume1
volume4
volume5
volume2
volume3
Tutorial 3 - 26
Activate the FACEs>PRJ-CUT (Project-Cut) function and select with the left mouse button the Hot Point shown (1). Then select with the left mouse button the CONS shown (2). Pay attention to select these Hot Points, and not other ones. The Hot Point is projected to the CONS and a CUT is made between the two positions. PRJ-CUT
As you are still in the function the last Hot Point remains selected for projection. Select with the left mouse button the other CONS (3).
The last Hot Point is projected and another Cut is made in that Face.
Activate the FACEs>CUT function and cut the Faces between the two Hot Points as shown. CUT
Tutorial 3 - 27
In order to facilitate visualization and manipulation of sub-volumes you can create new PIDs and assign them to selected Faces. You can also have correspondence of PID and volume ID. To do so, first change the ID of the default existing PID in the database from 1 to 100. Open the Properties window from PR.LST the PR.LIST button. Select the Property in the list and press EDIT. The Shell Property window appears. Change the PID from 1 to 100 and press OK.
This is to free up the PID numbers 1 to 5 so that they are assigned to the Faces that define the sub-volumes 1 to 5 that will be created, for correspondence purposes. Activate the FACEs>SET PID function and select with the left mouse button the Faces that form volume1. The selected Faces become highlighted. De-select with the right mouse button if necessary. SET PID
Close selection with the middle mouse button. The Properties window appears. Press NEW to create a new PID with ID=1 and name "shells of volume1". A new Shell Property window opens. Type in the name and ID as shown.
Tutorial 3 - 28
Back in the main Properties window, the newly created PID is highlighted in black. Double click on it to select it. The selected Faces now belong to this PID.
To proceed with the remaining part remove from the display PID 1 by performing a NOT operation in PID mode.
ENT ..
Press LOCK in the FOCUS Group of commands to lock the currently visible entities. LOCK
Note in the following steps the SHADOW mode is active for clarity. You can however proceed without it, if you prefer so.
Tutorial 3 - 29
ANSA identifies the whole string of Faces forming the fillet and highlights them. It also provides a preview of the fillet splitting. The Divide Parameters window opens. Activate the Join Macros flag and press OK to proceed.
Press ALL from the FOCUS Group to bring back all the entities that were visible when the LOCK flag was activated. ALL The fillet was split in two and the initial boundaries of the fillet were joined to form wider Macro Areas in the MESH menu, and are therefore colored in a brown color.
Tutorial 3 - 30
2 1
2 1
Activate the FACEs>CUT function and select with the left mouse button the Hot Points shown. CUT
Perform NOT operations to remove all Faces except those forming part of volume3. You should leave visible only the Faces shown below. NOT
Activate the FACEs>SET PID function and select with the left mouse button the Faces that form part of volume3. Close selection with the middle mouse button. SET PID Press NEW in the Properties window that appears and create a new PID with ID=3 and name "shells of volume3". From ColorEdit select a red color for this PID. Double click on the highlighted new PID to select it. The selected Faces now have a PID=3. ALL Press ALL to bring all the locked entities back. Switch to PID display mode.
PID ..
To proceed with the remaining part remove from the display PID 3 by performing a NOT operation in PID mode.
Note that these were not all the Faces that form volume3. In a later step, it will be easier to add the remaining Faces to this PID.
Tutorial 3 - 31
LOCK selection.
De-activate the LOCK flag in the FOCUS Group to clear the old
LOCK
Press again the LOCK flag to lock the new current entities.
OR interest.
The aim now is to cut the Face (shown in gray color here) not by a simple straight line between the two Hot Points using the CUT function, but along a curved line, similar to that of the CONS of the opposite Face. (Note that you cannot achieve the desired result with the CONS>PROJECT function as the CONS does not have the exact length for the cut). To achieve this you will use the help of the 3D Curves. Activate the CURVEs visibility CURVEs flag. Activate the CURVEs>TRANSF. TRANSF. function and select with the left mouse button the CONS shown. De-select with the right mouse button if required.
Tutorial 3 - 32
Now pick with the left mouse button two positions corresponding to the start and end of the selected segment, according to the direction of the preview arrow.
2 1
A new 3D Curve is created by a transformation between initial and target start and end positions from the original segment.
You will now cut the Face using this new 3D Curve.
Activate the CONS>PROJECT NORMAL [NORMAL] function and select with the left mouse button the 3D Curve. PROJECT
Tutorial 3 - 33
Perform a NOT operation in ENT mode to remove the lower part of the Face from the view. NOT
Now you must separate the small bit at the front. This will be performed by simple ProjectCut operations.
Activate the FACEs>PRJ-CUT function and select the Hot Point (1) and then the CONS (2) on which the projection will take place. PRJ-CUT
1 2
Tutorial 3 - 34
Note that the new Hot Point remains selected. Press middle mouse button to be able to select a different Hot Point without exiting from the function.
Rotate to the other side, and select the other Hot Point (1) and then the opposite CONS (2).
1 2
Perform NOT operations in ENT mode to remove the small Faces that do not belong to volume4. NOT
Tutorial 3 - 35
To proceed with the remaining part remove from the display PID 4 by performing a NOT operation in PID mode.
ENT ..
LOCK selection.
De-activate the LOCK flag in the FOCUS Group to clear the old
LOCK
Press again the LOCK flag to lock the new current entities.
Performing the appropriate NOT operations in ENT mode, leave the four Faces shown that form volume5. NOT
Tutorial 3 - 36
ENT ..
LOCK selection.
De-activate the LOCK flag in the FOCUS Group to clear the old
LOCK
Press again the LOCK flag to lock the new current entities.
1 2
The remaining part must be split in two, half of it will be merged to PID3 and the other will form volume2 with PID=2.
Activate the FACEs>PRJ-CUT function and select the Hot Point (1) and then the CONS (2) on which the projection will take place. PRJ-CUT
Tutorial 3 - 37
Activate the FACEs>CUT function and cut the Face between the two selected Hot Points. CUT
Move to the opposite side, and cut between the two selected Hot Points.
CUT
Tutorial 3 - 38
Activate the CURVEs>TRANSF. function and select with the left mouse button the two CONS shown. TRANSF.
Tutorial 3 - 39
2
Now pick with the left mouse button two positions corresponding to the start and end of the selected segment, according to the direction of the preview arrow.
Two new 3D Curves are created by a transformation from the original segment.
Now you will cut the Faces using these two 3D Curves.
Activate the CONS> PROJECT [NORMAL] NORMAL function and select with the left mouse button the two 3D Curves. PROJECT
Select the two Faces on which the 3D Curves will be projected. Select the Faces from their common CONS. De-select with right mouse button if necessary.
Tutorial 3 - 40
CURVEs them.
Perform appropriate NOT operations in ENT mode to keep only the Faces that will be merged to PID3 as they also belong to volume3. NOT
Activate the FACEs>SET PID function and select with the left mouse button the Faces. Close selection with the middle mouse button. In this case double click on the existing PID3 in the Properties window to select it. SET PID
The selected Faces acquire PID=3. To view this, switch to PID and SHADOW display mode.
OR PID mode.
Tutorial 3 - 41
Activate the FACEs>SET PID function and select with the left mouse button the Faces. Close selection with the middle mouse button. Press NEW in the Properties window that appears and create a new PID with ID=2 and name "shells of volume2". From ColorEdit select an aqua color for this PID. SET PID Double click on the highlighted new PID to select it. The selected Faces now have a PID=2.
LOCK
Press ALL to bring all the Faces back and view the whole component with its sub-volumes. ALL The task is completed. Save the file from FILE>SAVE.
Tutorial 3 - 42
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.10. Create the interior Faces of the sub-volumes
To mesh each sub-volume you must create interior Faces in order to close them. Begin with volume1. OR Perform an OR operation in PID mode to isolate it.
2 1 4 3
Activate the SURFs>COONS function and select sequentially the four CONS that form the Face to be created in order to close the volume. De-select with right mouse button if necessary. (Ignore the COONS Options window that appears). COONS
Confirm selection with middle mouse button. A wire frame preview of the Surface to be generated is given and the Accept Surface window appears. Press OK to proceed with the creation of the Face.
The Face is created and the sub-volume is now closed. As this Face will be the common boundary of the two adjacent sub-volumes, it is helpful to put it in a different PID. You can use PID 100 which is unused for all the interior Faces that you will create.
Activate crosshatch visibility flag button so that you can select Faces from their crosshatch. CROSH
Tutorial 3 - 43
Press the INVERT function of the FOCUS Group. Visibility of entities in inverted. INVERT
OR
2 3
Activate the SURFs>COONS function and select sequentially the CONS that form the Face to be created in order to close the volume. Begin selection from a CONS that belongs to a corner of the Face to be created. Zoom closer so that you do not miss any small CONS. De-select with right mouse button if necessary. COONS Confirm with middle mouse button.
Tutorial 3 - 44
Note that ANSA created two Faces instead of one, so that the underlying Surfaces are of better quality.
Activate the FACEs>SET PID function and select with the left mouse button the new Faces from their crosshatch. Close selection with the middle mouse button. The Properties window opens. Double click on PID=100 to place the Face in this PID. SET PID
The Faces are now colored in gray, the color of PID 100.
Tutorial 3 - 45
OR
Activate the SURFs>COONS function and select sequentially the three CONS shown. COONS
A wire frame preview of the Surface to be generated is given and the Accept Surface window appears. Note that in this case, as you have not specified all the boundaries of the Face to be created you have two options. The first one shown here closes the Surface with a straight line. Press Alt. to preview the second option.
The second option closes the Surfaces with a curve that has the same curvature as that of the opposite boundary. Press OK to accept this Surface.
Tutorial 3 - 46
Activate the SURFs>COONS function and select sequentially the four CONS shown. COONS
2 1 4
A wire frame preview of the Surface to be generated is given and the Accept Surface window appears. Press OK to proceed with the creation of the Face.
Tutorial 3 - 47
The Faces are now colored in gray, the color of PID 100.
ALL
Perform NOT operations in PID mode so that you are left with volume5 and the Faces of PID=100. NOT
You should view the Faces shown. Perform NOT operations in ENT mode as shown to isolate the Faces of volume5. Keep also the interior Face of PID=100 that you created earlier, as it also belongs to this volume too. NOT
Tutorial 3 - 48
Activate the SURFs>COONS function and select sequentially the four CONS shown. COONS
2 4 1
3
Confirm with middle mouse button. Press OK to accept the previewed Surface
The Properties window opens. Double click on PID=100 to place the Face in this PID.
Press ALL to bring all the Faces back. Switch to ENT display mode, de-activate SHADOW and Crosshatch visibility flags. ALL
There should not be any red CONS visible which would indicate lack of connectivity of the Faces. Cyan CONS are visible at boundaries of the created interior Faces. Save the file from FILE>SAVE.
Tutorial 3 - 49
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.11. Generate the Quad Surface mesh
Switch to the MESH menu to begin the surface mesh. The task now is to produce a purely quad map mesh on all the Macro Areas. This will require that you shape the Macros in such a way that map mesh is possible. MESH > To achieve this you will join specific Perimeter Segments and cut new ones. You will switch to the TOPO menu occasionally, for some special cuts. Using appropriate OR and NOT operations in ENT and PID modes isolate the Macros of volume1. Include also the interior Macro that belongs to PID100 in order to have the complete closed sub-volume description. LOCK visible entities. You will focus initially on the region near the hole which is more complicated for a map mesh. First define the locations where you will cut the Macros to separate the region around the hole. Activate the LOCK flag from the FOCUS group to lock the current
Activate the HOT POINTs> PARAM. function, and select with the left mouse button the Perimeter Segment shown. Select it by picking near the left end so that it is recognized as start of segment. PARAM.
An arrow appears indicating the direction from start to end of the Segment. The Input window opens. Type in the ~ symbol and the value 11, in order to insert a Hot Point at an absolute distance of 11 mm along the selected Perimeter Segment.
Tutorial 3 - 50
Still in the function select with the right mouse button the other Segment, to re-apply the last command.
Now select with the left mouse button the Segment shown so that you insert a Hot point at a different distance than the previous.
An arrow appears to indicate the start to end direction, and the Input window opens. This time specify an absolute distance of 12 mm. (The distance here is larger to follow the conical shape of the hole).
Press enter to proceed. A Hot Point is inserted at a distance of 12 mm along the Segment.
Still in the function select with the right mouse button the other Segment, to re-apply the last command.
Tutorial 3 - 51
(Note that you could have inserted the Hot Points using the simple HOT POINTs>INSERT and PROJECT commands at appropriate locations. However to ensure that you accurately reproduce the example here, the Hot Points were inserted at the exact locations as specified with the help of the PARAM. function). Activate the MACROs>CUT [Cut] function and select with the left mouse button the Hot Cut Points shown, in order to cut the Macro Area in two. CUT
Still in the function select Hot Points in pairs to cut the other three Macros as shown.
Switch to TOPO menu to create zone cuts around the holes, so that you can mesh a row of quad elements around them. TOPO > Switch to SHADOW mode and activate the visibility of CROSSHATCHES to facilitate selections.
CROSH SHADOW
Tutorial 3 - 52
3 2
4 1
De-select with right mouse button if required and confirm with middle mouse button.
Next select with the left mouse button from its crosshatch, the Face on which the zonecut will be made. Confirm with middle mouse button. The Input window appears.
Type in the offset distance for the zonecut and press enter. The selected CONS have been offset and a cut has been made at the specified distance.
Turn to the other side of the hole and perform the same to make a similar zonecut at 3mm.
Tutorial 3 - 53
Next select the CONS (2) on which the projection will be made.
The new Hot Point remains selected so proceed with the selection of the next CONS (3) to continue the cut.
3
Press ESC to exit the function.
Turn to the other side of the hole and perform the same.
Tutorial 3 - 54
Activate the HOT POINTs> DELETE function and select with box selection the unused Hot Points. Select individually Hot Points that were not removed by box selection. DELETE
You should leave the part as shown. If some Hot Points were not deleted by the box selection, delete them by picking them with the left mouse button.
Switch to the TOPO menu to make a cut inside the hole (Note that in TOPO the cut operation is not view dependant, as it is in the MESH menu, and so in this case it is more appropriate to make a straight line cut). TOPO >
Activate the FACEs>CUT function and make a cut inside the hole between the two Hot Points shown. CUT
Tutorial 3 - 55
Activate the PERIMETERs> NUMBER function and select the Perimeter Segment shown. The Input window appears. Type the value 12 and press enter. NUMBER
12
Twelve Perimeter nodes were assigned to the Segment which is now colored in red. Still in the same function select with the right mouse button the other Segment to apply the same nodal number to it, too.
12
Still in the NUMBER function select with the left mouse button the Segment shown and assign 6 Perimeter nodes to it.
Tutorial 3 - 56
6 6
Activate the MACROs>CUT [Cut] function and perform the four cuts shown. Be careful to Cut select exactly the Perimeter Nodes that are shown to perform the cuts. CUT
2 1
Activate the MACROs>CUT [Prj-Cut] function (Project-Cut) and select the Perimeter Prj-Cut Node shown and then the Perimeter Segment. CUT
Tutorial 3 - 57
Press middle mouse button to be able to select a different Hot Point to make the same cut on the other side.
Select with the left mouse button the Perimeter Node shown.
Tutorial 3 - 58
Activate the MACROs>CUT [Cut] function and make the two cuts shown between the Cut selected Hot Points and Perimeter Nodes shown. CUT
Activate the PERIMETERs> NUMBER function and assign one node on these Segments. NUMBER
1
Still in the number function select the Segment shown with the left mouse button. As the Input window appears displaying the current nodal number of 4, select with the cursor (which now has a ? symbol) another Segment to copy its number to the window.
2 2
Use the right mouse button to assign the same number on the other three Segments.
Tutorial 3 - 59
Assign 6 nodes to the two remaining vertical Segments. The Macros are now ready to be meshed with the Map algorithm.
Activate the SHELL MESH> MAP [Select] function and select with left mouse button Select the Macro Areas to be meshed. De-select with right mouse button if necessary. MAP
(In the case where some Macros were not meshed, this is due to improper nodal number of some Perimeters, and as a result the map algorithm cannot be applied. Identify these Segments and assign them correct nodal number). Activate SHADOW display mode to view the mesh better. Note that in the legend only quad elements are reported. No triangles should be listed there, which would indicate improper nodal number and the generation of tria elements. SHADOW
Tutorial 3 - 60
38
19
Note that this Segment is not joined as it is an important feature line that must be retained even if it stretches the resulting map mesh that will be generated. To minimize this stretching you can place two Hot Points on the opposite side so as to spread it on the side Macros, too. Activate the HOT POINTs> PARAM. function and insert a Hot Point on the Segments at the locations shown. PARAM.
CUT Cut
Activate the MACROs>CUT [Cut] function and cut the Macros between the Hot Point locations.
Now you must assign proper nodal numbers to the Perimeter Segments to mesh them with the Map algorithm.
Tutorial 3 - 61
6 6 6 6
Activate the SHELL MESH> MAP [Visible] function to mesh all the visible unmeshed Macro Areas with the Map
All the Macros are meshed as reported in the Text window. The surface mesh of volume1 is complete. Save the file from FILE>SAVE. LOCK De-activate the LOCK flag.
ALL
You will proceed with the mesh of volume4 which has similar characteristics. Switch to TOPO menu and isolate the Faces that form volume4. Include also the interior Faces that belong to PID=100. TOPO > LOCK Activate the LOCK flag button.
Tutorial 3 - 62
De-select with right mouse button if required and confirm with middle mouse button.
Select with the left mouse button the Face shown from its crosshatch.
Type in an offset distance of 3mm and press enter. A zonecut is made at the specified distance.
Activate the MACROs>JOIN function and select the Perimeter Segment inside the hole so that they are removed. JOIN
Tutorial 3 - 63
Activate the HOT POINTs> DELETE function and delete the unused Hot Points. DELETE
OR
Assign 8 nodes using the PERIMETERs>NUMBER function to the Segment shown. NUMBER
Project the Perimeter Nodes shown to create Hot Points on the two circular Segments using the HOT POINTs>PROJECT function. PROJECT
DELETE
Tutorial 3 - 64
CUT
1
Cut
Cut the Macro at the six locations shown using the MACROs>CUT [Cut] function.
NUMBER
NUMBER
2 2
Activate the SHELL MESH> MAP [Visible] function to mesh all the visible unmeshed Macro Areas with the Map
Tutorial 3 - 65
SHADOW
Activate the MACROs>RELEASE function. A preview of all joined Perimeter Segment is given in light brown color. Select with the left mouse button the string of two Segments inside the top of the hole. RELEASE
DELETE
Project the two Hot Points from the meshed side of the hole to the unmeshed one. PROJECT
Tutorial 3 - 66
NUMBER
6 6
NUMBER
4 2 4 4
3 4 3 4
Activate the SHELL MESH> MAP [Visible] function to mesh all the visible unmeshed Macro Areas with the Map
All Macros are meshed except one as reported in the Text Window. This Macro was not shaped properly for Map quad mesh on purpose, so that it can be demonstrated later that it can be meshed automatically during Volume meshing.
Tutorial 3 - 67
Performing appropriate OR and NOT operations leave only the Faces of volume5 visible.
NUMBER
Activate the SHELL MESH> MAP [Visible] function to mesh all the visible unmeshed Macro Areas with
ALL
Tutorial 3 - 68
For display purposes, the GRAPHICS SHADOW UNMESH flag is here activated again in the Benchmark Settings window under the GRAPHICS function.
Zoom at the top as shown and join the Segments shown. Pay attention not to select other Segments by mistake. JOIN
Tutorial 3 - 69
DELETE
Note that this Hot Point cannot be deleted as there is a Perimeter Segment connected there. This would be visible if the SHADOW UNMESHED flag was inactive.
Perform a NOT operation in PID form to remove the Macros of volume3. View volume2 from the top as shown. Now you must perform some cuts that will result in near square Macro Areas suitable for map mesh.
Tutorial 3 - 70
CUT Cut
(Note the yellow numbers indicate the perimeter nodes, to help you identify from which perimeter node you should make the cut.)
NUMBER
CUT Prj-Cut
Activate the MACROs>CUT [Prj-Cut] function and perform the two cuts shown starting from the red Segment.
3 4
Tutorial 3 - 71
CUT Cut
NUMBER
5 5 5 5 5 5
NUMBER
2 2 2
Tutorial 3 - 72
NUMBER
6 6 6 6 6 6 6
NUMBER
3 5 5 5 4 4 4 3 3
View from bottom. Again SHADOW mode is activated here for clarity. You can continue with WIRE so that selections are easier.
Tutorial 3 - 73
NUMBER
2 5 8
8 5 5
Check that all Perimeters have aligned nodal numbers for mapped mesh.
Activate the SHELL MESH> MAP [Visible] function to mesh all the visible unmeshed Macro Areas with
Tutorial 3 - 74
Isolate the Macros of volume3. You will project this Hot Point to all the Perimeters below. Activate the HOT POINTs> MULT.PR function and select the Hot Point with the left mouse button. Confirm with middle mouse button. MULT.PR
Select with the left mouse button the Perimeter Segment and confirm with middle mouse button. A new Hot point is created at the projection location. Still in the function proceed with selecting the next Segment and confirming with middle mouse button.
12 12 12 12 12
Assign 12 nodes to these Segments so that they are aligned with the nodes of the already meshed Macro of PID 100. NUMBER
Tutorial 3 - 75
8 9 9 9 9
NUMBER
3 3 3 3 3 3
NUMBER
6 6 6 6 6
6 6
Check that all Perimeters have aligned nodal numbers for mapped mesh.
The Macros are ready for map mesh. Activate the SHELL MESH> MAP MAP [Visible] function to mesh all the visible Visible unmeshed Macro Areas with the Map algorithm. All Macros are meshed with quad elements.
Tutorial 3 - 76
The legend on the left should show 2502 quad elements. There should not be any trias. If there are some, or the number of quads is not 2502 then this means that the nodal assignment was not performed as it should on some Perimeters. This will lead to problems in the hexa volume meshing.
Press the UNMESHED [MACROS] button of the FOCUS group to check if there are any unmeshed Macro Areas. There should only be one unmeshed Macro, left like that intentionally as described in page 2-67. If it is not a problem of other unmeshed Macros, examine the part to identify the Perimeters with the wrong nodal number and correct them.
Tutorial 3 - 77
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.12. Generate the Hexa Volume Mesh
Isolate the meshed Macros of volume1. Ensure that you also include the Macro with PID=100 that closes the sub-volume. You will use the Volume Map algorithm to generate the hexa mesh. You will select in three steps the master, then the slave and finally the guiding sets of Macros.
To facilitate selection of sets stay in SHADOW mode. Activate the VOLUMEs>MAP MAP function. Activate the flag in the Feature Angle selection tool window that appears. Left click on an element of the Master Set. All the Macros within the specified feature angle limit are selected automatically. You can deselect with right mouse button if required. Confirm selection with middle mouse button. The message Master area OK appears in the Text Window. Proceed with the selection of the slave set.
Confirm selection of slave set with middle mouse button. The message Slave area OK appears in the Text Window.
Tutorial 3 - 78
Now perform a box selection as shown to select the guiding set of Macros. Note that the master and slave sets will not be included in the guiding set selection although inside your box selection.
The message compatible master/slave areas appears in the Text Window and the generated hexa elements are previewed. The Accept Elements window appears. Press OK to proceed with the hexa elements. (The Smooth option is not important here, as the geometries are simple, see section 10.3.2.2. of the Users Guide).
The Properties window appears to assign a PID to the generated hexas. As no solid PID exists in the database, press the NEW button to create a new one. A new Solid Property card appears. Type in the name "solids" in the top field.
Tutorial 3 - 79
The Part Manager opens so that you assign the new Volume entity and its hexa elements to a Part. Press NEW>PART to create a new EMPTY Part.
Specify the name "volume" in the Part Edit window that opens and press OK. Left click on the EMPTY part thumbnail to assign the created entities to this new Part. Activate SHADOW display mode SHADOW to view the mesh.
Ensure that VOLUME visibility flag is active so that you can see and select the volume mesh. VOLUME Notice that you can see both yellow and gray shells and facets on the same surfaces.
MACROs
Tutorial 3 - 80
master set
Activate the VOLUMEs>MAP function and select for master set the meshed Macros shown and for slave set the single unmeshed Macro Area.
slave set
Finally, select the guiding set. Upon confirmation of the guiding set the message Incompatible mesh, the slave will be replaced by an image of the master appears in the Text Window. The unmeshed slave macros is meshed automatically by an image of the master set mesh and the hexas are generated and previewed. Assign them to the same PID and Part as all the previous.
Tutorial 3 - 81
Press ALL to bring all Macros and Volumes back. There should be 2555 quad shells and 3669 hexas.
Tutorial 3 - 82
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.13. Examine and improve the quality of the Volume Mesh
You will examine the quality of the hexa elements with respect to IDEAS warp. Press the F11 key to activate the Presentation Parameters window. Activate the warping flag and keep the default threshold value of 10 degrees.
Press OK to close the window. Switch to HIDDEN display mode. SHADOW 93 hexas are reported as warped in the legend and are colored in light blue. Press the EXTREME button to EXTREME isolate the violating elements. These elements will be corrected by the Improve Quality function. This function automatically moves the nodes of the violating elements so as to improve their quality. In this example you will use this function only for the hexa elements and not for the surface mesh. Press ALL to bring everything ALL back. Activate the MACROs> FREEZE FREEZE.function and select all the Macro Areas with box selection. Confirm with middle mouse button. The Macro Areas are now colored in blue (in ENT mode) indicating that they are frozen and that no action can be performed on them. So the Improve Quality function will not move any nodes of the surface mesh. Activate the REDUCE ELEMENTs>REDUCE Improve Quality [Improve Quality] function. The Improve Quality window opens. Activate the Warping flag and press OK.
Press OK two or three times more until all hexas (apart from the four connected to the surface) are improved. The task is completed. Save the database from FILE>SAVE.
Tutorial 3 - 83
SOLID MESHING FOR STRESS ANALYSIS Tetra & Hexa mesh 3.14. Conclusion
In this tutorial you have followed all the basic steps to create a tetra and a hexa mesh for the same component as shown below. Note that no extra effort was taken to produce a high quality tetra mesh, for example with refined mesh at curvatures, but only the process was demonstrated. On the other hand the Hexa meshing requires careful planning and special preparation of the geometry.
Tutorial 3 - 84