CH08a - Finite Element Programming
CH08a - Finite Element Programming
a:
A Few Tips
on
Finite Element Programming
Jayadeep U. B.
M.E.D., NIT Calicut1
Department of Mechanical Engineering, National Institute of Technology Calicut
Lecture - 01 2
Department of Mechanical Engineering, National Institute of Technology Calicut
Element numbers
2 2 3 7 6
5 6 7 8 3 3 4 8 7 Node -
Numbers
1 2 3 4 5 6 10 9
5 6 7 11 10
1 2 3 4
6 7 8 12 11
The node numbering order in an element is significant.
The node numbering scheme decides the bandwidth of the
stiffness matrix. The above node numbering scheme may not
be the one to give the smallest bandwidth.
Lecture - 01 3
Department of Mechanical Engineering, National Institute of Technology Calicut
Node numbers
4 5 6 2 5 0
3 10 0 Nodal -
5 6 7 8 Coordinates
4 15 0
1 2 3 5 0 6
x
1 2 3 4 ⋯ ⋯ ⋯
In both these matrices, the element or node number, given as
first column in above cases, could be the row index of the
matrix (or the 2D array).
Lecture - 01 4
Department of Mechanical Engineering, National Institute of Technology Calicut
Assembly Procedure
All the elemental matrices need not be formed before
assembly, rather the individual element matrix could be added
to the global matrix directly after it is formed. Hence, the
space required for elemental system could just be that
required for one system.
In some cases, even an elemental matrix need not be created
completely – individual values could be added to global
system directly.
If there are identical elements, measures could be taken to
avoid the duplication of elemental calculations.
If the d.o.f. per node is known, the element connectivity
matrix can be used for assembling the global system, by
calculating the position, where each value from element
system need to be assembled.
Lecture - 01 6
Department of Mechanical Engineering, National Institute of Technology Calicut
2
i=2 j=3
Lecture - 01 7
Department of Mechanical Engineering, National Institute of Technology Calicut
=
⋮ ⋮ ⋱ ⋯ ⋮ ⋮
2 2 2
k81 k82 ⋯ k88 φ8 f82
2
Lecture - 01 9
Department of Mechanical Engineering, National Institute of Technology Calicut
Lecture - 01 10
Department of Mechanical Engineering, National Institute of Technology Calicut
Solvers
A finite element solver performs the simple task of solving
the matrix equation (one or more times) or finding the Eigen
values and Eigen vectors.
What makes it such an important task is the size of matrices
commonly encountered in FEA – solving for 1 million
unknowns is not at all rare in today’s world of FEM!!!
Therefore, it becomes extremely important to use the special
features like symmetry, bandedness etc., during solution
(refer to Special Features of Finite Element Stiffness Matrices
in Additional Resources folder).
In other words, any method, which can reduce the number of
computations or computational resource requirements,
becomes the preferred method for solution.
Nowadays, iterative methods like Conjugate Gradient
Methods are considered to be the best for solving huge
matrices.
Lecture - 01 11