create_flux_surface

pysac.analysis.tube3D.tvtk_tube_functions.create_flux_surface(bfield, surf_seeds)[source] [edit on github]

Create a flux surface from an array of seeds and a tvtk vector field.

Parameters:

bfield: tvtk.ImageData

The vector field to use for streamline traceing

surf_seeds: numpy.ndarray

The array of seed points to start the fieldline tracing from

Returns:

surf_field_lines: tvtk.StreamTracer instance

The fieldline tracer with the fieldlines stored inside it.

surface: tvtk.RuledSurfaceFilter instance

The surface built from the StreamTracer instance