freegs.fieldtracer.FieldTracer#
- class freegs.fieldtracer.FieldTracer(eq)[source]#
Bases:
objectA class for following magnetic field lines
Methods
__init__(eq)Initialise a FieldTracer with an Equilibrium eq
eqDomain(R, Z, evolving)Update an array evolving, of the same shape as R and Z.
fieldDirection(pos, toroidal_angle, ...)Calculate the magnetic field direction at a given pos
follow(Rstart, Zstart, angles[, rtol, backward])Follow magnetic field lines from (Rstart, Zstart) locations to given toroidal angles.
wallDomain(R, Z, evolving)Updates an array evolving, of the same shape as R and Z.
- eqDomain(R, Z, evolving)[source]#
Update an array evolving, of the same shape as R and Z. Set all entries to zero which correspond to (R,Z) points outside the domain.
- fieldDirection(pos, toroidal_angle, evolving, backward)[source]#
Calculate the magnetic field direction at a given pos