Documentation
¶
Overview ¶
Package sim provides utilities to simulate fusion processes happening in a supernova.
A typical use case would look like:
var w io.Writer engine := sim.Engine{ NumIters: *nIters, NumCarbons: *nCarbons, Seed: *seed, } err = engine.Run(w)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Population is the default list of nuclei we want to study. Population = []Nucleus{ {A: 12, Z: 6}, {A: 16, Z: 8}, {A: 24, Z: 12}, {A: 28, Z: 14}, {A: 32, Z: 16}, {A: 36, Z: 18}, {A: 40, Z: 20}, {A: 44, Z: 22}, {A: 48, Z: 24}, {A: 52, Z: 26}, {A: 56, Z: 28}, } // HeaderCSV identifies the start of meta-data HeaderCSV = []byte("# snfusion-gen=") )
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct { NumIters int NumCarbons float64 Seed int64 Population []Nucleus // contains filtered or unexported fields }
Engine controls the time evolution of an SN-Fusion simulation.
type Nuclei ¶
type Nuclei []Nucleus
Nuclei is a slice of nuclei, sortable by increasing mass number.
Click to show internal directories.
Click to hide internal directories.