GadgetLikeFrontend#

class pisces.extensions.simulation.core.frontends.GadgetLikeFrontend(initial_conditions: InitialConditions, reset_configuration: bool = False, **kwargs)[source]#

Abstract skeleton for Gadget-like simulation frontends.

Methods

__init__(initial_conditions[, ...])

Construct a simulation frontend and attach it to an IC object.

generate_initial_conditions(filename, *args)

Generate Gadget-compatible initial condition files for this frontend.

Attributes

config

The ConfigManager instance associated with this frontend.

config_path

Absolute path to the configuration file for this frontend.

default_configuration_path

Absolute path to the default configuration file template for this frontend.

ic_directory

Filesystem directory where the initial conditions object is stored.

initial_conditions

The IC object that this frontend is bound to.

logger

Logger instance associated with this frontend.

unit_system

Fetch the unit system for this Gadget-like frontend.