simulation

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

README

simulation

Core simulation engine that manages and executes rocket flight simulations with physics-based modeling.

Notes

  • Orchestrates the entire simulation workflow
  • Initializes and manages the Entity Component System (ECS)
  • Implements numerical integration methods for physics calculations
  • Handles event detection and processing (e.g., motor burnout, apogee)
  • Maintains simulation state and time progression
  • Integrates with storage systems for recording simulation results
  • Provides diagnostic tools for simulation debugging
  • Supports different simulation modes (standard, batch, real-time)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles the overall simulation lifecycle.

func NewManager

func NewManager(cfg *config.Config, log logf.Logger) *Manager

NewManager creates a new simulation manager.

func (*Manager) Close

func (m *Manager) Close() error

func (*Manager) GetSim added in v0.10.0

func (m *Manager) GetSim() *simulation.Simulation

GetSim returns the underlying simulation instance. This is useful for accessing detailed simulation results after a run.

func (*Manager) GetStatus

func (m *Manager) GetStatus() ManagerStatus

func (*Manager) Initialize

func (m *Manager) Initialize(stores *storage.Stores) error

Initialize sets up the simulation manager. It now accepts the storage.Stores instance created externally.

func (*Manager) Run

func (m *Manager) Run() error

Run starts a new simulation if the manager is idle.

type ManagerStatus added in v0.3.6

type ManagerStatus string

ManagerStatus represents the status of the simulation manager.

const (
	StatusIdle         ManagerStatus = "idle"
	StatusInitializing ManagerStatus = "initializing"
	StatusRunning      ManagerStatus = "running"
	StatusCompleted    ManagerStatus = "completed"
	StatusFailed       ManagerStatus = "failed"
	StatusClosed       ManagerStatus = "closed"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL