44
edits
Edi.sanchez (talk | contribs) No edit summary |
Edi.sanchez (talk | contribs) No edit summary |
||
Line 22: | Line 22: | ||
</math> | </math> | ||
where the | where the <math>w_p</math> are the weights (contribution to the distribution function) associated to each marker. | ||
The electric potential is represented on a spatial grid, the electric charge being carried by the markers. Two coordinate systems are used in the code: a system of magnetic coordinates (PEST) | The electric potential is represented on a spatial grid, the electric charge being carried by the markers. Two coordinate systems are used in the code: a system of magnetic coordinates (PEST) <math>(s, \theta,\phi )</math> is used for the electrostatic potential and cylindrical coordinates <math>(r, z,\phi )</math> are used for pushing the particles, where <math>s=\Psi / \Psi_0</math> is the normalized toroidal flux. The change between coordinate systems, which is facilitated by the existence of the common coordinate <math>(\phi)</math>, is done in a continuous way. The equation for the field is discretized using finite elements (B-splines) and the PETSc library is used for solving it. The integration of the motion is done using a fourth order Runge-Kutta scheme. | ||
In linear simulations a phase factor transformation can be used and the equations can be integrated using a predictor-corrector scheme. These options have not been used in this work. | In linear simulations a phase factor transformation can be used and the equations can be integrated using a predictor-corrector scheme. These options have not been used in this work. | ||
edits