Recent content by harryharns
-
C/C++ Perform RK4 between 2 Clusters in Magnetic Field
Charge particles in magnetic and electric field. this is the functions. Double_t dxdt(double t,double vx, double vy, Double_t vz){ Double_t Energy = GetEnergy(vx, vy, vz); Double_t st = StoppingPower(Energy); Double_t Ex,Ey,Ez,f1; //Electric field...- harryharns
- Post #11
- Forum: Programming and Computer Science
-
C/C++ Perform RK4 between 2 Clusters in Magnetic Field
this is what I want to solve. In the image, the cubes (circled in green)are the clusters with positions (x,y,z). I want to calculate the small points between cluster 1 and cluster 2 using the rk4 method.- harryharns
- Post #9
- Forum: Programming and Computer Science
-
C/C++ Perform RK4 between 2 Clusters in Magnetic Field
I am using the root for it- harryharns
- Post #7
- Forum: Programming and Computer Science
-
C/C++ Perform RK4 between 2 Clusters in Magnetic Field
I have the functions declared from the equation of motions. No I am not using a debugger as I am new to c++ and I do not know what a debugger is. can you advice me on the best debugger to use? and all the arrays are declared I didnt show the whole code as it is long. I have used a simple...- harryharns
- Post #5
- Forum: Programming and Computer Science
-
C/C++ Perform RK4 between 2 Clusters in Magnetic Field
I am using c++- harryharns
- Post #3
- Forum: Programming and Computer Science
-
C/C++ Perform RK4 between 2 Clusters in Magnetic Field
I have a simulated data of charged particles in a magnetic field. I have selected clusters, each cluster contains a set of points(x,z) and I want to perform RK4 between the first and second clusters and fill the positions in a histogram. I have selected the clusters with the initial...- harryharns
- Thread
- Charged Charged particles Clusters Field Magnetic Magnetic field Particles Programming Rk4
- Replies: 12
- Forum: Programming and Computer Science