Mode

Configuration flags for a Monte Carlo simulation context.

Attributes

Name Type Description
direction string Direction of the simulation flow. One of 'forward' or 'backward'.
energy_loss string Algorithm for energy losses. One of 'csda', 'detailed', 'hybrid' or 'virtual'.
scattering string Algorithm for the scattering. One of 'full_space' or 'longitudinal'.
decay string Algorithm for decays. One of 'decay', 'stable' or 'weight'.

Note

This metatable has no proper constructor. It is instanciated when creating a new simulation Context and linked to the latter. Attributes can be modified in order to configure the simulation context.

See also

Context, Event, Limit, Recorder. State.