Gadget4Frontend#

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

Simulation frontend for the Gadget-4 N-body/SPH code.

This class translates Pisces InitialConditions objects into Gadget-4–compatible HDF5 initial condition (IC) files. It manages configuration, validation, preprocessing, and file generation to ensure that particle data and metadata are correctly written in Gadget-4’s expected format.

Methods

__init__(initial_conditions[, ...])

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

generate_initial_conditions(*args, **kwargs)

Generate the necessary initial condition files from 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.