.. _stellar-binary-simulation: ################################ Stellar & Binary-star Simulation ################################ POSYDON: Building Populations with Object-Oriented Design ========================================================= POSYDON provides a fully customizable framework to population synthesis modeling. By leveraging the power and flexibility of object-oriented design, it offers a modular and scalable architecture that enables researchers to customize, extend, and integrate various astrophysical processes with ease. This section delves into the intricacies of the POSYDON hierarchy, outlining the key classes, their interrelationships, and their roles in crafting sophisticated population synthesis models. The Single Star Object ---------------------- The `SingleStar` object contains the stellar properties and its evolutionary history. The single star object is passed to the :class:`~.binary_evol.BinaryStar` class to create a `BinaryStar` object. .. toctree:: :maxdepth: 1 pop_syn/single_star ---- The Binary Star Object ---------------------- The `BinaryStar` object contains the binary properties and its evolutionary history as well as two `SingleStar`. The binary star object is passed to the :class:`~.populations.BinaryPopulation` class to create a population synthesis model. .. toctree:: :maxdepth: 1 :titlesonly: pop_syn/binary_star ---- The Simulation Properties object -------------------------------- POSYDON Population Synthesis Configuration Guide ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The `SimulationProperties` objects contains the POSYDON population synthesis parameter configurations determining the evolution of each binaries in the `BinaryPopulation` class. The following guide will walk you through the configuration parameters of a POSYDON binary population synthesis model. .. toctree:: :maxdepth: 1 pop_syn/population_params The Flow Chart Object ~~~~~~~~~~~~~~~~~~~~~ The flow chart object is the main object that is used to configure the population synthesis model. It is a dictionary that contains all the parameters that are used to configure the model. The flow chart object is passed to the :class:`~.populations.BinaryPopulation` class to create a population synthesis model. .. toctree:: :maxdepth: 1 pop_syn/flow_chart Evolutionary Hooks ~~~~~~~~~~~~~~~~~~ The evolutionary hooks allows the use to execute code between POSYDON steps. The following guide will walk you through the evolutionary hooks that are available in POSYDON. .. toctree:: :maxdepth: 1 pop_syn/custom_hooks User Functions and Modules ~~~~~~~~~~~~~~~~~~~~~~~~~~ To allow users to easier add functions for their own needs without changing the main code, we have a dedicated directory for :samp:`user_modules`. .. toctree:: :maxdepth: 1 pop_syn/user_modules ---- Supernova models ---------------- In POSYDON, we provide a variety of supernova models that can be used to simulate the evolution of binary systems. We have both pre-trained interpolators that can be used to predict the outcome of a supernova event and on-the-fly calculations that can be used to compute the outcome of a supernova event during the simulation. .. toctree:: :maxdepth: 1 pop_syn/supernova_models