Module 4
Module 4
SHASHIKUMAR S
Assistant Professor
Dept. of Aerospace Engineering
Faculty of Engineering & Technology
Jain (Deemed-to-be) University
Computer aided engineering analysis
Computer-aided engineering (CAE) is the use of computer software to simulate performance in order to improve product designs
or assist in the resolution of engineering problems for a wide range of industries. This includes simulation, validation and
optimization of products, processes, and manufacturing tools.
In the preprocessing phase, engineers model the geometry (or a system representation) and the physical properties of the
design, as well as the environment in the form of applied loads or constraints.
Next, the model is solved using an appropriate mathematical formulation of the underlying physics.
In the post-processing phase, the results are presented to the engineer for review
Applications of CAE
CAE applications support a wide range of engineering disciplines or phenomena.
Stress and dynamics analysis on components and assemblies using finite element analysis (FEA).
1D CAE, or mechatronic system simulation, for multi-domain mechatronics system design and control systems analysis
Benefits of CAE
The benefits of CAE include reduced product development cost and time, with improved product quality and durability
• Designs can be evaluated and refined using computer simulations rather than physical prototype testing, saving money and
time.
• CAE can provide performance insights earlier in the development process, when design changes are less expensive to make.
• CAE helps engineering teams manage risk and understand the performance implications of their designs.
• Integrated CAE data and process management extends the ability to effectively leverage performance insights and improve
designs to a broader community.
Beam bending problems
Beams are slender members that are used for supporting transverse loading.
Beams with cross sections that are symmetric with respect to plane of loading are considered here.
𝑀 1
𝜎= y
𝐼
𝜎
∈= 2
𝐸
𝑑2𝑣 𝑀
= 3
𝑑𝑥 2 𝐸𝐼
Figure c
where 𝜎 is the normal stress, 𝜖 is the normal strain, M is the bending moment at the section, v is the deflection of the centroidal
axis at x and 𝐼 is the moment of inertia of the section about the neutral axis (z-axis passing through the centroid).
Potential-Energy Approach
1 4
𝑑𝑢 = න 𝜎𝜖𝑑𝐴𝑑𝑥
2
1 𝑀2
= 2 𝑦 2 𝑑𝐴 𝑑𝑥 5
2 𝐸𝐼
1 𝑀2
𝑑𝑢 = 𝑑𝑥
2 𝐸𝐼 6
When equation 3 is used, the total strain energy in the beam is given by
2
1 𝐿 𝑑2𝑣
U = න 𝐸𝐼 𝑑𝑥
2 0 𝑑𝑥 2 7
The potential energy of the beam is then given by
Where p is the distributed load per unit length, 𝑃𝑚 is the point load at point m, 𝑀𝑘 is the moment of the couple applied at point
k, 𝑣𝑚 is the deflection at point m, and 𝑣𝑘′ is the slope at point k.
FINITE ELEMENT FORMULATION
The beam is divided into elements, as shown in figure below. Each node has two degrees of freedom. Typically, the degrees of
freedom of node i are 𝑄2𝑖−1 and 𝑄2𝑖 , The degree of freedom 𝑄2𝑖−1 is transverse displacement and 𝑄2𝑖 is slope or rotation.
𝑇 9
𝑄 = 𝑄1 , 𝑄2 , 𝑄3 … … … . 𝑄10
The vector represents the global displacement vector.
The shape functions for interpolating 𝑣 on an element are defined in terms of ξ on -1 to +1,
The shape functions for beam elements differ from those discussed earlier. Since nodal values and nodal slopes are involved, we
define Hermite shape functions, which satisfy nodal value and slope continuity requirements. Each of the shape functions is of
cubic order represented by,
𝐻𝑖 = 𝑎𝑖 + 𝑏𝑖 + 𝑐𝑖 ξ2 + 𝑑𝑖 ξ3 , 𝑖 = 1,2,3,4 11
ξ=1 0 0 0 0 1 0 0 1
The coefficients 𝑎𝑖 , 𝑏𝑖 , 𝑐𝑖 𝑎𝑛𝑑 𝑑𝑖 can be easily obtained by imposing these conditions. Thus,
1 2 1
𝐻1 = 1−ξ 2+ξ or 2 − 3ξ + ξ3 12
4 4
1 2 1 13
𝐻2 = 1−ξ ξ+1 or 1−ξ− ξ2 + ξ3
4 4
1 2 1
𝐻3 = 1+ξ 2−ξ or 2 + 3ξ − ξ3 14
4 4
1 2 1
𝐻4 = 1+ξ ξ−1 or −1 − ξ + ξ2 + ξ3 15
4 4
16
𝑑𝑣 𝑑𝑣 𝑑𝑥
The chain rule = gives us
𝑑ξ 𝑑𝑥 𝑑ξ
𝑑𝑣 𝑙𝑒 𝑑𝑣
= 19
𝑑ξ 2 𝑑𝑥
Noting that dv/dx evaluated at nodes 1 and 2 is 𝑞2 𝑎𝑛𝑑 𝑞4 respectively, we have
𝑙𝑒 𝑙𝑒
𝑣(ξ) = 𝐻1 𝑞1 + 𝐻 𝑞 + 𝐻3 𝑞3 + 𝐻 𝑞 20
2 2 2 2 4 4
𝑙𝑒 𝑙𝑒 22
where 𝐻 = 𝐻1 , 𝐻2 , 𝐻3 , 𝐻4
2 2
In the total potential energy of the system, we consider the integrals as summations over the integrals over the elements. The
element strain energy is given by
2
1 𝑑2𝑣
𝑈𝑒 = 𝐸𝐼 න 𝑑𝑥 23
2 𝑑𝑥 2
From equation 19,
24
𝑑𝑣 2 𝑑𝑣 𝑑2𝑣 4 𝑑2𝑣
= 𝑎𝑛𝑑 =
𝑑𝑥 𝑙𝑒 𝑑ξ 𝑑𝑥 2 𝑙𝑒2 𝑑ξ2
2 𝑇
𝑑2𝑣 16 𝑑 2𝐻 𝑑2𝐻 25
= 𝑞𝑇 2 𝑞
𝑑𝑥 2 𝑙𝑒 𝑑ξ2 𝑑ξ2
𝑑2𝐻 3 −1 + 3ξ 𝑙𝑒 3 1 + 3ξ 𝑙𝑒 26
= ξ, ,− ξ ,
𝑑ξ2 2 2 2 2 2 2
𝑙𝑒
On substituting 𝑑𝑥 = 𝑑ξ and Eqs. 25 and 26 in Eq. 24, we get
2
9 2 3 9 3
ξ ξ −1 + 3ξ 𝑙𝑒 − ξ2 1 + 3ξ 𝑙𝑒
4 8 4 8
−1 + 3ξ
2 3 −1 + 9ξ2 2
− ξ −1 + 3ξ 𝑙𝑒 𝑙𝑒 27
1 𝑇 8𝐸𝐼 +1 𝑙𝑒 8 16
𝑈𝑒 = 𝑞 3 න 4 𝑑ξ 𝑞
2 𝑙𝑒 −1 9 2 3
ξ − ξ −1 + 3ξ 𝑙𝑒
4 8
2
Symmetric 1 + 3ξ 2
𝑙𝑒
4
Each term in the matrix needs to be integrated. Note that
28
30
Load vector
The load contributions from the distributed load p in the element is first considered. We assume that the distributed load is uniform
over the element:
𝑝𝑙𝑒 1 31
න 𝑝𝑣𝑑𝑥 = න 𝐻𝑑ξ 𝑞
𝑙𝑒
2 −1
𝑇
න 𝑝𝑣𝑑𝑥 = 𝑓 𝑒 𝑞 32
𝑙𝑒
where
33
The point loads 𝑃𝑚 and 𝑀𝑘 are readily taken care of by introducing the nodes at the point of application.
1 𝑇
𝜋= 𝑄 𝐾𝑄 − 𝑄𝐹 34
2
BOUNDARY CONSIDERATIONS
𝐾𝑄 = 𝐹 35
We have,
36
𝐸𝐼
𝑀= 6ξ𝑞1 + 3ξ − 1 𝑙𝑒 𝑞2 − 6ξ𝑞3 + 3ξ + 1 𝑙𝑒 𝑞4 37
𝑙𝑒2
6𝐸𝐼
𝑉 = 2 2𝑞1 + 𝑙𝑒 𝑞2 − 2𝑞3 + 𝑙𝑒 𝑞4 38
𝑙𝑒
These bending moment and shear force values are for the loading as modeled using equivalent point loads. Denoting element
end equilibrium loads as R1 , R2 , R,. and R4, we note that
39
It is easily seen that the first term on the right is 𝑘 𝑒 𝑞. Also note that the second term needs to be added only on elements with
distributed load.
Finite Element Analysis Convergence and Mesh Independence
Each point, or node, adds degrees of freedom (DOF) to the system. So the more DOFs in the model the better it will capture the
structural behavior.
Each DOF adds complexity and increases solve time. The engineer needs to balance the complexity of the model with solve time:
Too many DOFs and the model could take days to run.
Convergence: Mesh convergence determines how many elements are required in a model to ensure that the results of an
analysis are not affected by changing the size of the mesh.
System response (stress, deformation) will converge to a repeatable solution with decreasing element size.
Mesh Independence: Following convergence, additional mesh refinement does not affect results. At this point the model and its
results are independent of the mesh.
A mesh convergence study verifies that the FEA model has converged to a solution. It also provides a justification for Mesh
Independence and additional refinement is unnecessary.
Analysis:
Convergence studies varies the sizing and configuration of the FEA mesh.
Our example is a rectangular beam so we can vary mesh parameters in three directions. We can vary by element size or number
of divisions. For our example we will use “number of divisions” with equal spacing. Our mesh will vary the number of elements
along:
Beam Width
Beam Depth
Beam Span
Process:
Using an iterative method, we increase the number of elements along each side and solve.
For us, complexity is the number of elements and subsequent degree of freedom.
Varying the number of elements along each edge, we can develop a table of mesh size vs deflection and solve time:
We can then plot maximum vertical deflection vs. the number of elements in the model. At a point, the response of the system
converges to a solution. Refinement of the mesh (the addition of more elements) has little to no effect on the solution.
The results of an FEA model must be independent of mesh size. A convergence study ensures the FEA model captures the
systems behavior, while reducing solve time.
How to measure convergence?
How can convergence be measured? What is a quantitative measure for convergence? The first way would be to compare with
analytical solutions or experimental results.
As shown in the equations above, several errors can be defined for displacement, strains and stresses. These errors could be used
for comparison and they would need to reduce with mesh refinement.
However, in a FEA mesh, the quantities are calculated at various points. So in this case, what needs to be determined is where
and at how many points should the error be calculated.
Finite Element Analysis (FEA) is a powerful tool for evaluating complex structural problems. Like all analytical software, bad
results stem from bad input.
Sometimes, with perfect inputs, you can still get the wrong answer using FEA. There are a lot of ways that your finite element
analysis can take a wrong turn. Some of the most common issues include:
•Bad Mesh
•Poorly Applied Boundary Conditions
•Bad Contacts and Connection
The answer is validation and verification (V&V). V&V is a process used to make sure that the FEA model behaves according to the
laws of physics.
One-dimensional h/p code.
When modeling a problem using a finite element program, it is very important to check whether the solution has converged.
The word convergence is used because the output from the finite element program is converging on a single correct solution.
In order to check the convergence, more than one solution to the same problem are required. If the solution is dramatically
different from the original solution, then solution of the problem is not converged.
However, if the solution does not change much (less than a few percent difference) then solution of the problem is considered
converged.
Currently, two types method are used to demonstrate the numerical convergence of the solution :
1) h – method
2) p – method
The h- and p- versions of the finite element method are different ways of adding degrees of freedom (dof) to the model
h-method –> The h-method improves results by using a finer mesh of the same type of element. This method refers to
decreasing the characteristic length (h) of elements, dividing each existing element into two or more elements without changing
the type of elements used.
p-method –> The p-method improves results by using the same mesh but increasing the displacement field accuracy in each
element. This method refers to increasing the degree of the highest complete polynomial (p) within an element without
changing the number of elements used.
The difference between the two methods lies in how these elements are treated. The h-method uses many simple elements,
whereas the p-method uses few complex elements.
H-Method
More accurate information is obtained by increasing the number of elements. The name for the h-method is borrowed from
mathematics. The variable h is used to specify the step size in numeric integration. If a part is modeled with a very course mesh,
then the stress distribution across the part will be very inaccurate.
In order to increase the accuracy of the solution, more elements must be added. This means creating a finer mesh. As an initial
run, a course mesh is used to model the problem. A solution is obtained. To check this solution, a finer mesh is created.
The mesh must always be changed if a more accurate solution is desired. The problem is run again to obtain a second solution. If
there is a large difference between the two solutions, then the mesh must be made even finer and then solve the solution again.
This process is repeated until the solution is not changing much from run to run.
P-Method
The p in p-method stands for polynomial. Large elements and complex shape functions are used in p-method problems. In order
to increase the accuracy of the solution, the complexity of the shape function must be increased.
Increasing the polynomial order increases the complexity of the shape function. The mesh does not need to be changed when
using the p-method.
As an initial run, the solution might be solved using a first order polynomial shape function. A solution is obtained. To check the
solution the problem will be solved again using a more complicated shape function.
For the second run, the solution may be solved using a third order polynomial shape function. A second solution is obtained. The
output from the two runs is compared.
If there is a large difference between the two solutions, then the solution should be run using a third order polynomial shape
function. This process is repeated until the solution is not changing much from run to run.
Development of finite element code
MAIN VARIABLES
Figure: a Figure: b
Input File