Center Manifold Services
Services for center manifold objects in the Hiten framework.
Center Manifold Persistence Service
_CenterManifoldPersistenceService()
Handle persistence for center manifold objects.
- class hiten.algorithms.types.services.center._CenterManifoldPersistenceService[source]
Bases:
_PersistenceServiceBase
Handle persistence for center manifold objects.
- Parameters:
save_fn (Callable[..., Any]) – The function to save the object.
load_fn (Callable[..., Any]) – The function to load the object.
load_inplace_fn (Optional[Callable[..., Any]] = None) – The function to load the object in place.
Center Manifold Dynamics Service
_CenterManifoldDynamicsService()
Provide numerical operations for center manifold computations.
- class hiten.algorithms.types.services.center._CenterManifoldDynamicsService(domain_obj)[source]
Bases:
_DynamicsServiceBase
Provide numerical operations for center manifold computations.
- Parameters:
domain_obj (
CenterManifold
) – The domain object.
- property point: LibrationPoint
Get the libration point.
- property pipeline: HamiltonianPipeline
Get or create the pipeline for the current point and degree.
- Returns:
The pipeline.
- Return type:
HamiltonianPipeline
- hamiltonian(degree)[source]
Get the Hamiltonian for the given degree.
- Parameters:
degree (int) – The degree of the Hamiltonian.
- Returns:
The Hamiltonian.
- Return type:
- pipeline_for_degree(degree)[source]
Get pipeline for a specific degree, changing current degree if needed.
- Parameters:
degree (int) – The degree of the pipeline.
- Returns:
The pipeline.
- Return type:
HamiltonianPipeline
- format_coefficients(ham, degree)[source]
Format the coefficients of the Hamiltonian.
- Parameters:
ham (
Hamiltonian
) – The Hamiltonian.degree (int) – The degree of the Hamiltonian.
- Returns:
The formatted coefficients.
- Return type:
- get_map(energy)[source]
Get the map for the given energy.
- Parameters:
energy (float) – The energy.
- Returns:
The map.
- Return type:
- property hamsys
Get the Hamiltonian system.
Center Manifold Services
_CenterManifoldServices()
Encapsulate services for center manifold.
- class hiten.algorithms.types.services.center._CenterManifoldServices(domain_obj, persistence, dynamics)[source]
Bases:
_ServiceBundleBase
Encapsulate services for center manifold.
- Parameters:
domain_obj (
CenterManifold
) – The domain object.persistence (
_CenterManifoldPersistenceService
) – The persistence service.dynamics (
_CenterManifoldDynamicsService
) – The dynamics service.
- classmethod default(domain_obj)[source]
Create a default service bundle.
- Parameters:
domain_obj (
CenterManifold
) – The domain object.- Returns:
The service bundle.
- Return type:
Create a service bundle with a shared dynamics service.
- Parameters:
dynamics (
_CenterManifoldDynamicsService
) – The dynamics service.- Returns:
The service bundle.
- Return type: