plot strain ellipse and principal stress axes using eigenvalues and eigevectors.
Hello,
I am trying to plot strain ellipses and principle stress axes (longest and shortest axes of the ellipse) on a grid (x_new,y_new) according to followig instructions. I would be really greatful if someone could help me complete this code.
Thank you.
x = -333.6:5:831.4; %(1×234)
y = 0:5:500; %(1×101)
[xx, yy] = meshgrid(x, y);
dx = 5;
dy = 5;
u = flow values of each grid node in x direction.
v = flow values of each grid node in y direction.
%% Plot Principle axes
pick all the u and v values in rows (45:55) and columns (110:120)
consider four grid nodes at a time. [1 3;2 4]. Then find
% for example
u_2=u(50,116); u_4=u(50,117); %|2 4|%
u_1=u(51,116); u_3=u(51,117); %|1 3|%
v_2=v(50,116); v_4=v(50,117); %|2 4|%
v_1=v(51,116); v_3=v(51,117); %|1 3|%
then using computed ux,uy, vx, vy values, ( e.g. ux=(u1+u2/dx) )
strain_tensor = [ux uy; vx vy];
[V,D]=eig(strain_tensor);
Now I want to use this eigenvalues and eigenvectors to plot strain ellipeses at the center of each four grid nodes along with quiver arrows inside the ellipses.Hello,
I am trying to plot strain ellipses and principle stress axes (longest and shortest axes of the ellipse) on a grid (x_new,y_new) according to followig instructions. I would be really greatful if someone could help me complete this code.
Thank you.
x = -333.6:5:831.4; %(1×234)
y = 0:5:500; %(1×101)
[xx, yy] = meshgrid(x, y);
dx = 5;
dy = 5;
u = flow values of each grid node in x direction.
v = flow values of each grid node in y direction.
%% Plot Principle axes
pick all the u and v values in rows (45:55) and columns (110:120)
consider four grid nodes at a time. [1 3;2 4]. Then find
% for example
u_2=u(50,116); u_4=u(50,117); %|2 4|%
u_1=u(51,116); u_3=u(51,117); %|1 3|%
v_2=v(50,116); v_4=v(50,117); %|2 4|%
v_1=v(51,116); v_3=v(51,117); %|1 3|%
then using computed ux,uy, vx, vy values, ( e.g. ux=(u1+u2/dx) )
strain_tensor = [ux uy; vx vy];
[V,D]=eig(strain_tensor);
Now I want to use this eigenvalues and eigenvectors to plot strain ellipeses at the center of each four grid nodes along with quiver arrows inside the ellipses. Hello,
I am trying to plot strain ellipses and principle stress axes (longest and shortest axes of the ellipse) on a grid (x_new,y_new) according to followig instructions. I would be really greatful if someone could help me complete this code.
Thank you.
x = -333.6:5:831.4; %(1×234)
y = 0:5:500; %(1×101)
[xx, yy] = meshgrid(x, y);
dx = 5;
dy = 5;
u = flow values of each grid node in x direction.
v = flow values of each grid node in y direction.
%% Plot Principle axes
pick all the u and v values in rows (45:55) and columns (110:120)
consider four grid nodes at a time. [1 3;2 4]. Then find
% for example
u_2=u(50,116); u_4=u(50,117); %|2 4|%
u_1=u(51,116); u_3=u(51,117); %|1 3|%
v_2=v(50,116); v_4=v(50,117); %|2 4|%
v_1=v(51,116); v_3=v(51,117); %|1 3|%
then using computed ux,uy, vx, vy values, ( e.g. ux=(u1+u2/dx) )
strain_tensor = [ux uy; vx vy];
[V,D]=eig(strain_tensor);
Now I want to use this eigenvalues and eigenvectors to plot strain ellipeses at the center of each four grid nodes along with quiver arrows inside the ellipses. ellipses, quivers, eigenvalues, eigenvectors MATLAB Answers — New Questions