Académique Documents
Professionnel Documents
Culture Documents
_(x
2S
) _
x
S
S
+ y] _
x
S
+
S
+ y]
FEM solutions predict a value of 0.0213 for a mesh density of 99 elements. The plots have been shown
in figure 9 through 11.
Fig.9 Phi Fig.10
xz
Fig.11
yz
SQUARE:
The torsional rigidity factor for the square rod was calculated using the series for K. The value
of the series did not show much variation when the number of terms were increased, it remained the same
until the fourth decimal. Comparison of rigidity multipliers for three different mesh densities have been
shown in table-2. Plots of Prandtl stress functions and shear stresses for the square section have been
shown from figure 12 through figure 14.
Number of Elements
No. of K
terms
K-Analytical
K-FEM Difference
6 Elements
3
0.14059 0.1348 0.0058
8 Elements
4
0.14058 0.1373 0.0033
10 Elements
5
0.14057 0.1385 0.0021
Table-1
Fig.12 Phi Fig.13
xz
Fig.14
yz
Fig.15 Convergence of FEM Solution to Analytical Solution
DESCRIPTION OF THE CODE:
The code takes input of the nodal positions and connectivity from the
ABAQUS file through readinp and readinp2 functions respectively. The elemental and system degree of
freedom are computed and local and global stiffness and force matrices are initiated. The nodes where
essential boundary conditions are applied are manually fed in bound_dof matrix and their respective
values are set to zero through the bound_val matrix. Stiffness and Force matrices are computed in a
series of for loops, where the first for loop stands for the total number of elements, the second for total
number of nodes in an element, the next two are for gauss integration. Aforementioned computation is in
accordance with the matrix system of equations derived earlier through the weak form.
The constraints function sets the Phi as zero on the boundary nodes and particular stiffness term
related to that node is set as one. Phi, the Prandtl stress function obtained as a solution from solving
global system of equations Phi = Kg\F. It is then used in the postprocessing part of the code and element
stresses and torque are calculated. The torsional rigidity multiplier kr is in turn computed from the total
torque.
A similar procedure is carried out with a series of loops effecting summation of terms per element
and global assembly which is controlled by the index file. The stresses are computed at the quadrature
points since they are discontinuous at the nodes and signs are set in accordance with the relation between
shear stresses and Prandtl function. A global stress matrix,stress_gausspoint is then assembled for their
corresponding global quadrature points. A uniform grid txi and txy are then formed and meshed. The
stresses are then plotted to uniform mesh to give an approximate estimation of the nodal stress values
through griddata command.
Salient features of the program is that it could be converted to a two degree of freedom system a few
modifications since the shape functions and their derivatives are arranged in a matrix through indices.
The program is also enabled to compute the time it takes to compute the solutions and write the output
plots to a .pdf file. To solve a elliptic cross section with 412 twelve elements, the program takes 15
seconds on an average.
REFERENCES:
The Finite Element Method using MATLAB, Young W. Kwon and Hyochoong Bang