|
The Open FUSION Toolkit 1.0.0-beta6
Modeling tools for plasma and fusion research and engineering
|
#include "local.h"Functions/Subroutines | |
| program | oft_trace |
| Driver to trace field lines and particles from fields stored in a restart file. | |
| subroutine | particle_lorentz (t, y, b, n, ydot) |
| ODE function for Lorentz force particle advance. | |
| subroutine particle_lorentz | ( | real(r8), intent(in) | t, |
| real(r8), dimension(n), intent(in) | y, | ||
| real(r8), dimension(3), intent(in) | b, | ||
| integer(i4), intent(in) | n, | ||
| real(r8), dimension(n), intent(out) | ydot ) |
ODE function for Lorentz force particle advance.
F = q * cross(V,B) / m_i
| [in] | t | Time (unused) |
| [in] | y | Current position/velocity |
| [in] | b | B-field at current position |
| [in] | n | Number of spatial dimensions (3) |
| [out] | ydot | New velocity/acceleration at current point |