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: 17 Imported by: 0

README

simulation

Core simulation framework that orchestrates the physics-based rocket flight simulation process.

Notes

  • Implements numerical integration methods (RK4) for flight dynamics
  • Orchestrates system updates in the appropriate sequence
  • Manages simulation time step and advancement
  • Detects and handles flight events (launch, burnout, apogee)
  • Provides interfaces for system integration and data collection
  • Implements different simulation modes (standard, real-time)
  • Ensures consistent physics calculations across simulation systems
  • Handles simulation initialization and termination conditions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Simulation

type Simulation struct {
	CurrentTime float64

	MaxAltitude float64
	MaxSpeed    float64
	// contains filtered or unexported fields
}

Simulation represents a rocket simulation

func NewSimulation

func NewSimulation(cfg *config.Config, log logf.Logger, stores *storage.Stores) (*Simulation, error)

NewSimulation creates a new rocket simulation

func (*Simulation) LoadRocket

func (s *Simulation) LoadRocket(orkData *openrocket.OpenrocketDocument, motorData *thrustcurves.MotorData) error

LoadRocket loads a rocket entity into the simulation

func (*Simulation) Run

func (s *Simulation) Run() error

Run executes the simulation

Jump to

Keyboard shortcuts

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