Skip to content

Commit

Permalink
Add ALD force from ASCOT4 for GC
Browse files Browse the repository at this point in the history
  • Loading branch information
Jari Varje authored and miekkasarki committed Sep 19, 2024
1 parent 3169fc1 commit 50c43d0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/simulate/step/step_gceom.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <math.h>
#include "../../ascot5.h"
#include "../../consts.h"
#include "../../math.h"
#include "../../physlib.h"

Expand Down Expand Up @@ -82,6 +83,16 @@ inline static void step_gceom(real* ydot, real* y, real mass, real charge,
ydot[4] = 0;
ydot[5] = charge * normB / ( gamma * mass );

/* ALD force from E. Hirvijoki et al. 2015 Guiding-center transformation of
* the Abrahams-Lorentz-Dirac radiation reaction force
* http://de.arxiv.org/abs/1412.1966 */
real C = 2 * y[4] * normB / (mass * CONST_C * CONST_C);
real nu = charge * charge * charge * charge * normB * normB
/ (6 * CONST_PI * CONST_E0 * gamma * mass * mass * mass
* CONST_C * CONST_C * CONST_C);

ydot[3] += -nu * y[3] * C;
ydot[4] += -2 * nu * y[4] * (1 + C);
}

#pragma omp end declare target
Expand Down

0 comments on commit 50c43d0

Please sign in to comment.