Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.8K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Solving a simple differential equation, a SDOF problem

Posted 4 years ago

Hi Guys

My previous post was really long and maybe difficult to follow. I have set up a simple problem which I am trying to solve and still attaining errors. Can someone please assist in explaining where I went wrong.

POSTED BY: Mishal Mohanlal
2 Replies

Hi Eric

Thanks for the help, I just managed to get a solution just as you replied.

POSTED BY: Mishal Mohanlal
Posted 4 years ago

I think you've bracketed the NDSolve expression incorrectly. I think it should probably look like this:

NDSolve[{m*x''[t] + c*x'[t] + k*x[t] == F*Sin[w*t], x''[0] == 0, x'[0] == 0, x[0] == 0}, x, {t, 0, 20}]

But that produces another error about having the wrong number of constraints.

I also notice that you have a variable c in your equation, but c has not been assigned a value. If I remove the c and remove one of the constraints, I get a solution.

POSTED BY: Eric Rimbey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard