MATLAB MathCAD/MatLab program for non-linear spring-mass-damper system

AI Thread Summary
The discussion focuses on modeling a non-linear spring-mass-damper system using MathCAD or MATLAB for a machining operation. The system is defined with a mass of 25 kg, linear viscous damping, and a hardening spring characterized by a specific equation. Participants express challenges in defining the non-linear spring variable and suggest converting the system to first-order ordinary differential equations (ODEs) for easier computation. Recommendations include using the Runge-Kutta method or MATLAB's ode45 function for simulation. The conversation emphasizes the need to correctly formulate the equations of motion before proceeding with the numerical solution.
sailsinthesun
Messages
23
Reaction score
0

Homework Statement



The cutting force developed during a particular machining operation is shown in figure (a).
Model the system as a SDF with equivalent mass of the cutting head = 25 kg. The damping is linear viscous (ξ = 0.1), and the equivalent spring is nonlinear “hardening” spring of the form k = k1 + k2*x^2, where k1 = 400 kN/m, and k2 = 40 kN/m3. Assume the initial conditions x(0) = 0 and
x' (0) = 0.

I need to write a computer program in MathCAD, Matlab, or similar to solve this problem.(These two programs are available to me)

(a) Draw the analytical model and write the D.E. of the motion of the system.
(b) Computer printout of the program listing.
(c) Computer output of results (t, x, x' )
(d) Computer plot for x(t) vs. t
(e) Computer plot for x'(t) vs. t
(f) Compute the inaccuracies (in the vertical direction) in the surface finish due to the cutting force.

Homework Equations



m(d^2y/dt^2)+c(dy/dt)+ky=Fo*sin(wt)

The Attempt at a Solution



The first real problem I've run into is modeling the non-linear spring. In MathCAD, when I put k:= 400+40y^2 it's saying y is undefined, which is true, but how should I define it? I'm not given like 0<y<5 or anything, so again, how should it be defined?
 

Attachments

  • problem5.JPG
    problem5.JPG
    34.8 KB · Views: 1,083
  • problem6.JPG
    problem6.JPG
    8.7 KB · Views: 991
Physics news on Phys.org
did you ever get this complete?
 
Not sure why you bumped a year old thread, but can't you just solve this by reducing it to a system of first order ODES and applying a runge kutta method or something similar?
 
The Gringo said:
Not sure why you bumped a year old thread, but can't you just solve this by reducing it to a system of first order ODES and applying a runge kutta method or something similar?
Given that it's intended to be solved in Mathcad or Matlab (the latter with no presumption of the symbolic toolbox), it would seem that's the appropriate general method.

However, the first step is to express the actual system as a DE using the variables given. (Apart from not being in the correct form for an ODE, the Mathcad fragment doesn't even use the same variable).
 
Does anybody have anymore insight into this problem?
 
I would take my equations of motion, convert them to a state-space form, and write a simulation using ode45 in MATLAB.
 
Back
Top