accretion

package
v0.0.0-...-6d8b98e Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(collection *list.List, fn func(value interface{}, index int64) bool) *list.Element

func FindAfter

func FindAfter(last *list.Element, fn func(value interface{}) bool) *list.Element

func FindByElement

func FindByElement(collection *list.List, fn func(element *list.Element, index int64) bool) *list.Element

func ForEach

func ForEach(collection *list.List, fn func(value interface{}, index int64))

func ForEachElement

func ForEachElement(collection *list.List, fn func(element *list.Element, index int64))

Types

type AccretionProcessor

type AccretionProcessor struct {
	CloudEccentricity float64
	Planets           *list.List
	DustBands         *list.List
	// contains filtered or unexported fields
}

func NewAccretionProcessor

func NewAccretionProcessor(random random.Random) *AccretionProcessor

func (*AccretionProcessor) DistPlanetaryMasses

func (accretionProcessor *AccretionProcessor) DistPlanetaryMasses(stellarMassRatio, stellarLuminosityRatio, innerDust, outerDust, outerPlanetLimit, dustDensityCoefficient float64, doMoons bool)

func (*AccretionProcessor) StellarDustLimit

func (accretionProcessor *AccretionProcessor) StellarDustLimit(stellarMassRatio float64) float64

type DustBand

type DustBand struct {
	InnerEdge   float64
	OuterEdge   float64
	DustPresent bool
	GasPresent  bool
}

Jump to

Keyboard shortcuts

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