pylag.simulator module

This module contains classes that can be used to manage the running of PyLag simulations in serial mode. All Simulators inherit from a common Abstract base class Simulator. This structure was introduced in order to make it possible to run different types of simulation (e.g. a trace, or LCS calculation) through configuration switches.

class pylag.simulator.Simulator[source]

Bases: object

Abstract base class for PyLag simulators.

run()[source]

Run a PyLag simulation

class pylag.simulator.TraceSimulator(config)[source]

Bases: Simulator

Trace simulator

Simulator for tracing particle pathlines through time. Trace simulators can perform forward or backward in time integrations.

Parameters

config (ConfigParser) – PyLag configuraton object

run()[source]

Run a simulation

Run a single or multiple integrations according to options set out in the run configuration file.

Return type

None

pylag.simulator.get_simulator(config)[source]

Factory method for PyLag simulators

Parameters

config (ConfigParser) – PyLag configuraton object

Returns

Object of type Simulator

Return type

pylag.simulator.Simulator