Skip to main content

HITEN - Computational Toolkit for the Circular Restricted Three-Body Problem

Project description

HITEN - Computational Toolkit for the Circular Restricted Three-Body Problem

PyPI version

Overview

HITEN is a research-oriented Python library that provides an extensible implementation of high-order analytical and numerical techniques for the circular restricted three-body problem (CR3BP).

Examples

  1. Parameterisation of periodic orbits and their invariant manifolds

    The toolkit constructs periodic solutions such as halo orbits and computes their stable and unstable manifolds.

    from hiten import System
    
    system = System.from_bodies("earth", "moon")
    libration_point = system.get_libration_point(1)
    
    orbit = libration_point.create_orbit("halo", amplitude_z=0.2, zenith="southern")
    orbit.differential_correction(max_attempts=25)
    orbit.propagate(steps=1000)
    
    manifold = orbit.manifold(stable=True, direction="positive")
    manifold.compute()
    manifold.plot()
    

    Halo orbit stable manifold

    Figure 1 - Stable manifold of an Earth-Moon (L_1) halo orbit.

    Knowing the dynamics of the center manifold, initial conditions for vertical orbits can be computed and associated manifolds created. These reveal natural transport channels that can be exploited for low-energy mission design.

    from hiten import System, VerticalOrbit
    
    system = System.from_bodies("earth", "moon")
    libration_point = system.get_libration_point(1)
    
    cm = libration_point.get_center_manifold(max_degree=10)
    cm.compute()
    
    initial_state = cm.ic(poincare_point=[0.0, 0.0], energy=0.6, section_coord="q3")
    
    orbit = VerticalOrbit(libration_point, initial_state=initial_state)
    orbit.differential_correction(max_attempts=100)
    orbit.propagate(steps=1000)
    
    manifold = orbit.manifold(stable=True, direction="positive")
    manifold.compute()
    manifold.plot()
    

    Vertical orbit stable manifold

    Figure 2 - Stable manifold of an Earth-Moon (L_1) vertical orbit.

  2. Generating families of periodic orbits

    The toolkit can generate families of periodic orbits by continuation.

    from hiten import System
    from hiten.algorithms import NaturalParameter
    
     system = System.from_bodies("earth", "moon")
     l1 = system.get_libration_point(1)
    
     seed = l1.create_orbit('lyapunov', amplitude_x= 1e-3)
     seed.differential_correction(max_attempts=25)
    
     target_amp = 1e-2 # grow A_x from 0.02 to 0.05 (relative amplitude)
     current_amp = seed.amplitude
     num_orbits = 10
    
     # Step in amplitude space (predictor still tweaks X component)
     step = (target_amp - current_amp) / (num_orbits - 1)
    
     engine = NaturalParameter(
         initial_orbit=seed,
         state=(S.X),     # underlying coordinate that gets nudged
         amplitude=True,  # but the continuation parameter is A_x
         target=(current_amp, target_amp),
         step=step,
         corrector_kwargs=dict(max_attempts=50, tol=1e-13),
         max_orbits=num_orbits,
     )
     engine.run()
    
     family = OrbitFamily.from_engine(engine)
     family.propagate()
     family.plot()
    

    Lyapunov orbit family

    Figure 3 - Family of Earth-Moon (L_1) Lyapunov orbits.

  3. Generating Poincaré maps

    The toolkit can generate Poincaré maps for the centre manifold over various sections.

    from hiten import System
    
    system = System.from_bodies("earth", "moon")
    l1 = system.get_libration_point(1)
    
    cm = l1.get_center_manifold(max_degree=12)
    cm.compute()
    
    pm = cm.poincare_map(energy=0.7, section_coord="q2", n_seeds=50, n_iter=100, seed_strategy="axis_aligned")
    pm.compute()
    pm.plot()
    

    Poincaré map

    Figure 4 - Poincaré map of the centre manifold of the Earth-Moon (L_1) libration point using the (q_2=0) section.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hiten-0.2.5.tar.gz (579.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hiten-0.2.5-py3-none-any.whl (275.3 kB view details)

Uploaded Python 3

File details

Details for the file hiten-0.2.5.tar.gz.

File metadata

  • Download URL: hiten-0.2.5.tar.gz
  • Upload date:
  • Size: 579.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hiten-0.2.5.tar.gz
Algorithm Hash digest
SHA256 85f523189474d32ed7606ecc77be68f8cca8b1bac69bf9fa5726b5e57889f5d5
MD5 992d5e9124f2770fb179f0482798a384
BLAKE2b-256 5feb935ab4304a5cfa9876c34885049095236bc0c9add5205436a79f2c7b0cb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for hiten-0.2.5.tar.gz:

Publisher: python-publish.yml on iamgadmarconi/hiten

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hiten-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: hiten-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 275.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hiten-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b6c5693fe652f0bc84bf75a24397f2a5d8d3dc5441a29cd4df44f6c49eed1a6e
MD5 41d21d707df2504f0fe2d0bfc5e8eb2c
BLAKE2b-256 85fff90ec6ff6e53affe8c39874079de6a5215887c0f009daa5cee3e92f67fa5

See more details on using hashes here.

Provenance

The following attestation bundles were made for hiten-0.2.5-py3-none-any.whl:

Publisher: python-publish.yml on iamgadmarconi/hiten

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page