guys can this b donee using runge-kutta method?

Thread Starter

trish panette

Joined May 16, 2011
2
i was given a question to be solved numerically on fortran..i have used the forward difference technique..can this question be solved runge-kutta method or euler?How?...hey how can i find the maximum current and charge in fortran?

i have attached the question....question 271 is mine..
 

Attachments

K7GUH

Joined Jan 28, 2011
190
If you can transform the problem into the form i = f(i) you can use fixed point iteration. My textbooks are either long gone or hiding in a box somewhere. Of course, I can't find the box. (;->
 

steveb

Joined Jul 3, 2008
2,436
i was given a question to be solved numerically on fortran..i have used the forward difference technique..can this question be solved runge-kutta method or euler?How?...hey how can i find the maximum current and charge in fortran?

i have attached the question....question 271 is mine..
Yes, you can use either Runge=Kutta or Euler method for this problem.

The way to do it is to express both first order differential equations in the form;

di/dt=f(i,q,v)
dq/dt=i

and then apply the method.

You can find the maximums either by plotting the functions and searching for the peaks; or, you can try the old calculus method of setting the derivatives with respect to the variable t, equal to zero, and solving. The first method should work, but I'm not sure about the second method.
 
Last edited:

steveb

Joined Jul 3, 2008
2,436
yea but...got any idea of how to plot this ?

the commands etc
Yes, I do, but it's been about 20 years since I've had too manually program these types of numerical techniques. I currently use Matlab/Simulink to do this kind of stuff automatically.

Describing this out on a forum is actually not so easy. The descriptions can probably be found online and certainly are available in various books on numerical methods.
 
Last edited:
Top