Module simulator

class pyspace.simulator.BarnesSimulator

Simulator using Barnes Hut algorithm

class pyspace.simulator.BruteForceSimulator

Simulator using Brute Force algorithm

class pyspace.simulator.Simulator

Base class for all simulators

reset()

Deletes all existing simulations of the same name

set_data()

Sets what data has to be dumped to the vtk output

Parameters:

**kwargs: {property name = attribute name}

simulate()

Calculates position and velocity of all particles after time ‘total_time’

Parameters:

total_time: double
Total time for simulation
dump_output: bool
Set True if vtk dump is required