command
Version:
v0.7.2
Opens a new window with list of versions in this module.
Published: May 6, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
plugins/blackscholes
Provides a stochastic turbulence model inspired by the Black-Scholes (GBM) process and can override the default ISA atmosphere.
Responsibility
- Implements a custom
Model for atmospheric perturbations.
- Registers as a plugin under
config.Setup.Plugins.Paths to replace default pkg/atmosphere.ISAModel.
- Applies Gaussian noise scaled by velocity and time step to simulate turbulence.
Contract
Test Suite Overview
main_test.go covers:
- Default initialization values.
AfterSimStep preserves velocity when σ=0.
- Noise scaling increases with higher σ.
- Deterministic RNG seed for repeatable tests when
cfg==nil.
Decisions & Gotchas
- Override mechanism: Plugins override ISA when loaded before systems instantiate; ensure
Simulation.NewSimulation injects plugin atmosphere.
- Gaussian noise: Additive noise (not multiplicative GBM) ensures zero-intensity behavior.
- Deterministic tests: Uses fixed RNG seed if config is nil.
- Performance: Noise calc is lightweight; can tweak σ via config.
For details on registering plugins and overriding models, see internal/plugin/manager.go and pkg/atmosphere.Model.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.