Documentation
¶
Overview ¶
Package options implement simulation parametrization options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = SimulationOptions{ AntyparticleCorrectionOn: false, NuclearReactionsOn: true, MeanEnergyLoss: 1, MinEnergyLoss: 0.025, ScatteringType: MoliereScattering, EnergyStraggling: VavilovStraggling, FastNeutronTransportOn: true, LowEnergyNeutronCutOff: 0, NumberOfGeneratedParticles: 1000, }
Default ...
Functions ¶
This section is empty.
Types ¶
type EnergyStragglingType ¶
type EnergyStragglingType int64
EnergyStragglingType ...
const ( // NoEnergyStraggling ... NoEnergyStraggling EnergyStragglingType = iota // VavilovStraggling ... VavilovStraggling // GaussianStraggling ... GaussianStraggling )
func (EnergyStragglingType) MarshalJSON ¶
func (s EnergyStragglingType) MarshalJSON() ([]byte, error)
MarshalJSON json.Marshaller implementation.
func (*EnergyStragglingType) UnmarshalJSON ¶
func (s *EnergyStragglingType) UnmarshalJSON(b []byte) error
UnmarshalJSON json.Unmarshaller implementation.
type ScatteringType ¶
type ScatteringType int64
ScatteringType ...
const ( // NoScattering ... NoScattering ScatteringType = iota // GaussianScattering ... GaussianScattering // MoliereScattering ... MoliereScattering )
func (ScatteringType) MarshalJSON ¶
func (s ScatteringType) MarshalJSON() ([]byte, error)
MarshalJSON json.Marshaller implementation.
func (*ScatteringType) UnmarshalJSON ¶
func (s *ScatteringType) UnmarshalJSON(b []byte) error
UnmarshalJSON json.Unmarshaller implementation.
type SimulationOptions ¶
type SimulationOptions struct {
// AntyparticleCorrectionOn ...
// SHIELD doc: APCORR
AntyparticleCorrectionOn bool `json:"antyparticleCorrectionOn"`
// NuclearReactionsOn ...
// SHIELD doc: NUCRE
NuclearReactionsOn bool `json:"nuclearReactionsOn"`
// MeanEnergyLoss ...
// SHIELD doc: DELTAE
MeanEnergyLoss common.Fraction `json:"meanEnergyLoss"`
// MinEnergyLoss ...
// SHIELD doc: DEMIN
MinEnergyLoss float64 `json:"minEnergyLoss"`
// ScatteringType ...
// SHIELD doc: MSCAT
ScatteringType ScatteringType `json:"scatteringType"`
// EnergyStraggling ...
// SHIELD doc: STRAGG
EnergyStraggling EnergyStragglingType `json:"energyStraggling"`
// FastNeutronTransportOn ...
// SHIELD doc: NEUTRFAST
FastNeutronTransportOn bool `json:"fastNeutronTransportOn"`
// LowEnergyNeutronCutOff ...
// SHIELD doc: NEUTRLCUT
LowEnergyNeutronCutOff float64 `json:"lowEnergyNeutronCutOff"`
// NumberOfGeneratedParticles ...
// SHIELD doc: NTSTAT
NumberOfGeneratedParticles int64 `json:"numberOfGeneratedParticles"`
}
SimulationOptions ...
Click to show internal directories.
Click to hide internal directories.