Recent content by InuYasha

  1. I

    Implementing Runge-Kutta 2nd order for galaxy particle motion

    I think what I'm asking is what would the likely function be that I'm integrating? I'm pretty sure the code regarding scaling the velocity to centrifugal force only gets called once. Would I need to call the subroutine calculating the gravitational accel (I haven't posted this as it's pretty...
  2. I

    Implementing Runge-Kutta 2nd order for galaxy particle motion

    Homework Statement Hi everyone, I'm a bit stuck and have been staring at my fortran code all day. For my project this year I'm writing a program to model a spiral galaxy in which gas clouds circulate, collide and produce star formation. I've written code for gravitational acceleration due to...