Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Modeling Tips & Help

Return to the EJS Modeling forum
Login to post to this thread

Iterating with ODE solving - Oct 18, 2012 at 5:28PM
Ioannis Vourkas
3 Posts

Hi again,

I am writing to ask if you have any recommendation regarding, how one might manage to use a specific ODE for multiple types of systems whose functionality is described in part by the same ODE.

i.e. In case of having a mesh grid of nodes, where at each node the same ODE applies, though the current values of the state variables are different. Thus, instead of defining as many ODEs as the nodes, should I iterate and step the solver for each node or is there any other possible way to do it?

A student of mine recently defined as state variable a cell of a table, e.g. as follows: d(w[i]) / dt
and thinks that the solver tries to iterate within all cells of table w[] ...

Is this some kind of a bug or is it really what it does in case of having such a state variable declaration?

Thanks in advance!


Current Replies - View all
Re: Iterating with ODE so...   (Francisco Esquembre - Oct 18 2012 at 5:41PM)
Re: Re: Iterating with OD...   (Wolfgang - Oct 18 2012 at 5:53PM)
Page of Code Vs Page of ODEs in EJS Evolution - Jun 8, 2012 at 8:34AM
Ioannis Vourkas
3 Posts

Hi! I 've been using EJS ever since 2009 when I was in Spain, and I'd like to encourage you to keep up doing such a briliant work. Nevertheless, this is the first time I use this forum...

I 'd like to make a question regarding the Evolution page in EJS. First of all, is there any problem if someone uses both pages of code and ODEs in the same simulation? In most of the cases I use a page sequence like...

Page of Code--Page of ODEs--Page of Code--Page of ODEs ... etc

so I organize my preliminary code before specific ODEs whenever it is necessary. Is this OK? (I guess I could use the preliminary code section of ODE pages instead...).

Moreover, let's say that I want to simulate a 2D grid of nxm devices and need a DE to describe the response of each device, in every time step. Is there any way to do this without having to declare nxm different DEs? Is there any kind of iteration I could use instead? (Maybe PJ could be helpful?) The devices are identical, so the DEs are all the same too, except for some different coefficient values that I pass as parameters to the method I use in the ODEs page.

Thank you very much in advance.

Ioannis


Current Replies - View all
Re: Page of Code Vs Page ...   (Francisco Esquembre - Jun 08 2012 at 12:19PM)
Re: Re: Page of Code Vs P...   (Ioannis Vourkas - Jun 09 2012 at 3:59AM)
Re: Re: Re: Page of Code ...   (Francisco Esquembre - Jun 09 2012 at 7:17AM)
automatically stop a simulation - Feb 2, 2012 at 11:10PM
mos
1 Posts

Hi,

Is there any way to define a final time for automatically stop a simulation when the simulation time reaches it?

Thank you in advance


Current Replies - View all
Re: automatically stop a ...   (Francisco Esquembre - Feb 03 2012 at 6:45AM)
Input from user through textbox on frame - Jan 26, 2012 at 3:12PM
SUNIL KUMAR
1 Posts

i want to get input from the user through text box and then again restart the simulation with updated valuse

can anyone help me in doing this


Current Replies - View all
Re: Input from user throu...   (Francisco Esquembre - Mar 08 2012 at 3:34PM)
Fixed Function Plotter - Nov 14, 2011 at 3:47PM
Ronald Modesitt
2 Posts

I am following the Fixed Function Plotter example in chapter three of Modeling Science: From Free Fall to Chaos.

My graphs appear correctly, however, the trace function connects the end points of the graph (straight line) for both sin(x)/x and sin(x). What parameter do I change to eliminate this effect?

Many thanks for EJS. What a fun environment to re-learn physics.

Ron


Current Replies - View all
Re: Fixed Function Plotte...   (Francisco Esquembre - Nov 14 2011 at 4:13PM)
Re: Re: Fixed Function Pl...   (Ronald Modesitt - Nov 14 2011 at 5:03PM)
Parallelization - May 23, 2011 at 11:42AM
Zach Wilson
1 Posts

Does anyone know if there is a way to utilize parallel computing or if there is going to be a version dedicated to this?


Current Replies - View all
Re: Parallelization   (Francisco Esquembre - May 24 2011 at 3:36AM)
Re: Parallelization   (Francisco Esquembre - Oct 20 2011 at 5:46PM)
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.]


Current Replies - View all
Re: Mathematical Function...   (Vasudeva Rao Aravind - Jul 03 2010 at 12:33PM)
Re: Mathematical Function...   (Wolfgang - Jul 23 2010 at 4:17PM)
The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics