Help us shape the future of Go! Take the 2026 Go Developer Survey

options

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: GPL-3.0, GPL-3.0-or-later Imports: 3 Imported by: 0

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 ...

Jump to

Keyboard shortcuts

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