Orrery
A GPU-accelerated N-body gravitational simulator
Loading...
Searching...
No Matches
orrery::sim::RunSettings Struct Reference

How far to go, and from what stream of random numbers. More...

#include <orrery/sim/configuration.hpp>

Public Attributes

core::Real timestep = 0
 The interval of simulated time one step covers.
core::Index steps = 0
 How many steps to take.
std::uint64_t seed = 0
 The seed for the sampler that draws the initial conditions.

Friends

bool operator== (const RunSettings &, const RunSettings &)=default

Detailed Description

How far to go, and from what stream of random numbers.

Member Data Documentation

◆ timestep

core::Real orrery::sim::RunSettings::timestep = 0

The interval of simulated time one step covers.

There is no default worth having. The right timestep is a property of the configuration, roughly the shortest orbital period in it divided by a few dozen, and a plausible-looking default would produce plausible looking nonsense for any configuration it did not suit.

◆ seed

std::uint64_t orrery::sim::RunSettings::seed = 0

The seed for the sampler that draws the initial conditions.

Recorded even for the analytic configurations, which draw nothing, so that a configuration file's meaning does not depend on which generator it names.


The documentation for this struct was generated from the following file: