# i need to find the displacement for the given values

1 view (last 30 days)
sai nikhil teja on 2 Dec 2022
Commented: sai nikhil teja on 4 Dec 2022
clear all
syms p E v a b d A I G m U
p = 10
E = 3*10^4
v = 0.29
a = 39
b = 2*a
d = 1
A = pi/4
I = (pi/64)*d^2
G = E/(2*(1+v))
m = 5/6
U = p^2*a^2/(2*E*I)+p^2*a/(2*m*G*A)+p^2*b/(2*E*A)+p^2*b/2*E*A+p^2*a^3/2*G*I+p^2*a/2*G*m*A
disp = diff(U,p);

Torsten on 2 Dec 2022
Edited: Torsten on 2 Dec 2022
syms p
E = 3*10^4;
v = 0.29;
a = 39;
b = 2*a;
d = 1;
A = pi/4;
I = (pi/64)*d^2;
G = E/(2*(1+v));
m = 5/6;
U = p^2*a^2/(2*E*I)+p^2*a/(2*m*G*A)+p^2*b/(2*E*A)+p^2*b/2*E*A+p^2*a^3/2*G*I+p^2*a/2*G*m*A;
dUdp = diff(U,p);
p0 = 10;
disp(double(subs(dUdp,p,p0)))
3.5993e+08
sai nikhil teja on 4 Dec 2022
U is the energy and du/dp is the displacement. p is the force that is causing the dispalacement. This is the castiligio theorm where differentiating the energy equation with the force gives us the vertical displacement.

### Categories

Find more on Common Operations in Help Center and File Exchange

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!