Mass-Spring-Damper time response to step input

Click For Summary
SUMMARY

The discussion focuses on solving the time response of a vertically oriented mass-spring-damper system to a step input of y=10cm (0.1m) using Wolfram Mathematica. The governing differential equation is mx'' + cx' + kx = ky + cy', with initial conditions x[0]=0 and x'[0]=0. The user encountered errors while using DSolve due to missing function arguments and incorrect variable assignments. A correction was provided, emphasizing the need to include the argument for the function x in the equation.

PREREQUISITES
  • Understanding of mass-spring-damper systems
  • Familiarity with differential equations
  • Proficiency in using Wolfram Mathematica
  • Knowledge of initial value problems in dynamic systems
NEXT STEPS
  • Learn how to use NDSolve in Wolfram Mathematica for solving differential equations
  • Explore the formulation of equations of motion for multiple degree of freedom (DOF) systems
  • Study the application of matrix methods in dynamic system analysis
  • Investigate the effects of damping and stiffness on system response in automotive dynamics
USEFUL FOR

Students and professionals in automotive engineering, mechanical engineering, and dynamics who are working on modeling and analyzing mass-spring-damper systems.

hhspunter
Messages
1
Reaction score
0

Homework Statement



I am going to do some paraphrasing here, because the question is for automotive dynamics class, but is a pretty general question in its simplest form (1 degree of freedom):

Find the time response to a step input of y=10cm.

This is for a vertically oriented mass-spring-damper system, where the spring and damper are parallel, and the mass rests on top of the spring.

08-14-09_0026.jpg

Sorry for the poor quality, I can't find my camera so I had to use my phone.

Variables are:
x[t] and y[t], and their derivatives.
x refers to the position of the sprung mass where x=0 means the system is in equlibrium.
y refers to the position of the bottom of the spring.

Initial conditions:

x[0]=0
x'[0]=0.

For t>0, y=0.1 (in meters). For t less than/equal to 0, y=0.

Homework Equations



mx''+cx'+kx=ky+cy'


The Attempt at a Solution



I am using Wolfram Mathematica, so to solve the differential equation I assign values for m, c, and k. I use NDSolve, then write the equation, the initial conditions (x[0]=0, x'[0]=0), tell it to solve for x, and for 0<t<3. Now y'[t]=0 for t>0, so the cy' portion of the equation can be dropped. If I assign a value of 0.1 to y, and use DSolve, it gives an error, telling me that "0 cannot be used as a valiable" (it is getting the 0 from when I specify 0<t<3, verified by changing the lower bound of t). If I do not assign a value to y, I get the same result (after clearing all variables). If I use NDSolve, with or without an assigned value to y, I get an error message that "The fuction x appears with no arguments."

Here is my code, if it helps:
m = 1440/4;
k = 358*9.81/.15;
c = 1855;
y = 0.1;
DSolve[{m*x''[t] + c*x'[t] + k*x == k*y, x[0] == 0,
x'[0] == 0}, x, {t, 0, 3}]




Expansion of the problem
Now, I also need to be able to solve this same problem (step input of y=0.1meters) for multiple DOF systems. If I can solve it for a single DOF situation, I can develop similar equations of motion using matrices for m, c, and k. Hopefully I'll be able to apply the same strategy that ends up working for the 1DOF problem to the multiple DOF system (I need to go all the way up to a full-car model, with a double MSD in series on each corner of the car, plus a front and rear roll stiffness, but again I have the similar equations of motion as above).
 
Physics news on Phys.org
hhspunter said:
If I use NDSolve, with or without an assigned value to y, I get an error message that "The fuction x appears with no arguments."
That's because you forgot the argument for one occurrence of function x in DSolve. The needed correction is shown below in red
hhspunter said:
DSolve[{m*x''[t] + c*x'[t] + k*x[t][/color] == k*y, x[0] == 0,
x'[0] == 0}, x, {t, 0, 3}]
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
1K
Replies
16
Views
2K
  • · Replies 3 ·
Replies
3
Views
840
Replies
1
Views
1K
Replies
9
Views
2K
Replies
3
Views
1K
Replies
3
Views
2K
Replies
3
Views
992
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
1K