- Two Mass System Consider the following two mass-spring-damper system: m₂ www m₁ C₂ C₁ X₁, X₁ Figure 1 - System for Sim
Posted: Tue Jul 12, 2022 8:40 am
The equations of motion for the system shown in Figure 1 are: m₁x₁ +c₁x₁ +k₁x₁ − C₁x₂ − k₁x₂ = ƒ - f m₂x₂ + (c₁ + c₂ )x₂ + (k₁ + k₂ )x₂ − c₁x₁ − k₁x₁ · = a) Implement the system of equations above in Simulink using the following parameters: ml = 10; m2 = 100; c1 = 100; c2 = 1000; kl = 1e4; k2 = 1e5; % Mass 1 [kg] % Mass 2 [kg] Tend = 10; 0 % Damping Coefficient 1 [Ns/m] % Damping Coefficient 2 [Ns/m] % Spring Coefficient 1 [N/m] % Spring Coefficient 2 [N/m] % Simulation Stop Time [s] You can assume that the initial conditions are all zero. Define the model parameters in a separate .m file and use the ode45 Solver inside of Simulink. This does not mean use ode45.m. Make sure to decrease the maximum step size if the plots are not smooth.