I am trying to solve the differential equation:
mx''+cx'+kx=ky+cy''
y is the input and x is the output.
y=Y0sin(wt)
where m=100, c=1300, k= 17000, Y0=input value, w=input value
initially I need to solve this, and then i need to plot displacement and velocity profiles.
clear
t=0:0.1:15;
Y0= input('wave amplitude ') ;
l= input('length of wave ') ;
u=input('speed of boat');
w=u/l;
y=Y0*sin(w*t);
Dr=0.5;
k=17000;
m=100;
wn=(k/m)^0.5;
wd=wn*(1-Dr^2)^0.5;
c=2*Dr*(k*m)^(0.5);
syms x(t)
ode=m*diff(x,t,2)+c*diff(x,t)+k*x==y+(2*Dr/wn)*diff(y,t);
xSol(t)=dsolve(ode);
0 Comments
Sign in to comment.