Skip to main content
15-Moonstone
April 19, 2021
Solved

Square Wave as ODE Forcing Function

  • April 19, 2021
  • 1 reply
  • 2620 views

hi,

 

i wanted to use a square wave to drive a mass spring damper system. i usually use the state space solver, as it has worked better than the other solvers. however, in this case, i get an error. note, the worksheet isn't fully setup yet, due to the error. i was trying to make an example, since there aren't any quick sheets for a square wave.

 

thanks,

 

anthony

Best answer by terryhendicott

Hi,

And another.

1 reply

21-Topaz II
April 19, 2021

Hi,

See enclosed working file with comment in blue.

Cheers

Terry

21-Topaz II
April 19, 2021
15-Moonstone
April 19, 2021

hi terry,

 

thanks. your second post is what i was going for. that's a strange quirk. i tried something similar, before i posted the question, but it didn't work for me. it's working now though. you're help has allowed me to move forward with the example. once i get it finished, i'll post the file.

 

anthony