Appendix
MINIM) Méee_inter_active MILLA
Purpose To calculate elongation of tapered bar using mesh free method
and exact solution and getting the comparative plots
§ TYPE " Mfee inter active " and follow the interaction
% Programm written by JEBTENDER SINGH KUSHAWAHA AS PART OF THESIS WORK
@ entitled "Meshfree analysis of elastic bar"
3 UNDER SUPER VISION OF SHREE JITENDRA BHASKAR, ASSISTANT PROFESSOR,
% MECHANICAL ENGINEERING DEPARTMENT, HARCOURT BUTLER INSTTUTE OF
TECHNOLOGY, KANPUR
% SET UP NODAL COORDINATES ALONG BAR, DETERMINE NUMBER OF CELLS
3 Length=1
L=input ("Please enter Length of Bar Default type "1" \n') % Legth of
bar
nnodes-input ("Please enter Number of nodes Default type " from 11 To
201"\n') Sinput(‘enter the number of nodes \n') ? number of elements
CHANGE TO INCREASE
nesnnedes-1; % number of elements
Le= L/{nnodes-1); $Length of an element.
L, nnodes};4 x = [0.
nn his
neelis = nnodes-17
+01:1.0];% Gives 101 Nodes
3 SBT PARAMETERS FOR WEIGHT FUNCTION, MATERIAL PROPERTIES
das = input ("Please enter ratio of domain of influence TO
characteristic Length Default type "2 TO 2.5"\n');
Evinput |'enter the value of youngs modulus default =1 \n') % yougs
modulus
density-0; Vinput ("enter the value of density \n')
‘enter the value of Point load default =1\n")? point load
P-inpu
AC=input ("Please enter Area at fixed end of Bar Default type "1" \n")
2QtL)))7 % area at node
area_at_each_nede=area;
2 DETERMINE DMI FOR BACH NODE
dim = dmax* (x(2)-x(1) ) tones (i,m
SET UP GAUSS POINTS, WEIGHTS, AND JACOBIAN FOR BACH CELL
zeros |1,ncells);
(2) 211072,§ INITIALIZE MATRICES
zeros (nnodes! +
zeros (nnodes, 1};
zeros |nnodes, 1);
% LOOP OVER GAUSS POINTS
for 3 = iilengthigg)
ng 9gt4
3 DETERMINE DISTANCE BETWEEN NODES AND GAUSS POINT
dif = zgones(1,nnodes|—2+
SET UP WEIGHTS W AND DW FOR EACH NODE
clears w dw
for i=l:nnedes
re aE (L))}¥emtate
af (r=1.0)
f) = (Leereteterete
(i) = a2, + 2ate
a2tetete) tabs (ais (i) )/ 1
else
wid) = 0.0
dwta) =
end
end
SET UP SHAPE FUNCTIONS AND DERIVATIVES
won = ones (1, anodes};
(wonts]:
et lures
dphi = [0 1] *Ainv*B-pg* (da*B-Ainvedb};
ASSEMBLE DISCRETE EQUATIONS
if po 1
G(1:5,1) = —phai
end
if {
}a(} Mfee interactive
Please enter Length of Bar Default type "1"
1
L
1
Please enter Number of nodes Default type " from 11 To 201"
21
nnodes,Please enter ratio of domain of influence TO characteristic Length Default type
2s
21
enter the value of youngs modulus default =1
20009
000e°011
enter the value of Point load default =1
Please enter Area at fixed end of Bar Default type "1"
I
AO=
1
Now the program is running and the plot shall be plotted in separate window
The plotted figure is on the last page.
The hand calculetions for the different configurations are as stated below
(1) Solution of the problem as single element
Referring to equation 5.3
4p
mix) =
4# 1000" #1
= 3000 =]
666666" 10"
(2) Solution of the problem as two elements
Referring to equation 5.6, 5.7 and 58
"27108*1003"I/ 11)
200e9*1 | 14°10
WL) = 6.857142 *107
ML )=
(3) Exact solution of the problem
Referring to equation 5.13
20091
WL) = 6.9313 *107
Contact e-mail: k,tendrasingh@yahoo.comDisplacement m
eid Tapered elastic bar subjected to Point load
—— Meshfree solution
6tLss* Exact soution
domain