Lecture Unit Intro Meshing Pptmesonen23
Lecture Unit Intro Meshing Pptmesonen23
Intended Target 1st or 2nd year engineering students learning about simulation
Further reading/information
Ansys Academic Ansys OnScale Blogs
Ansys OnScale Simulation Tutorials Ansys Innovation Courses
Ansys OnScale Webinars Ansys Education Resources
Simulation is the process of virtually emulating a physical process that occurs in real life. It is used to
verify the efficacy of a design or product.
What is Simulation? -
ANSYS Innovation Cour
Evaluation of outputs (e.g. displacement, stresses and strains) ses
• Each geometry is divided into small elements which can have different shapes ranging from 2D (triangular,
quadrilateral, etc.) to 3D (tetrahedral, hexahedral, etc.) elements through a process called discretization or
meshing.
• A set of algebraic equations are then solved for each of these elements in order to calculate reaction force,
stress, strain, etc.
• This is an iterative method where the accuracy of the results depends on the mesh quality, type of solution
algorithm, etc.
Body and
surface Displacements
forces
*
Stresses Strains
∆
Δ =u j − ui [ 𝑘 − 𝑘 ¿ 𝑢𝑖
−𝑘 𝑘 ¿ 𝑢 𝑗 ]{ } { }
=
¿𝑓𝑖
¿𝑓 𝑗
[ k ]\{ u \}= [ 𝐅 ]
k = element stiffness matrix
• Considering the equilibrium condition regarding the
u = element nodal displacement vector
forces of the spring at the nodes: f = element nodal force vector
Node i: Node j:
Note: This discretized version of the solution is an approximate
𝑓 𝑖 =− 𝐹 =− 𝑘 ( 𝑢 𝑗 −𝑓𝑢𝑖𝑗) = 𝐹 = 𝑘 ( 𝑢 𝑗 − 𝑢one
𝑖 ) and is dependent on the size of the or in other words the
¿ 𝑘 𝑢𝑖 − 𝑘 𝑢 𝑗 ¿ − 𝑘 𝑢𝑖 + 𝑘 𝑢 𝑗 mesh.
]{ }{ }
to have n>105
¿ 𝑢1 ¿ 𝑓 1• Elements of depend on material
[
properties and the chosen mesh element
𝑘 11 𝑘 11 .. . 𝑘1 𝑛 ¿ 𝑢2 ¿𝑓 2 type.
. 𝑘 22 .. . . . = . • Some elements of the force and
displacement vectors are already known
. . .. . . . . through boundary conditions (e.g. Fixed
𝑘𝑛 1 . .. . 𝑘 𝑛𝑛 . . Support -> ui=0).
𝑢𝑛 𝑓𝑛
Results
Numerical solution**
• Engineers carry out convergence studies to find a good balance
between accuracy and run time in order to solve the problem.
• A typical solution that is used is to create a finer mesh in areas of
interest (e.g. around stress concentration areas) or finer Number of elements
geometry in the model and coarser meshes in other areas.
1D:
Important to note:
• It is key to choose
elements that would
solve the numerical
3D: equations accurately.
Finer meshes require higher Computational Areas of Areas of interest like high stress regions
computational time. effort Interest should have a finer mesh compared to less
relevant areas.
Factors to be
considered
Determining
Accuracy of importance
Generally, finer the mesh, the more solution of small Not all dimensions in the model are relevant.
accurate the solution. dimensions E.g., small holes or filets can sometimes be
omitted from the mesh in areas undergoing
very negligible stress
Element
quality
State variable
(e.g. Temperature
or Displacement) 1 mesh
Element
Continuous
Variation 4 mesh
(Reality) Elements
Discretised
Variation
(Approximated)
14 mesh
Elements
1D variation
Important to note: The sharper and more complex the gradient of the real solution,
the more refinement is needed to capture it.
Simulate the I-beam of length 1m made of structural steel and define fixed boundary conditions on
either end and a force of 10 kN applied on the top surface.
10kN
1m
Click create
project
Select I-
Click Import Beam and
CAD click Import
Enter
Project
name and
description
and click
Create
Click the
mechanical button
Click Part 1 and select
restraint from the
drop down
Select
Structural Select the front
Steel from and back cross
the drop section of the
down beam and click
done
Click the
mechanical button
and select force
Activate the
from the drop
simulator tab
down
and then
click on
global mesh
Note: The
mesh setting
can be
observed
here.
Select the top
surface of the
beam and Activate the
type in 10000 advanced
as the value mesh setting
of force
Click the Launcher button
1m
𝐹 𝐿
3
𝛿𝑚𝑎𝑥, 𝑠𝑖𝑚 =82.48 𝜇 𝑚=0.082 𝑚𝑚
𝛿 𝑚𝑎𝑥 =
192 𝐸𝐼
3
10000 N ∗(1000 mm)
¿ =0.078 𝑚𝑚
𝑁 4
192∗ 200000 2
∗ 3320000 𝑚𝑚
𝑚𝑚
𝐸𝑟𝑟𝑜𝑟 =5 %
Simulate the connecting rod made of aluminum undergoing a compressive pressure load
of 20 MPa as shown in the diagram.
• Visualize the von-Mises stress
• Is the design a safe one?
• Does refining the mesh have an influence
in the area marked in blue
This exercise is an example of a more advanced problem, and the model cannot be solved with analytical equations.
Thus, simulation is quick and cost-effective method of analyzing the problem.
Steps 4-5: Assign boundary conditions. Steps 6-8: Mesh and run the model.
The max stress is at a stress concentration area caused due to the sharp corner. Since the yield strength of Aluminum
is in the order of 70MPa, this design under this loading condition is not safe as the safety factor is less than 1 (i.e. the
material will yield).
𝜎𝑦
𝑆𝑎𝑓𝑒𝑡𝑦 𝐹𝑎𝑐𝑡𝑜𝑟 = = 0.58
𝜎 𝑚𝑎𝑥 Can you think of ways to make the design safer?
90MPa 99MPa
On refining the mesh, the stress increases in the highlighted area. This is likely to be a more accurate result,
since a finer mesh can better represent the real angles and curvature of the component. However, this
comes at the cost of increased computational time.
• Using simulation, complex products can be designed and analyzed quickly and efficiently by reducing the need
for experiments.
• Meshing plays a key role in ensuring the accuracy of the results obtained from the FEM model.
• As a general rule, the finer the mesh, the more accurate the solution.
• A finer mesh requires increased computational effort compared to that of a coarser mesh.
• It is important to find a good balance between accuracy and run time in order to solve the problem.
• OnScale has an automatic meshing feature that optimizes mesh cell quality, mesh adjustments around
boundary conditions and mesh refinement at edges and curvatures. The user can then coarsen and refine this
mesh based on their needs.
Document Information
This lecture unit is part of a set of teaching resources to help introduce students to structures, fluids, or heat transfer (physics areas supported by
Ansys OnScale).
Feedback
If you notice any errors in this resource or need to get in contact with the authors, please email us at [email protected]
Acknowledgements
Susannah Cooke, Nick Stefani