Q.1) If a mass–spring system with an iron ball of weight W = 98nt (about 22 lb) can be regarded as undamped, and the spring is such that the ball stretches it 1.09 m (about 43 in.), how many cycles per minute will the system execute? What will its motion be if we pull the ball down from rest by 16 cm (about 6 in.) and let it start with zero initial velocity?
Q.2) if we change the damping constant c from one to another of the following three values, with y(0) = 0.16 and y'(0) = 0 as before? (I) c=100 kg/sec , (II) c=60 kg/sec, (III) c=10 kg/sec.
Sol.1) W =98nt인 쇠구슬을 spring에 매달았을 때 1.09m 늘어났으므로 spring ratio는
질량은 무게에서 중력가속도를 나누어 구할 수 있다. m=98/9.8=10 kg.
spring mass system의 운동방정식을 구하면 다음과 같다.
위 식에서 람다가 허수로 나오기 때문에 일반 해를 구하면 다음과 같다.
초기조건 x(0) = 0.16이고 이때 속력은 0가 된다. 따라서 특수 해를 구할 수 있다.
진동수는 다음과 같이 구할 수 있다.
Matlab을 활용하면 간편하게 구할 수 있습니다.
m=10;
k=90;
syms x(t)
Dx=diff(x);
D2x=diff(x,2);
eqn = m*D2x+k*x==0;
cond = x(0)==0.16;
cond2 = Dx(0)==0;
sol = dsolve(eqn,cond,cond2)
(4*cos(3*t))/25

Sol.2) 위 식에 damping을 추가하여 방정식을 만들면 다음과 같다.
c=100 kg/sec이므로 이때는 실근을 갖는다.
초기 조건을 그대로 적용하여 특수 해를 구할 수 있다.
c=60 kg/sec일 때 중근을 갖는다.
초기 조건을 그대로 적용하여 특수 해를 구할 수 있다.
c=10 kg/sec일 때 복소수 근을 갖는다.
초기 조건을 그대로 적용하여 특수 해를 구할 수 있다.
매틀랩을 활용해서 간단히 구할 수 있다.
%mass damped spring
m=10;
k=90;
c1=100;
c2=60;
c3=10;
syms x(t)
Dx=diff(x);
D2x=diff(x,2);
eqn1 = m*D2x+c1*Dx+k*x==0;
eqn2 = m*D2x+c2*Dx+k*x==0;
eqn3 = m*D2x+c3*Dx+k*x==0;
cond = x(0)==0.16;
cond2 = Dx(0)==0;
sol1 = dsolve(eqn1,cond,cond2)
sol2 = dsolve(eqn2,cond,cond2)
sol3 = dsolve(eqn3,cond,cond2)
sol1 =
(9*exp(-t))/50 - exp(-9*t)/50
sol2 =
(4*exp(-3*t)*(3*t + 1))/25
sol3 =
(4*exp(-t/2)*(35*cos((35^(1/2)*t)/2) + 35^(1/2)*sin((35^(1/2)*t)/2)))/875

'지식공학 > Matlab' 카테고리의 다른 글
Matlab 1차 미분방정식 풀이 (문제와 코드 공개) (0) | 2020.11.10 |
---|---|
매트랩 방정식 풀기(미분, 적분) (0) | 2020.11.04 |
matlab 함수(포물선,원,타원,쌍곡선) 쉽게 그리기 feat.subplot (1) | 2020.11.03 |
Matlab 그래프 명령어 정리 (plot) (1) | 2020.11.02 |
댓글