Modeling Tips & Help
post and replies
Return to the Modeling Tips & Help thread
Login to post to this thread
Mathematical Function Use in ODEs???
 Jun 22, 2010 at 2:35PM

Nolan Nicholas
1 Posts

Does anyone know if it is possible to use named functions (e.g. sine) in the ODE "evolution"?
[I want to simulate a "particle on a hoop" under the influence of a separate external force field.]

Re: Mathematical Function Use in ODEs???  Jul 03 2010 12:33PM

Vasudeva Rao Aravind
3 Posts

Yes. For example if you want to say that dx/dt is sin(w*t), your command should read
dx/dt=Math.sin(w*t)
Hope it helps.

Re: Mathematical Function Use in ODEs???  Jul 23 2010 4:17PM

Wolfgang
103 Posts

The OSP parser within EJS can be used used to compute the ODE rate. See how this is done in the Barrier Scattering model.
http://www.compadre.org/osp/items/detail.cfm?ID=10220

