freegs.fieldtracer.traceFieldLines

freegs.fieldtracer.traceFieldLines#

freegs.fieldtracer.traceFieldLines(eq, solwidth=0.03, nlines=10, nturns=50, npoints=200, axis=None)[source]#

Trace field lines from the outboard midplane

Inputs#

eq:

Equilibrium object

solwidth:

The width of the SOL in meters

nlines:

Number of field lines to follow

nturns:

Number of times around the tokamak to follow

npoints:

Maximum number of points per line. May hit a wall

axis:

Matplotlib figure Axis. If given, field lines are plotted on the axis

returns:

Example

>>> forward, backward = traceFieldLines(eq)