Hamiltonian Module
The hamiltonians module provides base classes for Hamiltonian representations in the CR3BP.
This module provides the fundamental classes for representing and manipulating Hamiltonian functions in the circular restricted three-body problem. It includes the base Hamiltonian class and Lie generating function class for canonical transformations.
Base Classes
The base module provides the core Hamiltonian framework.
Hamiltonian()
Abstract container for a specific polynomial Hamiltonian representation.
- class hiten.system.hamiltonian.Hamiltonian[source]
Bases:
_HitenBase
User-facing container delegating Hamiltonian numerics to adapters.
- Parameters:
- property hamsys
Return the Hamiltonian system.
- classmethod from_state(other, **kwargs)[source]
Convert another Hamiltonian to this class using the dynamics service.
- Parameters:
other (Hamiltonian)
- Return type:
- to_state(target_form, **kwargs)[source]
Convert this Hamiltonian to another form using the dynamics service.
- Parameters:
target_form (type[Hamiltonian] | str)
- Return type:
- __setstate__(state)[source]
Restore the Hamiltonian instance after unpickling.
The heavy, non-serialisable dynamical system is reconstructed lazily using the stored value of poly_H, degree, ndof, and name.
- Parameters:
state (dict) – Dictionary containing the serialized state of the Hamiltonian.
LieGeneratingFunction()
Class for Lie generating functions in canonical transformations.
- class hiten.system.hamiltonian.LieGeneratingFunction[source]
Bases:
_HitenBase
Class for Lie generating functions in canonical transformations.
- Parameters:
poly_G (list[np.ndarray]) – The polynomial G blocks.
poly_elim (list[np.ndarray]) – The polynomial elimination blocks.
degree (int) – The degree of the Lie generating function.
ndof (int, default 3) – The number of degrees of freedom.
name (str, default "LieGeneratingFunction") – The name of the Lie generating function.
- __setstate__(state)[source]
Restore the LieGeneratingFunction instance after unpickling.
The heavy, non-serialisable dynamical system is reconstructed lazily using the stored value of poly_G, poly_elim, degree, ndof, and name.
- Parameters:
state (dict) – Dictionary containing the serialized state of the LieGeneratingFunction.