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
The
ConfigManager
instance associated with this frontend.Absolute path to the configuration file for this frontend.
Absolute path to the default configuration file template for this frontend.
Filesystem directory where the initial conditions object is stored.
The IC object that this frontend is bound to.
Logger instance associated with this frontend.