Professional Documents
Culture Documents
Assignment-1
SAIKRISHNA ABBURI
CE19MTECH11019
PROGRAM
clear all;
clc;
E=2*10^5; %Modulus of elasticity
K=2000; %Assumed Isotropic hardening modulus
H=1000; %Assumed Kinematic hardening modulus
sigy=250; %Yield stress
%%Stored variables
n=400;
A=zeros(n,1);
B=zeros(n,1);
en=zeros(1,1); %Total strain
epn=zeros(1,1); %Plastic strain
an=zeros(1,1); %Isotropic hardening variable
qn=zeros(1,1); %Back stress in Kinematic hardening
sign1=zeros(1,1); %Initial stres
den=0.0001; % Strain increment
x=zeros(1,1);
an(1,1)=ant;
qn(1,1)=qnt;
sign1(1,1)=sigt;
epn=epnt;
Cep=E; % elastic modulus
else
%% Plastic Step
delL=Ytr/(E+H+K); % error calculation(slip rate)
sign1(1,1)=sigt-delL*E*sign(xt); %Stress calculation
epn(1,1)=epn(1,1)+delL*sign(xt); %Plastic strain
qn(1,1)=qn(1,1)+delL*sign(xt); %Back strain
an(1,1)=an(1,1)+delL; %Isotropic hardening variable
Cep=E*(K+H)/(E+K+H); %Tangent modulus
end
clear all;
clc;
E=2*10^5; %Modulus of elasticity
K=2000; %Assumed Isotropic hardening modulus
sigy=250; %Yield stress
%%Stored variables
n=400;
A=zeros(n,1);
B=zeros(n,1);
en=zeros(1,1); %Total strain
epn=zeros(1,1); %Plastic strain
an=zeros(1,1); %Isotropic hardening variable
sign1=zeros(1,1); %Initial stres
den=0.0001; % Strain increment
x=zeros(1,1);
%% Elastic Step
an(1,1)=ant;
sign1(1,1)=sigt;
epn=epnt;
Cep=E; % elastic modulus
else
%% Plastic Step
delL=Ytr/(E+K); % error calculation(slip rate)
sign1(1,1)=sigt-delL*E*sign(xt); %Stress calculation
epn(1,1)=epn(1,1)+delL*sign(xt); %Plastic strain
%qn(1,1)=qn(1,1)+delL*sign(xt); %Back strain
an(1,1)=an(1,1)+delL; %Isotropic hardening variable
Cep=E*(K)/(E+K); %Tangent modulus
end