Skip to main content
15-Moonstone
Solved

Square Wave as ODE Forcing Function

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

terryhendicott
21-Topaz II

Hi,

And another.

6 replies

terryhendicott
21-Topaz II

Hi,

See enclosed working file with comment in blue.

Cheers

Terry

Translate
terryhendicott
21-Topaz II

Hi,

And another.

Translate
15-Moonstone

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

Translate