FortranTracer

class pfsspy.tracing.FortranTracer(max_steps=1000, step_size=0.01)

Bases: pfsspy.tracing.Tracer

Tracer using Fortran code.

Parameters
  • max_steps (int) – Maximum number of steps each streamline can take before stopping.

  • step_size (float) – Step size as a fraction of cell size at the equator.

Notes

Because the stream tracing is done in spherical coordinates, there is a singularity at the poles (ie. \(s = \pm 1\)), which means seeds placed directly on the poles will not go anywhere.

Methods Summary

trace(seeds, output)

param seeds

Coordinaes of the magnetic field seed points.

vector_grid(output)

Create a streamtracer.VectorGrid object from an Output.

Methods Documentation

trace(seeds, output)
Parameters
Returns

streamlines – Traced field lines.

Return type

FieldLines

static vector_grid(output)

Create a streamtracer.VectorGrid object from an Output.