pencil.diag.fixed_points

Find the fixed points of a given field.

Classes

FixedPoint

FixedPoint -- Holds the fixed points and additional integrated quantities.

Module Contents

class pencil.diag.fixed_points.FixedPoint

Bases: object

FixedPoint – Holds the fixed points and additional integrated quantities.

Fill members with default values.

params
t = None
fixed_index = None
fixed_points = None
fixed_tracers = None
fixed_sign = None
poincare = None
tracers = None
find_fixed(datadir='data', var_file='VAR0', trace_field='bb', ti=-1, tf=-1, tracer_file_name=None)

Find the fixed points to a snapshot or existing tracer file.

call signature:

find_fixed(datadir='data', var_file='VAR0', trace_field='bb',
           ti=-1, tf=-1, tracer_file_name=None):
Keyword Arguments:

*datadir*

Data directory.

var_file:

Varfile to be read.

trace_field:

Vector field used for the streamline tracing.

ti:

Initial VAR file index for tracer time sequences. Overrides ‘var_file’.

tf:

Final VAR file index for tracer time sequences. Overrides ‘var_file’.

tracer_file_name

Name of the tracer file to be read. If ‘None’ compute the tracers.

write(datadir='data', destination='fixed_points.hdf5')

Write the fixed points into a file.

call signature:

write(self, datadir=’data’, destination=’fixed_points.hdf5’)

Keyword arguments:

datadir:

Directory where the data is stored.

destination:

Destination file.

read(datadir='data', file_name='fixed_points.hdf5', quiet=True)

Read the fixed points from a file.

call signature:

read(self, datadir=’data’, file_name=’fixed_points.hdf5’)

Keyword arguments:

datadir:

Directory where the data is stored.

file_name:

File with the tracer data.

quiet:

Suppress warnings.