Poincare Types
The types module provides core data structures and result containers for Poincare return map computation.
Core Types
- class hiten.algorithms.poincare.core.types._Section[source]
Bases:
object
Immutable container for a single 2D return map slice.
This class holds the data for a computed Poincare section, including the intersection points, state vectors, axis labels, and optional integration times.
- Parameters:
points (ndarray, shape (n, 2)) – Array of 2D intersection points in the section plane.
states (ndarray, shape (n, k)) – Array of state vectors at the intersection points. The number of columns k depends on the backend implementation.
labels (tuple[str, str]) – Labels for the two axes in the section plane (e.g., (“q2”, “p2”)).
times (ndarray, optional, shape (n,)) – Array of absolute integration times at each intersection point. If None, times are not available.
- class hiten.algorithms.poincare.core.types._SectionHit[source]
Bases:
NamedTuple
Container for a single trajectory-section intersection.
This named tuple holds all the information about a single intersection between a trajectory and a Poincare section. It provides both the full state vector and the 2D projection for efficient access.
- Parameters:
time (float) – Absolute integration time (nondimensional units), signed according to propagation direction.
state (ndarray, shape (n,)) – Full state vector at the crossing (immutable copy).
point2d (ndarray, shape (2,)) – 2D coordinates of the point in the section plane (e.g., (q2, p2) or (x, x_dot)). Stored separately so callers do not have to re-project the full state vector.
trajectory_index (int) – Index of the trajectory that produced this intersection within the input trajectory list.
Notes
This container is immutable and provides efficient access to both the full state information and the 2D projection. The 2D coordinates are pre-computed to avoid repeated projection operations.
All time units are in nondimensional units unless otherwise specified.
Center Manifold Types
- class hiten.algorithms.poincare.centermanifold.types.CenterManifoldMapResults[source]
Bases:
_MapResults
User-facing results that behave as a _Section with extra helpers.
Synodic Types
- class hiten.algorithms.poincare.synodic.types.SynodicMapResults[source]
Bases:
_MapResults
User-facing results for synodic sections (extends
_MapResults
).
- class hiten.algorithms.poincare.synodic.types._SynodicMapProblem[source]
Bases:
object
Problem definition for a synodic section run.
- Parameters:
- direction
Crossing direction filter.
- Type:
{1, -1, None}
- map_cfg
Map configuration containing detection parameters.
- Type: