odisseo.time_integration module#
- class odisseo.time_integration.SnapshotData(times: Array = None, states: Array = None, total_energy: Array = None, angular_momentum: Array = None, runtime: float = 0.0, num_iterations: int = 0, current_checkpoint: int = 0)[source]#
Bases:
NamedTupleReturn format for the time integration, when snapshots are requested.
- angular_momentum: Array#
The angular momentum at the times the snapshots were taken.
- current_checkpoint: int#
The current checkpoint, used internally.
- num_iterations: int#
Number of timesteps taken.
- runtime: float#
Alias for field number 4
- states: Array#
The primitive states at the times the snapshots were taken.
- times: Array#
The times at which the snapshots were taken.
- total_energy: Array#
The total energy at the times the snapshots were taken.
- odisseo.time_integration.time_integration(primitive_state: Array, mass: Array, config: SimulationConfig, params: SimulationParams)[source]#
Integrate the Nbody simulation in time. For the options of the time integration see the simulation configuration and the simulation parameters.
- Parameters:
primitive_state – The primitive state array.
config – The simulation configuration.
params – The simulation parameters.
helper_data – The helper data.
- Returns:
Depending on the configuration (return_snapshots, num_snapshots) either the final state of the fluid after the time integration of snapshots of the time evolution