Quick Start Guide
This guide will help you get started with HITEN by walking through some basic examples.
Basic Setup
First, import the necessary modules:
import numpy as np
import matplotlib.pyplot as plt
from hiten import Constants, CenterManifold, HaloOrbit
Setting Up a System
HITEN works with the Circular Restricted Three-Body Problem (CR3BP). Let’s set up the Earth-Moon system:
from hiten import System
system = System.from_bodies("earth", "moon")
print(f"Mass parameter: {system.mu}")
print(f"L1 position: {system.l1_position}")
print(f"L2 position: {system.l2_position}")
Working with Periodic Orbits
Let’s compute a simple periodic orbit near the L1 Lagrange point:
l1 = system.get_libration_point(1)
orbit = l1.create_orbit("halo", amplitude_z=0.2, zenith="southern")
orbit.correct(max_attempts=25)
orbit.propagate(steps=1000)
print(f"Period: {orbit.period}")
print(f"Initial state: {orbit.initial_state}")
orbit.plot()
Next Steps
Now that you have a basic understanding of HITEN, you can:
Explore the Examples for more detailed examples
Read the System Creation and Configuration
Check the System Module for detailed API documentation
For more examples, see the examples/ directory in the source code repository.
Troubleshooting
If you encounter issues:
Check that all dependencies are installed correctly
Verify your Python version (3.9+ required)
Check the GitHub Issues for known problems
Create a new issue if you find a bug
For more help, see the Installation guide or the full System Module documentation.