EUTERPE: Difference between revisions

55 bytes added ,  30 April 2010
no edit summary
No edit summary
No edit summary
Line 22: Line 22:
</math>
</math>


where the $w_p$ are the weights (contribution to the distribution function) associated to each marker.  
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) $(s, \theta,\phi )$ is used for the electrostatic potential and cylindrical coordinates $(r, z,\phi )$ are used for pushing the particles, where $s=\Psi / \Psi_0$ is the normalized toroidal flux. The change between coordinate systems, which is facilitated by the existence of the common coordinate ($\phi$), 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.
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.


44

edits