Non-numeric data Error using plot.
Afficher commentaires plus anciens
I am having problem in plotting the stress. The code as well as the errors are given below:
Error:
Error using plot
Non-numeric data is not supported in 'Line'
Error in stress (line 40)
plot(T/Tg,s)
syms epre et es(T) SS(T) ssfcn; %stored strain
Tl = 273;
Th = 358;
Tg = 343;
Ei = 813E6; %modulus corresponding to the internal energetic deformation
N = 5.938E26;
K = 1.38E-23; %[J/K] Boltzmann's constant
s = 2.76E-5;
n = 4;
epre = 0.091; %pre-strain under tension
Phif = 1-1./(1+s*(Th-T).^n);
y = diff(Phif,T);
fun = @(T)1.42E-6.*T-3.16E-4;
Ee = 3*N*K*T;
E = 1./((Phif./Ei)+((1-Phif)./Ee));
et = int(fun,Th,T);
Des = diff(es);
ode = Des == (epre-es-et).*y.*E./Ee;%writing stored strain as O.D.E
cond = es(Th) == 0; %initial condition for O.D.E
[VF,Sbs] = odeToVectorField(ode);
esfcn = matlabFunction(VF);
Tv = linspace(Th,Tl);
[T,Es] = ode45(esfcn, Tv,0);
s = E.*(epre-Es-et); %stress
figure
plot(T/Tg,s)
grid
xlabel('T/Tg (K/K)')
ylabel('Stress(Pa)')
Réponses (0)
Catégories
En savoir plus sur Stress and Strain dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!