Skip to contents

Extract system state

Usage

dust_system_state(
  sys,
  index_state = NULL,
  index_particle = NULL,
  index_group = NULL
)

Arguments

sys

A dust_system object

index_state

Index of the state to fetch, if you would like only a subset

index_particle

Index of the particle to fetch, if you would like a subset

index_group

Index of the group to fetch, if you would like a subset

Value

An array of system state. If your system is ungrouped (i.e., n_groups = 1 and preserve_group_dimension = FALSE), then this has two dimensions (state, particle). If grouped, this has three dimensions (state, particle, group)

See also

dust_system_set_state() for setting state and dust_system_set_state_initial() for setting state to the system-specific initial conditions.