Escolar Documentos
Profissional Documentos
Cultura Documentos
S=[sx,txy,tzx;txy,sy,tyz;txy,tyz,sz]
% invariants calculation
i1=d(1,1)+d(2,2)+d(3,3) % Invariant 1
i2=d(1,1)*d(2,2)+d(2,2)*d(3,3)+d(3,3)*d(1,1) % Invarient 2
I3=d(1,1)*d(2,2)*d(3,3) % Invariant 3
Ex=(sx-v1*(sy+sz))/E
Ey=(sy-v1*(sx+sz))/E
Ez=(sz-v1*(sx+sy))/E
Rxy=txy/G
Ryz=tyz/G
Rzx=tzx/G
% Matrix Assignement
r22 r12
r2
r22 r12
A
B
r2
Boundary Conditions
r 2r 2 ( p p ) 1 r 2 p r 2 p
1 2 2 2 2 1 2 1 12 22 2 A B
r2 r1
r
r2 r1
r (r1 ) p1 , r (r2 ) p2
r2
r p
p
1
P1=-8N/mm2
R1=200mm
R2=300mm
P2=0
/
p
r
/p
Dimensionless
Distance, r/r2
clear
clc
pa=8;
a=200;
b=300;
r=[a:(b-a)/10:b];
n=1;
while(n<=11)
sr(n)=(pa*a^2/(b*b-a*a))*(1-b*b/((r(n))^2));
st(n)=(pa*a^2/(b*b-a*a))*(1+b*b/((r(n))^2));
n=n+1;
end
% plot(r,sr)
xlabel('Distance - mm')
r/r
2
plot(r,sr,'--r',r,st,'-g')
Experiment 2
Stress Analysis in a Curved Beam
/prep7
Et,1,42,,,3
R,1,5
Mp,ex,1,2e5
Mp,nuxy,1,0.3
Cyl4,,,45,-90,55,90
Smrt,1
Amesh,all
nsel,s,loc,x,0
D,all,ux
D,node(0,-55,0),uy
F,node(0,55,0),fy,-250
Allsell,all
/solu
Solv
/post1
Plnsol,s,eqv,0,1
Theoretical Calculations
R1=45mm
R2=50+5=55mm
Rc=50,
Radius of neutral axis Rn=(sqrt*(45)2+sqrt(55)2)/4
E=Rc-Rn=0.13mm
Ci=Rn-R1=4.87
Co=R2-Rn=5.13
Area of the cross section: 10*5=500m2.
Direct stress at any cross section with reference to d=Fcos/2A
At 90 degrees d=0. So only bending stress
Mba=0.318*F*Rc= 7950N-mm
Total stress =Direct stressw +bending stress= 0+ Mba Ci/(AeR1)
bi=132Mpa
At outer fiber b=0+ Mba C0/(AeR2)=114Mpa
Experiment 3
Stress analysis of rectangular plate with circular hole subjected to
uniform pressure
/prep7
et,1,42,,,3
mp,ex,1,2e5
mp,nuxy,1,0.3
r,1,5
mp,ex,1,2e5
mp,nuxy,1,0.3
rectng,0,50,0,50
cyl4,,,10
asba,1,2
smrt,1
amesh,all
lsel,s,loc,x,0
lsel,a,loc,y,0
dl,all,,symm
lsel,s,loc,x,50
sfl,all,pres,-1
allsel,all
/solu
solv
/post1
plnsol,s,eqv,0,1
Experiment 4
Single Edged Notched Beam
L1=200
L2=80mm
Distance between supports: 360mm
Full length of the plate: 400mm
Load P/2=200N
Ansys Code For Single Edged Notch
/prep7
et,1,182,,,3
mp,ex,1,2e5
mp,nuxy,1,0.3
r,1,5
k,1,,10
k,2,10
k,3,180
k,4,200
k,5,200,50
k,6,100,50
k,7,,50
a,1,2,3,4,5,6,7
smrt,1
amesh,all
dk,3,uy
fk,6,fy,-200
nsel,s,loc,x,0
d,all,ux
allsel,all
/solu
solv
/post1
plnsol,s,eqv,0,1
Theoretical Validation
Z=5*402/6=1333mm4.
Experiment 5
Torsion of Prismatic Bars
Theoretical Validation
% max=K1Ta/J
% J=Ka3b
clc
clear
k1=1.35;
a=10;b=10;
T=10000; % N-mm
K=2.25; K1=1.35;
J1=K*a^3*b;
/prep7
et,1,188
mp,ex,1,2e5
mp,nuxy,1,0.3
k,1
k,2,1000
l,1,2
! SECTYPE, 1, BEAM, CSOLID, cir, 0
! SECOFFSET, CENT
! SECDATA,25,0,0,0,0,0,0,0,0,0,0,0
SECTYPE, 1, BEAM, RECT, rect, 0
SECOFFSET, CENT
SECDATA,20,20,0,0,0,0,0,0,0,0,0,0
esize,,20
lmesh,all
dk,1,all
fk,2,mx,10000
/solu
solv
/post1
/eshape,1
PLNSOL, S,XY, 0,1.0
Experiment 7
The higher order differential equations can be converted to system of first order
differential equations
The following figure shows a spring-mass-damper system. Plot the response of the
system when the initial displacement of mass m is 0.1 meters.
c = 1 kg/s
k = 100N/m
m = 5 kg
Equation of Motion
The equation of motion is as follows:
..
.
m x c x kx 0
x (t 0) 0.1
x
Rewriting the equation we get,
Consider the fact that x=v is just velocity. So we can rewrite the equation as two first
order differential equations
v
c
k
v x
m
m
x v
v (t 0) 0
x(t 0) 0.1
x1
c
k
x1 x2
m
m
x 2 x1
x1 (t 0) 0
x2 (t 0) 0.1
Response Graphs
Velocity Response
Displacement Response
Matlab code for Control Systems Root Locus, Bode and Nyquist Plots
Example : From Halesh
Num=[80]
Den=[1 22 40 0]
S1=tf(num,den)
Rlocus(s1)
Or you can work with rltool and import the transfer function for plotting root locus, bodo and
nyquist plots
Bodo,Root Locus and Nyquist plots