4. ForceModel#

class ForceModel#

Bases: ABC

Abstract base class for force models.

Handles: - Late binding of StateArray, base frame, and reference epoch via

  • Common storage for underlying model instances.

  • A uniform interface to check initialization.

Subclasses implement: - _initialize_force_models() - Any problem-specific API (e.g., compute_total_acceleration).

Attributes

base_frame

force_models

state_vector

t0

Methods

initialize_force_models(state_vector[, ...])

Bind this ForceModel instance to a concrete state and frame, then instantiate the internal force model objects.

initialize_force_models(state_vector: StateArray, base_frame: Frame | None = None) None#

Bind this ForceModel instance to a concrete state and frame, then instantiate the internal force model objects.

Must be called before using subclass-specific compute methods.