ABSTRACT

Modelling star formation and resolving individual stars in numerical simulations of molecular clouds and galaxies is highly challenging. Simulations on very small scales can be sufficiently well resolved to consistently follow the formation of individual stars, whilst on larger scales sinks that have masses sufficient to fully sample the IMF can be converted into realistic stellar populations. However, as yet, these methods do not work for intermediate scale resolutions whereby sinks are more massive compared to individual stars but do not fully sample the IMF. In this paper, we introduce the grouped star formation prescription, whereby sinks are first grouped according to their positions, velocities, and ages, then stars are formed by sampling the IMF using the mass of the groups. We test our grouped star formation method in simulations of various physical scales, from sub-parsec to kilo-parsec, and from static isolated clouds to colliding clouds. With suitable grouping parameters, this star formation prescription can form stars that follow the IMF and approximately mimic the original stellar distribution and velocity dispersion. Each group has properties that are consistent with a star-forming region. We show that our grouped star formation prescription is robust and can be adapted in simulations with varying physical scales and resolution. Such methods are likely to become more important as galactic or even cosmological scale simulations begin to probe sub-parsec scales.

1 INTRODUCTION

Sink particles, first introduced by Bate, Bonnell & Price (1995) and subsequently developed further by Hubber, Walch & Whitworth (2013) and Bleuler & Teyssier (2014), are used to replace high density regions in simulations, as the individual time-steps of the high density gas particles become too small to follow. Sink particles are as such commonly used to represent the sites of star formation in simulations from individual stars or dense cores (e.g. Bate, Bonnell & Bromm 2003; Price & Bate 2008; Bate 2009, 2012; Lomax, Whitworth & Hubber 2015; Boss 2019), small groups of stars (e.g. Girichidis et al. 2011; Federrath & Klessen 2012; Balfour et al. 2015; Bertelli Motta et al. 2016; Ali & Harries 2019; He, Ricotti & Geen 2019; Ntormousi & Hennebelle 2019; Dobbs, Liow & Rieder 2020; Liow & Dobbs 2020; Dobbs & Wurster 2021), up to whole clusters (e.g. Vázquez-Semadeni et al. 2007; Renaud, Bournaud & Duc 2015; Howard, Pudritz & Harris 2018; Bending, Dobbs & Bate 2020; Ali 2021). By replacing high density regions with sink particles, this method ensures a cheaper and more efficient computation. Sink particles are usually decoupled from the physics of hydrodynamics and only interact with each other and gas particles via gravity. They can be used to incorporate physics such as following accretion on to forming protostars (e.g. Bate et al. 1995; Bonnell et al. 1997; Federrath et al. 2010; Dale et al. 2011; Padoan & Nordlund 2011; Stamatellos, Whitworth & Hubber 2012; Latif & Volonteri 2015; Jones & Bate 2018; Kuznetsova, Hartmann & Heitsch 2020), and disc formation (e.g. Stacy, Greif & Bromm 2010; Greif et al. 2012; Hennebelle et al. 2020).

In some smaller length scale and high mass resolution (i.e. low mass per gas particle) simulations (e.g. Bate 2009, 2012; Lomax et al. 2015), sink particles are formed when fragmentation is resolved at the opacity limit (Masunaga & Inutsuka 2000), so these sink particles are well resolved as individual stars. None the less, most hydrodynamical simulations do not have such high mass resolution, so sink particles are often introduced when the Jeans mass criterion is still satisfied (Bate & Burkert 1997), which is usually at much lower densities than the opacity limit for fragmentation. This means that even though each sink is a self-collapsing star-forming region, they represent small groups of stars and not individual protostars. Thus, cluster evolution cannot be studied as well compared to using simulations with resolved star particles (e.g. Bate 2012; Fujii & Portegies Zwart 2015). This scenario also assumes that any stars that are formed are always bound within their parent sinks, which is commonly assumed in many stellar feedback simulations (e.g. Dale et al. 2014; Geen et al. 2016, 2018; Bending et al. 2020). This situation would not capture, for example, the mass segregation of massive stars towards the centre of the larger clusters, or expulsion of stars due to close interactions, which may affect the evolution of clusters.

Instead of resolving sinks as stars, a workaround is to form star particles either using a local star formation efficiency function (Fujii & Portegies Zwart 2015) or a pre-determined initial mass function (IMF; Hu et al. 2017; Lahén et al. 2020; Ballone et al. 2021; Hirai, Fujii & Saitoh 2021; Hislop et al. 2021; Smith 2021). This allows the introduction of star particles in lower resolution simulations. None the less, mass is unable to be conserved locally in Fujii & Portegies Zwart (2015) and Smith (2021), so this can affect the stellar distribution and thus the modelling of stellar feedback, if included, would be inaccurate (Dinnbier & Walch 2020). Even though the method by Ballone et al. (2021) is excellent in conserving global and local stellar properties, it is not developed to form stars dynamically in hydrodynamical simulations and therefore unable to model the dense gas distribution. The star formation method by Hirai et al. (2021) that uses density-independent formulation of smoothed particle hydrodynamics (SPH) for gas hydrodynamics (Saitoh & Makino 2013) can be applied to simulations of various length scales, however it can create gas with unequal masses, which is by design not permitted in some codes that implement standard SPH (e.g. Price & Monaghan 2007; Price et al. 2018). Another way to introduce stars in the simulation is via ‘sink-star’ hybrid particles as demonstrated in Grudić et al. (2021), whereby a protostar is embedded in each sink and only interacts with the simulation through accretion from its sink reservoir and stellar feedback, but this method does not resolve stellar dynamics within the sinks.

A novel way to create stars from sinks in low mass resolution simulations was introduced by Wall et al. (2019) and is hereafter referred to as single star formation. Sink particles are formed using the prescription by Federrath et al. (2010), then each sink particle forms stars that are sampled from the user-input IMF using Poisson sampling (Sormani et al. 2017). The stellar population from each sink is self-consistent, i.e. each stellar population follows the IMF. This method of star formation ensures that stellar dynamical interaction happens not only between stars formed within the same sink but also between stars formed in different sinks. Moreover, local mass conservation is obeyed and the star formation prescription causes minimum disruption to the gas evolution code. None the less, to sample a complete IMF, each sink is expected to have ≳102 M in mass (Wall et al. 2019; Rieder et al. 2021; Smith 2021), which is usually assumed to be a ‘cluster sink’ and only achievable in larger cloud or (sub-)galactic simulations, or simulations with very low mass resolution. As we investigate in this paper, applying the single star formation method on parsec-scale or smaller simulations, in which sinks are usually assumed to be small groups of stars, results in oversampling of low mass stars and undersampling of high mass stars. These simulations usually have a mass per gas particle of about 10−1−10−4 M. Consequently, no sink is massive enough to sample a complete IMF, while the sinks are not small enough to be resolved as individual star either.

In this paper, we extend the method of converting sinks to stars as presented in Wall et al. (2019) and Rieder et al. (2021) to apply to higher mass resolution simulations if sinks cannot be resolved as individual stars, but are individually not large enough to sample a complete IMF. We perform grouped star formation, i.e. we group the sink particles and use the group mass to sample the IMF. We first group the sink particles according to certain length, speed, and time-scales so that each group is approximately a consistent star-forming region. After sampling the IMF using the group mass, stars are placed within the sinks according to the sink masses to optimize the local conservation of mass. This method allows lower mass sinks to be grouped so that the group mass is large enough to sample the IMF robustly. This means that we can afford the formation of smaller size sinks so that the stellar distribution can mimic the dense gas distribution more accurately. The grouped star formation method also allows us to test the limit of the single star formation method.

This paper is sectioned as follows: in Section 2, we lay out the prescription for grouped star formation, and the simulation setup to study this method in different length scales. The results are shown in Section 3. We explore the effect of changing the random seed for star formation and varying the upper star mass limit of the IMF in Section 4. Lastly, we summarize the paper in Section 5.

2 NUMERICAL METHODS

2.1 Methods for group assignment and star formation

In general, the grouped star-forming prescription is divided into two steps: the grouping of sink particles and the conversion of sink particle mass into star particles. The group assignment occurs when new sink particles are formed, while the conversion of sink mass to stars happens whenever there are sink particles in the simulation. The newly formed sinks are first arranged according to their masses in descending order. When the first sink particle is formed in the simulation, it forms a group by itself, since no group existed prior to that. After the first sink, for the a-th newly formed sink particle, we loop through all existing groups and add the new sink to a pre-existing sink group g, if:

  • sink particle a is within a distance dg away from the group g’s centre-of-mass (COM), i.e. |$|\boldsymbol {r}_a - \boldsymbol {r}_{\text {COM},g}| \le d_g$|⁠, where |$\boldsymbol {r}$| is the position vector,

  • sink particle a is within a speed vg of the group g’s centre-of-mass velocity, i.e. |$|\boldsymbol {v}_a - \boldsymbol {v}_{\text {COM},g}| \le v_g$|⁠, where |$\boldsymbol {v}$| is the velocity vector,

  • the creation time of sink particle a is at most τg greater than the oldest member in group g, and

  • the sink particle a is the most bound to group g compared to the other groups.

For ease of reference, henceforth the first three conditions are called the distance, speed, and age criteria, respectively. These criteria are set so that each group is approximated as a self-consistent star-forming region, such that |$d_{\text{g}}$|⁠, |$v_{\text{g}}$|⁠, and |$\tau _{\text{g}}$| are the length, speed, and time-scales of a typical star-forming region, respectively. The speed criterion ensures that any sinks that are likely moving away from the group are not included within the group, while the age criterion makes sure that sinks formed at later times are not grouped together with sinks formed much earlier, even though they could coincidentally be located near each other. The fourth condition is not essential but necessary in case a sink particle satisfies the grouping criteria of more than one group. If the a-th sink particle fails to satisfy all of the above conditions, then it will create a new group by itself, and the process continues for the other sink particles. Each sink particle is assigned to only one group and will be in the same group in subsequent time-steps to keep track of the stellar population in each group.

After the group assignment, a population of stars is introduced for each group of sink particles. The introduction of stars is similar to the single star formation method used in Wall et al. (2019) and Rieder et al. (2021), but instead of taking individual sink mass to sample the whole IMF, we take the total sink mass in the group to do that. In our simulations, we use the Kroupa IMF (Kroupa 2001) to generate a list of stars with a user-defined mass range (a typical choice would be from 10−2 to 102 M). Next, we use the sink particle masses to form a probability distribution list, such that stars are more likely to be allocated at higher mass sink particles. Lastly, each star is given a position |${\boldsymbol r}_{\text{star}}$| and velocity |${\boldsymbol v}_{\text{star}}$| such that
(1)
where |${\boldsymbol r}_{\text{sink}}$| and |${\boldsymbol v}_{\text{sink}}$| are the position and velocity of the allocated sink particle. |${\boldsymbol r}_{\text{random}}$| is the randomly assigned position within the sink particle accretion radius |$r_{\text{acc}}$|⁠, i.e. |$0 \le r_{\text{random}} \le r_{\text{acc}}$| to simulate star formation in dense regions, while |${\boldsymbol v}_{\text{Gaussian}}$| is the velocity sampled from a Gaussian distribution with standard deviation equal to the local velocity dispersion of the original gas particle. It is difficult to assign the true underlying gas velocity to the stellar velocity at birth, as the underlying gas particles are accreted on to sinks before stars are formed, so the velocity field would have been different. None the less, the velocity of stars at birth closely mimics the approximated underlying gas velocity field created using other gas particles, as the median difference in velocity magnitude between stellar velocity and the underlying gas velocity field is ≲10 per cent, and the median difference in angle is ≲π/10 for our models. Our choice of using a Gaussian distribution to add on to |${\boldsymbol v}_{\text{sink}}$| could potentially be modified to include a power-law tail to model the inclusion of runaway stars (Perets & Šubr 2012), however we are not primarily studying such stars here, and this would involve a further arbitrary choice of power-law tail and cut off. We note that stars can still be ejected dynamically through interactions as the cluster evolves. Our choice of position and velocity assignment also ensures that most stars are evolved close to their parent sinks.

For each group, the sink particle masses are reduced according to the total star mass located within them. However, although unlikely, the total stellar mass can be greater than the mass of the sink the stars are located in, due to the probabilistic nature of allocating stars. To overcome the issue of having negative sink mass, the sink mass is set to |$m_{\text{thres}}$| (here, |$m_{\text{thres}}$| is chosen as the mass of a gas particle) when the difference in total star mass and their parent sink is less than |$m_{\text{thres}}$|⁠. This mass difference is accumulated for all sinks in the group and is then reduced from all sinks in the group in proportion to their masses. The mass conservation of the group is guaranteed using this scheme. Lastly, the sink particles shrink in size to keep their creation density constant. In subsequent time-steps, when a new sink joins an existing group, its mass is added to the leftover mass of the sink group. The new total group mass is then used to sample the IMF and make new stars, and finally, the masses of the sinks in the group are reduced as described.

2.2 Simulation setup

We use EKSTER (Rieder & Liow 2021; Rieder et al. 2021) to perform our simulations. EKSTER is a multiphysical code that combines gas hydrodynamics, gravitational dynamics, and stellar evolution via the AMUSE interface (Portegies Zwart et al. 2018). The gravitational dynamics between gas and non-gas (sinks and stars) are coupled using BRIDGE (Fujii et al. 2007). For gas hydrodynamics, we use PHANTOM (Price et al. 2018), a smoothed particle hydrodynamical (SPH) code for astrophysics. Artificial viscosity is included to model shocks (Monaghan 1997). The standard values of artificial viscosity parameters |$\alpha_{\text{min}}^{\text {AV}} = 0.1$|⁠, |$\alpha_{\text{max}}^{\text {AV}} = 1$|⁠, and |$\beta ^{\text {AV}} = 2$| are used (Morris & Monaghan 1997) except for Section 2.3.2 where higher values are used. PETAR (Wang et al. 2020) is used for the fast calculation of gravitational dynamics between and among sink particles and stars. Lastly, we use SEBA (Portegies Zwart & Verbunt 1996), a parametric code to calculate stellar evolution. Sink particles are introduced to replace high density gas particles, following the prescription used in Bate et al. (1995) and Price et al. (2018), when the gas density exceeds the sink creation density |$\rho _{\text{sink}}$|⁠. Depending on the system studied, we adjust |$\rho _{\text{sink}}$| such that the minimum Jeans mass criterion is satisfied (Bate & Burkert 1997). Sinks are allowed to accrete mass.

2.3 Initial conditions

We test the grouped star formation prescription on simulations of different length scales and mass resolutions as shown in Fig. 1. The aim is to demonstrate that grouped star formation method is needed at the mass resolution regime in which each sink is usually considered as a small group of stars. In each comparison described below, we vary the grouping parameters as described in Section 2.1. The ‘no grouping’ case, i.e. |$d_{\text{g}} = v_{\text{g}} = \tau _{\text{g}} = 0$|⁠, is equivalent to the single star formation prescription used in Wall et al. (2019) and Rieder et al. (2021). On the other hand, the ‘all grouping’ case simply groups all sinks as one, and we achieve this by setting |$d_{\text{g}}$|⁠, |$v_{\text{g}}$|⁠, and |$\tau _{\text{g}}$| unphysically large, usually |$d_{\text{g}} = 1000$| pc, |$v_{\text{g}} = 1000$| km s−1, and |$\tau _{\text{g}} = t_{\text{ff}}$| if the period of interest is within a free-fall time, or |$\tau _{\text{g}} = 1000 \ t_{\text{ff}}$| otherwise. The main other settings that we explore are the ‘standard’ case, i.e. |$d_{\text{g}} = 1$| pc, |$v_{\text{g}}$| = 1 km s−1, and |$\tau _{\text{g}}=t_{\text{ff}}$|⁠, where |$t_{\text{ff}}$| is the free-fall time-scale of the system, and the ‘turbulent’ case, i.e. the same as the‘standard’ case except with |$v_{\text{g}}$| equals to the initial turbulent speed (coincidentally, it is approximately 3 km s−1 in most of our different comparisons). The standard case is chosen as such because they are convenient and appropriate choices for the length and speed scales of a typical star-forming region. Besides, the mass estimate for the group, in this case, |${\sim}d_{\text{g}} v_{\text{g}}^2/G \approx 230$| M turns out to be the same order of magnitude of the mass expected to sample a complete IMF (Wall et al. 2019; Smith 2021). We also test other grouping parameters specific to individual comparisons and they are explained in detail in the subsequent subsections. We list the different models we use and the different grouping parameters for each in Table 1.

The relationship of length scale and mass resolution is shown for the original simulations and models compared in this paper (see the text for details of different simulations presented). The plot is roughly divided into three regions by the mass thresholds 2 × 10−5 M⊙and 1 M⊙ which show the nature of sink particle (bold text) in the simulations. Resolution is traditionally defined as the inverse of mass per gas particle.
Figure 1.

The relationship of length scale and mass resolution is shown for the original simulations and models compared in this paper (see the text for details of different simulations presented). The plot is roughly divided into three regions by the mass thresholds 2 × 10−5 Mand 1 M which show the nature of sink particle (bold text) in the simulations. Resolution is traditionally defined as the inverse of mass per gas particle.

Table 1.

List of the models performed. The first three columns after the model names are the grouped star formation parameters: grouping distance |$d_{\text{g}}$|⁠, grouping speed |$v_{\text{g}}$|⁠, and grouping age |$\tau _{\text{g}}$| in terms of free-fall time |$t_{\text{ff}}$|⁠. The next two columns are the number of SPH particles |$N_{\text{SPH}}$|⁠, and gravitational softening length ϵ. The subsequent columns show the statistics of the models: number of sink groups |$N_{\text{sinks,g}}$|⁠, number of star groups |$N_{\text{stars,g}}$|⁠, median star group mass |$\tilde {m}_{\text{stars,g}}$|⁠, total sink mass after star formation |$M_{\text{sinks}}$|⁠, total star mass |$M_{\text{stars}}$|⁠, and star mass fraction f, i.e. the fraction of star mass over the total non-gas mass. The first part is the comparison with Bate (2012) at the free-fall time of 0.19 Myr, the second part is the comparison with Liow & Dobbs (2020) at 1.75 Myr, while the third part is the comparison with Jaffa et al. (in preparation) at 20 Myr. For the last part, i.e. comparison with Rieder et al. (2021), the time considered is listed beside the models.

Model|$d_{\text{g}}$||$v_{\text{g}}$||$\tau _{\text{g}}$||$N_{\text{SPH}}$|ϵ|$N_{\text{sinks,g}}$||$N_{\text{stars,g}}$||$\tilde {m}_{\text{stars,g}}$||$M_{\text{sinks}}$||$M_{\text{stars}}$|f
(pc)(km s−1)|$t_{\text{ff}}$|(106)(pc)(M)(M)(M)
B1235019.19
B12NoGrouping00050.0011126690.0221.591.130.050
B12Standard11150.00141270.3911.0911.010.498
B12Turbulent13150.00128210.4510.7214.610.576
B12AllGrouping10001000150.0011117.305.2817.300.766
B12NoSoftening100010001501113.709.2313.700.597
B12LowResolution10001000110.0011123.160.3023.160.987
L2050.011.01 × 104
L20NoGrouping00010.01181717422.681.01 × 1034.91 × 1030.708
L20Standard11110.018087604.841.33 × 1035.50 × 1030.804
L20Turbulent13110.0119018721.627.11 × 1026.49 × 1030.901
L20AllGrouping10001000110.01116.39 × 1030.346.39 × 1030.999
J+1∼0.018.32 × 103
J+NoGrouping00020820428.867.46 × 1030.896
J+Standard11116015934.077.81 × 1030.939
J+Turbulent131858238.608.04 × 1030.967
J+NoAgeCheck11100015515136.987.72 × 1030.928
J+FreeFall100010001335.49 × 1028.28 × 1030.995
J+AllGrouping100010001000118.32 × 1038.32 × 1030.999
R+(1.80 Myr)000≈501981982.75 × 1027.59 × 1026.05 × 1040.988
R+(2.40 Myr)000≈507137132.39 × 1022.62 × 1031.93 × 1050.987
Model|$d_{\text{g}}$||$v_{\text{g}}$||$\tau _{\text{g}}$||$N_{\text{SPH}}$|ϵ|$N_{\text{sinks,g}}$||$N_{\text{stars,g}}$||$\tilde {m}_{\text{stars,g}}$||$M_{\text{sinks}}$||$M_{\text{stars}}$|f
(pc)(km s−1)|$t_{\text{ff}}$|(106)(pc)(M)(M)(M)
B1235019.19
B12NoGrouping00050.0011126690.0221.591.130.050
B12Standard11150.00141270.3911.0911.010.498
B12Turbulent13150.00128210.4510.7214.610.576
B12AllGrouping10001000150.0011117.305.2817.300.766
B12NoSoftening100010001501113.709.2313.700.597
B12LowResolution10001000110.0011123.160.3023.160.987
L2050.011.01 × 104
L20NoGrouping00010.01181717422.681.01 × 1034.91 × 1030.708
L20Standard11110.018087604.841.33 × 1035.50 × 1030.804
L20Turbulent13110.0119018721.627.11 × 1026.49 × 1030.901
L20AllGrouping10001000110.01116.39 × 1030.346.39 × 1030.999
J+1∼0.018.32 × 103
J+NoGrouping00020820428.867.46 × 1030.896
J+Standard11116015934.077.81 × 1030.939
J+Turbulent131858238.608.04 × 1030.967
J+NoAgeCheck11100015515136.987.72 × 1030.928
J+FreeFall100010001335.49 × 1028.28 × 1030.995
J+AllGrouping100010001000118.32 × 1038.32 × 1030.999
R+(1.80 Myr)000≈501981982.75 × 1027.59 × 1026.05 × 1040.988
R+(2.40 Myr)000≈507137132.39 × 1022.62 × 1031.93 × 1050.987
Table 1.

List of the models performed. The first three columns after the model names are the grouped star formation parameters: grouping distance |$d_{\text{g}}$|⁠, grouping speed |$v_{\text{g}}$|⁠, and grouping age |$\tau _{\text{g}}$| in terms of free-fall time |$t_{\text{ff}}$|⁠. The next two columns are the number of SPH particles |$N_{\text{SPH}}$|⁠, and gravitational softening length ϵ. The subsequent columns show the statistics of the models: number of sink groups |$N_{\text{sinks,g}}$|⁠, number of star groups |$N_{\text{stars,g}}$|⁠, median star group mass |$\tilde {m}_{\text{stars,g}}$|⁠, total sink mass after star formation |$M_{\text{sinks}}$|⁠, total star mass |$M_{\text{stars}}$|⁠, and star mass fraction f, i.e. the fraction of star mass over the total non-gas mass. The first part is the comparison with Bate (2012) at the free-fall time of 0.19 Myr, the second part is the comparison with Liow & Dobbs (2020) at 1.75 Myr, while the third part is the comparison with Jaffa et al. (in preparation) at 20 Myr. For the last part, i.e. comparison with Rieder et al. (2021), the time considered is listed beside the models.

Model|$d_{\text{g}}$||$v_{\text{g}}$||$\tau _{\text{g}}$||$N_{\text{SPH}}$|ϵ|$N_{\text{sinks,g}}$||$N_{\text{stars,g}}$||$\tilde {m}_{\text{stars,g}}$||$M_{\text{sinks}}$||$M_{\text{stars}}$|f
(pc)(km s−1)|$t_{\text{ff}}$|(106)(pc)(M)(M)(M)
B1235019.19
B12NoGrouping00050.0011126690.0221.591.130.050
B12Standard11150.00141270.3911.0911.010.498
B12Turbulent13150.00128210.4510.7214.610.576
B12AllGrouping10001000150.0011117.305.2817.300.766
B12NoSoftening100010001501113.709.2313.700.597
B12LowResolution10001000110.0011123.160.3023.160.987
L2050.011.01 × 104
L20NoGrouping00010.01181717422.681.01 × 1034.91 × 1030.708
L20Standard11110.018087604.841.33 × 1035.50 × 1030.804
L20Turbulent13110.0119018721.627.11 × 1026.49 × 1030.901
L20AllGrouping10001000110.01116.39 × 1030.346.39 × 1030.999
J+1∼0.018.32 × 103
J+NoGrouping00020820428.867.46 × 1030.896
J+Standard11116015934.077.81 × 1030.939
J+Turbulent131858238.608.04 × 1030.967
J+NoAgeCheck11100015515136.987.72 × 1030.928
J+FreeFall100010001335.49 × 1028.28 × 1030.995
J+AllGrouping100010001000118.32 × 1038.32 × 1030.999
R+(1.80 Myr)000≈501981982.75 × 1027.59 × 1026.05 × 1040.988
R+(2.40 Myr)000≈507137132.39 × 1022.62 × 1031.93 × 1050.987
Model|$d_{\text{g}}$||$v_{\text{g}}$||$\tau _{\text{g}}$||$N_{\text{SPH}}$|ϵ|$N_{\text{sinks,g}}$||$N_{\text{stars,g}}$||$\tilde {m}_{\text{stars,g}}$||$M_{\text{sinks}}$||$M_{\text{stars}}$|f
(pc)(km s−1)|$t_{\text{ff}}$|(106)(pc)(M)(M)(M)
B1235019.19
B12NoGrouping00050.0011126690.0221.591.130.050
B12Standard11150.00141270.3911.0911.010.498
B12Turbulent13150.00128210.4510.7214.610.576
B12AllGrouping10001000150.0011117.305.2817.300.766
B12NoSoftening100010001501113.709.2313.700.597
B12LowResolution10001000110.0011123.160.3023.160.987
L2050.011.01 × 104
L20NoGrouping00010.01181717422.681.01 × 1034.91 × 1030.708
L20Standard11110.018087604.841.33 × 1035.50 × 1030.804
L20Turbulent13110.0119018721.627.11 × 1026.49 × 1030.901
L20AllGrouping10001000110.01116.39 × 1030.346.39 × 1030.999
J+1∼0.018.32 × 103
J+NoGrouping00020820428.867.46 × 1030.896
J+Standard11116015934.077.81 × 1030.939
J+Turbulent131858238.608.04 × 1030.967
J+NoAgeCheck11100015515136.987.72 × 1030.928
J+FreeFall100010001335.49 × 1028.28 × 1030.995
J+AllGrouping100010001000118.32 × 1038.32 × 1030.999
R+(1.80 Myr)000≈501981982.75 × 1027.59 × 1026.05 × 1040.988
R+(2.40 Myr)000≈507137132.39 × 1022.62 × 1031.93 × 1050.987

2.3.1 Sub-parsec-scale isolated cluster simulation

We first test our sink method on a simulation of cluster formation in a 500 M isolated cloud. We use the simulation of Bate (2012) who perform a 35 million particle (mass per gas particle |$m_{\text{SPH}}\approx 1.4 \times 10^{-5}$| M) simulation which is able to resolve star formation down to a mass of ∼10−2 M. We choose this simulation, which includes radiative transfer to model stellar heating (Whitehouse, Bate & Monaghan 2005), rather than Bate (2009), even though we do not include this additional physics. This is partly because the data were readily available, and also because with the radiative feedback, the IMF produced is much closer to a Kroupa IMF which matches our choice of IMF. We describe the initial conditions below. The aim of our simulations is to reproduce the properties of the stars in the original simulation of Bate (2012), but using a gas resolution much lower than the original simulation. We then compare the results from Bate (2012) with our lower resolution simulations performed with EKSTER. Our initial conditions are the same except for the number of particles. The cloud has a mass of 500 M and a radius of 0.404 pc initially, which gives an initial cloud density of 1.2 × 10−19 g cm−3 and a spherical free-fall time of 0.19 Myr. We apply exactly the same velocity field as Bate (2012), which has a velocity dispersion of ≈3 km s−1.

Bate (2012) started with an initial temperature of 10.3 K and used SPH with radiative transfer in the flux-limited diffusion approximation (Whitehouse et al. 2005) in their simulation. As their sink particles are formed during the second collapse of protostellar cores (Masunaga & Inutsuka 2000), they are well resolved as stars and brown dwarfs. On the other hand, we simply adopt the isothermal equation of state at a temperature of 10 K as our chosen |$\rho _{\text{sink}} = 10^{-16}$| g cm−3 is within the first phase of protostellar collapse, which can be modelled as isothermal collapse (Masunaga, Miyama & Inutsuka 1998; Masunaga & Inutsuka 2000). Our resolution is |$N_{\text{SPH}} = 5 \times 10^6$| (⁠|$m_{\text{SPH}}=10^{-4}$| M) as opposed to |$N_{\text{SPH}} = 3.5 \times 10^7$| (⁠|$m_{\text{SPH}} \approx 1.4 \times 10^{-5}$| M) used in Bate (2012), however our resolution and |$\rho _{\text{sink}}$| allow us to resolve the Jeans mass criterion (Bate & Burkert 1997). Unless otherwise stated, our gravitational softening length ϵ in this comparison is set at 0.001 pc ≈200 AU. In Bate (2012), gravitational softening between sink particles is turned off. The initial accretion radius of sink particles |$r_{\text{acc}} = 0.001$| pc, the same order of magnitude of the Jeans length in this system.

Based on Bate (2012), we set the grouping parameters described in 2.1 as follows. For the ‘standard’ case, |$d_{\text{g}} = 1$| pc and |$v_{\text{g}} = 1$| km s−1 are chosen as described. For the ‘turbulent’ case, the grouping parameters are the same as the ‘standard’ case except for |$v_{\text{g}} = 3$| km s−1, which is approximately the turbulent velocity dispersion of this gas cloud. The single star formation method is exactly the same as setting both |$d_{\text{g}}$| and |$v_{\text{g}}$| to zero, i.e. the ‘no grouping’ case, as these settings prevent the formation of any groups at all. We also consider the opposite extreme, i.e. the ‘all grouping’ case by setting both |$d_{\text{g}}$| and |$v_{\text{g}}$| to unphysically large values of 1000 pc and 1000 km s−1 respectively to group all the sinks into one single group.

We include the age criterion |$\tau _{\text{g}} = t_{\text{ff}}$| but in this comparison, this check is irrelevant as we only compare up to the free-fall time, so the sink particles and stars in all our simulations are definitely formed within that time-scale. Lastly, we also perform additional simulations with lower resolution and with no gravitational softening separately. The ‘low resolution’ model has |$N_{\text{SPH}}=10^6$| (⁠|$m_{\text{SPH}} = 5 \times 10^{-4}$| M). This model is used to check whether our star formation method works in a lower resolution of the same length scale. For the ‘no softening’ model, the gravitational softening length ϵ is turned off but the gas particle softening length remains at 0.001 pc, the same as in other simulations in this comparison. This setting of ϵ < gas smoothing length is cautioned by Bate & Burkert (1997) as fragmentation at scales less than the gas smoothing length can be artificially induced. However, we run this model to investigate the dynamics of stars formed from our star formation prescription. The details of the models for this comparison are listed in the upper section of Table 1.

For star formation, we sample stellar masses from the Kroupa IMF (Kroupa 2001). In Section 3.1, we take a mass range from 0.01 M to 100 M which extends down to the minimum mass of stars resolved in Bate (2012). However since 100 M is large compared to the typical group size in the models in this comparison, in Section 4.2 we also test taking a mass range from 0.01 M to the individual mass of the group.

2.3.2 Parsec-scale cloud–cloud collision simulation

A cloud–cloud collision simulation from Liow & Dobbs (2020) is chosen to test our star formation method on larger scales with higher sink masses. In this case, individual stars are not resolved, rather each sink is simply a small group of stars. Another difference compared to Bate (2012) is that in this larger scale simulation, sinks form at much wider distances from each other. The initial conditions are described in Liow & Dobbs (2020) (known as the model with low collision speed, standard density, and low turbulence) but we also describe them again below.

Two ellipsoidal clouds of mass 5 × 104 M and minor radii of 7 pc collide along the major radius of 16 pc. This gives an initial cloud density of 1.03 × 10−21 g cm−3 and a spherical free-fall time of 2.07 Myr. In the original simulation, the resolution is 5 × 106 (⁠|$m_{\text{SPH}} = 0.02$| M), however the resolution we use is 106 SPH particles (⁠|$m_{\text{SPH}} = 0.1$| M). The gas clouds are initially about 0.3 pc apart, and are subjected to two separate turbulent fields. In this setup, the turbulence has a velocity dispersion of 2.5 km s−1, and the clouds are given a relative velocity of 10 km s−1. We choose to compare our models at |$t_{10{{\ \rm per\ cent}}}$|⁠, the time when 10 per cent of the gas mass is converted to sink particles, as the sink particle distribution shows multiple star-forming regions, notably the central cluster at the collision site, and the filamentary structures that are in the parts of the clouds yet to collide. The ongoing collision also gives multiple velocity components to be considered. The external forces exerted by the colliding clouds cancel out at the collision site, giving a zero net momentum for the star-forming regions at the collision site, whilst sinks away from the area where the clouds are colliding are still moving at about 10 km s−1 relative to each other.

In the original model by Liow & Dobbs (2020), sinks are formed at |$\rho _{\text{sink}} = 10^{-18}$| g cm−3 which was typically too low for them to be considered individual stars but enough to satisfy the Jeans mass criterion (Bate & Burkert 1997). Here, we use the same |$\rho _{\text{sink}}$| as our sink creation density. In this comparison, we also set the artificial viscosity parameter |$\beta ^{\text {AV}} = 4$| as for the original simulation to minimize the effect of particle penetration in high speed shocks (Price & Federrath 2010). Similar to the original model, the gravitational softening length and the initial accretion radius |$r_{\text{acc}}$| are set to 0.01 pc. We consider the ‘no grouping’, ‘standard’, ‘turbulent’ (with |$v_{\text{g}} = 3$| km s−1, approximately the initial turbulent speed of the clouds), and ‘all grouping’ cases, similar to the comparison described in Section 2.3.1. The details of the models in this comparison are listed in the second part of Table 1.

In this comparison, we choose a mass range of 0.5–100 M, as it roughly reflects the mass distribution of sinks from the original simulation at |$t_{10{{\ \rm per\ cent}}}$|⁠, which is also our chosen time-scale for comparison. Unfortunately, unlike the models described in Section 2.3.1, we cannot resolve the full IMF with larger scale simulations, so we simply compare our models with lower resolution to the original simulation. We could, however, potentially choose a lower stellar mass limit for our model (see Buckner et al., in preparation, which has a lower stellar mass limit of 0.01 M).

2.3.3 Parsec-scale isolated cluster simulation

We adopt the grouped star formation method to a parsec-scale, gravitational collapse of an isolated cloud simulation originally performed by Jaffa et al. (in preparation). We do not rerun the simulation, rather here we post-process the results. The mass and radius of the cloud are 104 M and 10 pc, respectively, which gives an initial cloud density of 1.61 × 10−22 g cm−3 and a free-fall time of 5.24 Myr. The resolution used in the simulation is 106 SPH particles, which corresponds to |$m_{\text{SPH}} = 0.01$| M.

The cloud has an initially uniform density and a turbulent velocity field, with a natural mix of compressive and solenoidal modes and a power spectrum of P(k) ∝ k−4. The turbulence is allowed to decay as the cloud collapses to form filamentary structures, which merge to feed a central cluster with some smaller structures around it. Sink particles are inserted when gas reaches a density of 10−18 g cm−3, with some further checks such as proximity to other sinks (see Hubber, Rosotti & Booth 2018). The gravitational softening applied to interactions between two sink particles is the mean of their sink radii, which are set to their SPH smoothing length, h ∼ 10−2 pc. Sinks continue to accrete but are not allowed to merge, and by 10 Myr more than 60 per cent of the gas has been turned into sink particles. The simulation is terminated at 20 Myr, but we note that some important physical processes such as feedback are not modelled in this simulation so the later evolution of the cloud and cluster may be affected by this. The full details of the simulation can be found in Jaffa et al. (in preparation).

We use this simulation partly to test the grouping age criteria. In the simulations described so far in Sections 2.3.1 and 2.3.2, the age criteria is not relevant because the stars form in a short time-scale, within a free-fall time. This simulation however is run for 20 Myr |${\approx}3.5 t_{\text{ff}}$|⁠, and so provides a good test of the age criteria. Although the resolution is not that high, the 20 Myr time-scale means the calculation still required considerable computational resources to run, and so we do not repeat the calculation with different grouping parameters, rather we apply these post process. Therefore, instead of forming stars dynamically, we apply a modified grouped star formation prescription on the sinks from the original simulation at specific snapshots to form stars, keeping track of the group indices assigned to the groups at previous snapshots. Unfortunately, this means that we cannot analyse the velocity dispersion or the stellar distribution, since we do not follow the dynamics, but we can still consider the mass functions and properties of the groups. Similar to our previous comparisons, we choose models with different grouping parameters to represent ‘no grouping’, ‘standard’, ‘turbulent’ (⁠|$v_{\text{g}} = 3$| km s−1, approximately the turbulent velocity dispersion of the cloud), and ‘all grouping’ cases. Here, the ‘all grouping’ case sets all three grouping parameters (⁠|$d_{\text{g}}, v_{\text{g}}$|⁠, and |$\tau _{\text{g}}$|⁠) unphysically large. To investigate the age criteria more robustly, we include the ‘no age check’ model, whereby the grouping parameters are the same as the ‘standard’ model except that |$\tau _{\text{g}}$| is set unphysically high to prevent triggering this condition check. We also include the ‘free-fall’ model, whereby the grouping parameters are the same as the ‘all grouping’ model except that |$\tau _{\text{g}} = t_{\text{ff}} = 5.24$| Myr, since our comparison is up to 20 Myr (⁠|${\approx}3.5 t_{\text{ff}}$|⁠). In this comparison, we use the Kroupa IMF with mass range 0.5–100 M. The parameters of the models are listed in the third part of Table 1.

2.3.4 Kiloparsec-scale spiral arm simulation

For completeness, we take the stars from the spiral arm simulation by Rieder et al. (2021) and study the mass functions. This simulation models star cluster formation along a section of spiral arm. The simulation (labelled standard-arm-1 in Rieder et al. 2021) models a region of dimensions 600 pc, which includes a number of molecular clouds. The mass resolution is |$m_{\text{SPH}}=1$| M.

We do not rerun this simulation because in the original simulation, Rieder et al. (2021) uses the single star formation method to form stars. If the IMF of the stars in the original simulation is already close to a Kroupa IMF, then we can assume that the single star formation method is suitable for simulations of this length scale and mass resolution, or larger. In the original simulation, the Kroupa IMF is used as the input IMF, and the chosen mass range is 0.1 to 100 M.

3 RESULTS AND DISCUSSION

3.1 Sub-parsec-scale isolated cluster simulation

Fig. 2 shows the IMF of the models to compare with Bate (2012), i.e. model B12, at the free-fall time of 0.19 Myr. The IMF of B12 is similar to the Kroupa IMF. The ‘no grouping’ model (orange) that uses the single star formation to form stars is unable to sample a complete Kroupa IMF. The average mass reservoir to form stars, i.e the average sink mass, is 21.59 M/1126 = 0.02 M, meaning not many stars above this threshold are expected to form, causing an oversampling of low-mass stars and undersampling of high mass stars. Moreover, as shown in Table 1, the star mass fraction, defined as the fraction of star mass over the total of sink and star masses, is f = 0.05, so most of the mass in each sink is unable to be converted to stars. The value of f is low because for a population of stars to be introduced for each group (in this model, each group is a sink), the group mass has to exceed a mass threshold sampled from the Kroupa IMF. This is difficult for this model because the probability of forming a star less than 0.02 M is only 7 per cent. We discuss setting the upper star mass limit to be equal to the group mass as a potential improvement to produce a higher f in Section 4.2.

The IMF of our models are compared with that of Bate (2012), labelled as B12, at the free-fall time of 0.19 Myr. The markers are the maximum mass bin in the respective models. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.
Figure 2.

The IMF of our models are compared with that of Bate (2012), labelled as B12, at the free-fall time of 0.19 Myr. The markers are the maximum mass bin in the respective models. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.

With grouped star formation of varying degrees, the maximum star mass bin (markers in Fig. 2) is greatly increased. The ‘standard’ model (green) with |$d_{\text{g}}=1$| pc and |$v_{\text{g}}=1$| km s−1 is still unable to sample the full Kroupa IMF. We find that by setting |$v_{\text{g}}$| to 3 km s−1, about the initial root-mean-square turbulent velocity of the cloud, while keeping the same |$d_{\text{g}}$|⁠, the ‘turbulent’ model (red) can sample the full Kroupa IMF like the ‘all grouping’ model (purple) that collects all sinks as one giant group, simply because setting the grouping parameters that match the length scale and turbulence of the initial cloud approximately covers the whole parameter space of this system. In all the models, by summing the mass of sinks and stars, we see that the total mass differs between models. However, the stellar mass in the ‘all grouping’ case most closely matches that of the B12 model, whilst the ‘no grouping’ model (single star formation) massively underproduces stellar mass as compared to the original B12 calculation.

We included two more models to test the effect of changing gravitational softening length and resolution on the IMF. The ‘no softening’ model (brown) has similar IMF as the ‘all grouping’ model simply because the total sink mass of the system is similar regardless of the stellar dynamics. Similarly, the ‘low resolution’ model (pink) is also able to sample a complete Kroupa IMF like the ‘all grouping’ model, showing the robustness of the grouped star formation at different resolutions.

Fig. 3 shows the stellar distributions of the ‘no grouping’, ‘standard’, ‘turbulent,’ and ‘all grouping’ models. The stars in the ‘no grouping’ model (top left-hand panel), formed from the single star formation method, are less visible due to their low mass. The same can be said for the ‘standard’ model (top right-hand panel), even though we can observe that the low mass stars are generally located at the region stars from B12 are expected. The ‘turbulent’ model (bottom left-hand panel) contains massive stars and reproduces the spatial stellar mass distribution reasonably well. Lastly, we note the ‘all grouping’ model (bottom right-hand panel) that groups all sinks together can form stars that are the most massive among all models, but the stellar distribution of this model deviates from that of B12 the most. On scales of around ∼10−2 pc, mass is not conserved locally in this model. However, it is not necessarily important to model the exact spatial distribution of stars in a cluster in larger scale simulations where the minimum resolvable length scale may be >>10−2 pc. The ‘no softening’ and ‘low resolution’ models are not shown in Fig. 3, however in terms of the degree of grouping, they are similar to the ‘all grouping’ model but with different gravitational softening or resolution, so they are similar to the ‘all grouping’ model in terms of their stellar distribution. In summary, the models that group the most sinks like the ‘turbulent’ or ‘all grouping’ models produce IMFs which match the IMF of B12. This is not surprising since the whole system is so small that it takes the whole region to sample the IMF. Thus, grouping most (which happens in the ‘turbulent’ model where grouping parameters approximately equal to the scales of the cloud) or all the sinks together (which happens in the ‘all grouping’ model) works best, and the single star formation method is unsuitable. Grouping most or all the sinks together means that the spatial distribution matches that of B12 less well, but this is less concerning in simulations where the gas resolution is low as compared to the size of the clusters.

The stars from the ‘no grouping’, ‘standard’, ‘turbulent’, and ‘all grouping’ models (white) are compared against the sinks from Bate (2012) (blue) at the free-fall time of 0.19 Myr. The marker radius is proportional to the particle mass. The gas distribution from the original simulation is set as background for reference, as the gas distribution from the individual models are visually identical to the original one.
Figure 3.

The stars from the ‘no grouping’, ‘standard’, ‘turbulent’, and ‘all grouping’ models (white) are compared against the sinks from Bate (2012) (blue) at the free-fall time of 0.19 Myr. The marker radius is proportional to the particle mass. The gas distribution from the original simulation is set as background for reference, as the gas distribution from the individual models are visually identical to the original one.

Fig. 4 shows the cumulative distribution velocity function of the stars for all our models as compared to that of B12 (blue). We included a Gaussian distribution (black dashed line) with arbitrary mean of 1.6 km s−1 and standard deviation of 0.4 km s−1 to show that all our star formation models have velocity dispersion that is approximately Gaussian (with varying means and variances), as expected given how velocity is assigned to the stars (Wall et al. 2019). The models with a greater degree of grouping have velocity dispersion closer to B12, but even with models that group all sinks as one like the ‘all grouping’ model (purple), they are still visually different from the velocity dispersion of B12. We use the Kolmogorov−Smirnov (KS) test with permutation (Præstgaard 1995) to test the hypothesis of equal distribution between the velocity dispersion of our models with that of B12. With a significance level of 0.01, the result shows that all models except the ‘no softening’ model (brown) have velocity dispersions that are different from that of B12. Statistically, this means that the stellar dynamics of the ‘no softening’ model and the original simulation of B12 could be similar, which would likely be caused by the similar stellar mass distribution and the fact that both have gravitational softening turned off. With gravitational softening, dynamical interactions between the stars are not captured properly, and the velocities of the stars will be lower as a result. We performed an additional no softening model but with grouping parameters the same as the ‘standard’ model (not shown here) to confirm that the mass distribution also plays a role in determining the velocity dispersion as expected.

The cumulative velocity distribution of the models are shown are compared with that of Bate (2012) at 0.19 Myr. The black dashed line is the Gaussian cumulative distribution function with mean 1.6 km s−1 and standard deviation of 0.4 km s−1. It is not a fit and is included solely for comparison.
Figure 4.

The cumulative velocity distribution of the models are shown are compared with that of Bate (2012) at 0.19 Myr. The black dashed line is the Gaussian cumulative distribution function with mean 1.6 km s−1 and standard deviation of 0.4 km s−1. It is not a fit and is included solely for comparison.

Fig. 5 shows the mass and age spread of the star groups (recall that sinks are first grouped together, then stars form in each group) for the ‘no grouping’, ‘standard’, ‘turbulent’, and ‘all grouping’ models at the free-fall time of 0.19 Myr. The models are arranged in increasing degree of grouping, which can be roughly deduced from the star mass fraction f shown in Table 1. In general, as the degree of grouping increases, we see an increase in the median mass of star groups. For the ‘no grouping’ model, a great proportion of mass is ‘trapped’ in the sinks and is unable to form stars, which causes the low star group masses. We do not see a clear trend in the group age spread in our models in comparison of this length and time-scales. There is no age spread for the groups in the ‘no grouping’ model as they are single-member groups. On the other hand, for the ‘all grouping’ model, the age spread of the star group simply shows the duration between the first star formation and the current free-fall time. We also analyse the virial radius and the velocity dispersion of the star groups, and they simply reflect the length scale (∼10−2 pc as shown in Fig. 3) and speed scale (≈3 km s−1, same as the turbulence of the cloud) of the star groups.

The group mass and age spread of the star groups for each model at the free-fall time of 0.19 Myr are shown. For each box, the orange line is the median group mass, the length of the box is the interquartile range, and the whiskers span the whole range.
Figure 5.

The group mass and age spread of the star groups for each model at the free-fall time of 0.19 Myr are shown. For each box, the orange line is the median group mass, the length of the box is the interquartile range, and the whiskers span the whole range.

3.2 Parsec-scale cloud–cloud collision simulation

Fig. 6 shows the IMFs of all the models that compare with the chosen simulation from Liow & Dobbs (2020), labelled L20 (blue) at 1.75 Myr, the time when 10 per cent of the gas mass is converted to sinks and stars, the same time-scale shown in the figures in Liow & Dobbs (2020). Although the L20 simulation has a much lower resolution than B12 (see Section 3.1), the form of the sink mass function is not dissimilar to the Kroupa IMF at high masses; at low masses the mass function departs strongly from the Kroupa IMF. First, the ‘no grouping’ model (orange) that uses single star formation is not able to form any high mass stars >10 M, and deviates significantly from the Kroupa IMF at the high mass range. With grouped star formation, the resultant IMFs are closer to the Kroupa IMF, however the ‘standard’ model (green) with |$d_{\text{g}}=1$| pc and |$v_{\text{g}}=1$| km s−1 is still not enough to sample a complete Kroupa IMF. Similar to the comparison with Bate (2012), both the ‘turbulent’ model (red) that uses the initial turbulent velocity as the grouping speed, and the ‘all grouping’ model (purple) can sample the full Kroupa IMF. However the ‘turbulent’ model does not need to group all the sinks together like the ‘all grouping’ model, which as we shall see is beneficial for larger scale simulations. The star mass fraction f = 0.901 of the ‘turbulent’ model is also high compared to other models.

The IMF of our models are compared with that of Liow & Dobbs (2020), labelled as L20, at 1.75 Myr, the time when 10 per cent of the gas mass is converted to sink mass in the original simulation. The markers are the maximum mass bin in the respective models. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.
Figure 6.

The IMF of our models are compared with that of Liow & Dobbs (2020), labelled as L20, at 1.75 Myr, the time when 10 per cent of the gas mass is converted to sink mass in the original simulation. The markers are the maximum mass bin in the respective models. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.

Fig. 7 shows the stellar distribution of the ‘no grouping’, ‘turbulent’, and ‘all grouping’ models plotted over the sink distribution of L20. Since each sink in L20 is best approximated as a small group of stars, the size of the sinks are exaggerated as compared to the stars from our models. For the ‘no grouping’ model (top plot), the stars are located about the dense gas filaments, however their masses are small as noted in Fig. 6. As the degree of grouping in grouped star formation increases, more higher mass stars that are comparable to the original simulations are formed, again already inferred in Fig. 6. However, at the same time, we note that the stellar distribution reflects the true dense gas filament distribution less as grouping increases. This means that local mass conservation, i.e. within scales of order parsecs, becomes more violated as the degree of grouping increases. In the case of the ‘all grouping’ model (bottom plot) where all sinks are grouped as one, mass is unphysically transferred to the clustered area from less clustered regions. Similar unphysical transfer of mass to some extent can occur using the star formation schemes described in Fujii & Portegies Zwart (2015) and Smith (2021). This may be unwanted if the length resolution of a simulation is parsec or sub-parsec, whereas in the comparison with Bate (2012) in Section 3.1, the size scale of the whole system is still small compared to, for example, whole galaxy simulations.

The stars from the ‘no grouping’, ‘turbulent’, and ‘all grouping’ models (white) are compared against the sinks from Liow & Dobbs (2020) (blue) at the 1.75 Myr. The marker radius is proportional to the particle mass. The gas distribution from the original simulation is set as background for reference, as the gas distribution from the individual models are visually identical to the original one. The orange dashed box shows the region of interest for the discussion of local mass conservation.
Figure 7.

The stars from the ‘no grouping’, ‘turbulent’, and ‘all grouping’ models (white) are compared against the sinks from Liow & Dobbs (2020) (blue) at the 1.75 Myr. The marker radius is proportional to the particle mass. The gas distribution from the original simulation is set as background for reference, as the gas distribution from the individual models are visually identical to the original one. The orange dashed box shows the region of interest for the discussion of local mass conservation.

To quantify mass conservation, we take a box of length 4 pc centred at the origin, and calculate the percentage of total sink and star mass from each model (⁠|$M_{\text{sinks,model,box}} + M_{\text{stars,model,box}}$|⁠) on the total sink mass from L20 (⁠|$M_{\text{sinks,L20,box}}$|⁠). The location of the box contains about half of the most massive cluster obtained from the original simulation of L20 (see Liow & Dobbs 2020 for more information on the identification of this massive cluster, labelled ‘L4’), ideal to investigate local mass conservation. We find that for the ‘no grouping’ model, 97 per cent of the mass is conserved locally, however only about 65 per cent of the locally conserved mass are stars as this model does not form many massive stars, and a lot of mass is still ‘trapped’ in the sinks without any star formation. On the other hand, even though the ‘all grouping’ model is extremely efficient in converting sink mass to star mass (f = 0.999, so |$M_{\text{sinks}}$| and in extension |$M_{\text{sinks,model,box}}$| are practically negligible in this model) and producing massive stars, only about 40 per cent of mass is conserved locally. For the ‘turbulent’ model (middle plot), about 90 per cent of the mass is conserved locally, and about 90 per cent of the locally conserved mass is contributed by stars, suggesting that this model is the most successful in terms of forming a similar mass of stars to the original model, reproducing the Kroupa IMF, and obeying local mass conservation.

Fig. 8 shows the cumulative velocity distribution function for all models compared to that of L20. The velocity dispersion of L20 is fitted with a Gaussian distribution with mean 6.2 km s−1 and standard deviation of 2.7 km s−1 (black dashed line). As large sample sizes cause bias towards rejecting the null hypothesis for equal distributions, KS tests are not suitable for hypothesis testing here (Gómez-de Mariscal et al. 2021). None the less, all velocity distributions are visually Gaussian-like and similar to that of L20, regardless of the grouping parameters, suggesting that the velocity distribution of the larger scale models is relatively independent of the details of the star formation prescription.

The cumulative velocity distribution of the models shown are compared with that of Liow & Dobbs (2020) at 1.75 Myr. The black dashed line is the Gaussian cumulative distribution function, fitted on the velocity distribution of the original simulation, with mean 6.2 km s−1 and standard deviation of 2.7 km s−1.
Figure 8.

The cumulative velocity distribution of the models shown are compared with that of Liow & Dobbs (2020) at 1.75 Myr. The black dashed line is the Gaussian cumulative distribution function, fitted on the velocity distribution of the original simulation, with mean 6.2 km s−1 and standard deviation of 2.7 km s−1.

Similar to Fig. 5, we analyse the properties of the star groups in this comparison, however in general we find similar conclusions to those of Section 3.1. The mass of the star groups increases with the degree of grouping (which is deduced from the star mass fraction f) increases. Similarly, the group age spread shows no clear correlation with the models. The virial radius of the groups ranges from ∼10−1 to 100 pc, reflecting the length scales of star-forming regions seen in Fig. 7, while the velocity dispersion of the star groups is ≈6 km s−1, arising from the collision and initial turbulence.

3.3 Parsec-scale isolated cluster simulation

Fig. 9 shows the IMF of the different models as compared with the original simulation by Jaffa et al. (in preparation), labelled J+ at 5 Myr and at 20 Myr. In this comparison, we do not rerun the original simulation for practical reasons explained in Section 2.3.3. If we were to rerun the simulation, stars would form dynamically and a fraction of sink mass is constantly converted to stars, leaving the sinks smaller than the sinks in J+ at any time. This means that we would expect more low mass stars than the IMFs shown in Fig. 9 if stars are formed dynamically. None the less, at 5 Myr, the maximum star mass achievable by the models with less to no grouping, e.g. the ‘no grouping’ (orange) and ‘standard’ (green) models are generally smaller than those with greater degree of grouping, the extreme case being the ‘all grouping’ model (pink). Once again, this is simply because greater grouping allows for more massive mass reservoir to form higher mass stars. Similar to our inference from Section 3.1, the ‘turbulent’ model (red), i.e. setting |$d_{\text{g}} = 1$| pc, |$v_{\text{g}}=3$| km s−1 (about the turbulence speed), and |$\tau _{\text{g}} = t_{\text{ff}} = 5.24$| Myr is able to form high mass stars. At 20 Myr, the maximum star mass achievable by all models converges towards 100 M, the upper star mass limit of the Kroupa IMF. For the solid lines in Fig. 9, 5 Myr |$\lt t_{\text{ff}} = 5.24$| Myr, so the age criterion is not used at this point.

The IMF of our models are compared with that of the original simulation by Jaffa et al. (in preparation), labelled as J+, at 5 Myr (solid lines with circle ends) and at 20 Myr (dashed lines with triangle ends). The markers are the maximum mass bin in the respective models. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.
Figure 9.

The IMF of our models are compared with that of the original simulation by Jaffa et al. (in preparation), labelled as J+, at 5 Myr (solid lines with circle ends) and at 20 Myr (dashed lines with triangle ends). The markers are the maximum mass bin in the respective models. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.

Fig. 10 shows the mass and age spreads of the groups at 20 Myr, where the age criteria do become relevant. In the top subplot, even though the median star group mass of the ‘turbulent’ model is comparable to other models that do not group all sinks, the upper limit for the star group mass is greater, allowing the formation of larger mass stars due to the larger mass reservoir. The ‘no age check’ model, which differs from the ‘standard’ model in its grouping age parameter |$\tau _{\text{g}}$|⁠, shows a similar number of groups (Table 1) and group mass distribution to the ‘standard’ model. This suggests either the grouping age criteria generally do not affect the degree of grouping, or the system needs to evolve much longer to allow the age criteria to take effect. The ‘free-fall’ model, which differs just with the velocity criterion, shows a greater median mass than the ‘no age check’ and ‘standard’ models, showing that the grouping distance and speed parameters affect the grouping of sinks more significantly than the grouping age parameter.

The mass and age spread of the groups for each model at 20 Myr. For each box, the orange line is the median group mass, the length of the box is the interquartile range, while the whiskers span the whole mass range.
Figure 10.

The mass and age spread of the groups for each model at 20 Myr. For each box, the orange line is the median group mass, the length of the box is the interquartile range, while the whiskers span the whole mass range.

The bottom subplot of Fig. 10 shows the age spread of the sink groups prior to star formation at 20 Myr. Our modified star formation scheme in this comparison does not form stars dynamically, so all stars form at 20 Myr with zero age spread. Similar to Fig. 5, there is no age spread for the sink groups in the ‘no grouping’ model simply because each group consists of only one sink by construction, and also the age spread of the sink group in ‘all grouping’ model is simply the time between first sink formation and the current snapshot of 20 Myr. For the ‘standard’ model, only 32 out of 160 (20 per cent) sink groups have non-zero age spreads, and among them only three groups have age spread |$\gt t_{\text{ff}}/2 = 2.62$| Myr. The age spread distribution of the sink groups in the ‘turbulent’ model is more skewed towards greater values. In both models, the maximum age spread is about |$t_{\text{ff}}=5.24$| Myr, the value of the grouping age parameter |$\tau _{\text{g}}$|⁠. For the ‘no age check’ model, 36 out of 155 (23 per cent) sink groups have non-zero age spreads, similar to the ‘standard’ model. However, because the grouping age criteria is neglected, the maximum age spread can go beyond |$t_{\text{ff}}$|⁠, and in this case five sink groups have age spread beyond |$t_{\text{ff}}$|⁠, the maximum value being 8.49 |${\approx}1.6 t_{\text{ff}}$|⁠. This is undesirable because each small star-forming region (i.e. group) is expected to form stars within one free-fall time-scale, i.e. the formation time-scale under gravitational collapse. Lastly, the ‘free-fall’ model creates three groups at 20 Myr, all of which have age spread around |$t_{\text{ff}} = 5.24$| Myr as expected since sinks can be grouped freely in position and velocity but restricted temporally, so this model can create at most three groups (⌊20/5.24⌋ = 3). In conclusion, even though the grouping age criteria does not seem to alter the group masses much, it is useful to ensure consistent age spreads among the groups. This criteria is essential in star-forming simulations that run much longer than the free-fall or any formation time-scales.

3.4 Kiloparsec-scale spiral arm simulation

Fig. 11 shows the IMF of the stars from a simulation by Rieder et al. (2021) at 1.80 Myr and at 2.40 Myr. Even though the stars are formed using the single star formation method, i.e. no group is assigned, the IMFs are already close to a complete Kroupa IMF. In this low mass resolution simulation, the mass reservoir for star formation, i.e. the average sink mass in this case, is ∼102 M, enough to sample a complete IMF. This confirms that if the average sink mass is large, then we can fully sample the IMF, which would tend to be the case for larger galaxy or even cosmological simulations. In these simulations, the single star formation method is appropriate.

The IMF of the sub-galactic simulation by Rieder et al. (2021) at 1.80 Myr and 2.40 Myr are shown. The black dashed line is Kroupa IMF. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.
Figure 11.

The IMF of the sub-galactic simulation by Rieder et al. (2021) at 1.80 Myr and 2.40 Myr are shown. The black dashed line is Kroupa IMF. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.

4 DISCUSSION

4.1 Effect of changing the random seed on cluster properties

In our simulations, the stars’ initial positions are allocated within the accretion radius and the velocities according to the gas dispersions, but we do use a random seed to assign individual positions and velocities. Here we determine whether properties of the clusters formed have any dependence on the random positions and velocities. To test the effect of randomness on our results, we choose the L20Turbulent model (Section 3.2) and perform four more simulations with the exact same initial conditions, except we set a different random seed for star formation compared to the original ‘turbulent’ model. This leads to different positions of the stars, and a different velocity field. Fig. 12 shows the IMF of the ‘turbulent’ colliding clouds model and the reruns at 1.75 Myr. Even though there are slight deviations between the IMFs, changing the random seeds for star formation does not alter the overall trend of the mass function. Other results, such as the cumulative velocity distribution and the properties of the groups of the reruns are also similar compared to those of the ‘turbulent’ model. Using the KS tests as described in Section 3.2, we find that the velocity distributions may be considered statistically the same.

The IMF of the reruns with different random seeds for star formation are compared with that of Liow & Dobbs (2020), labelled as L20, and the ‘turbulent’ model in Section 3.2, labelled as L20Turbulent, at 1.75 Myr, the time when 10 per cent of the gas mass is converted to sink mass in the original simulation. The markers are the maximum mass bin in the respective models. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.
Figure 12.

The IMF of the reruns with different random seeds for star formation are compared with that of Liow & Dobbs (2020), labelled as L20, and the ‘turbulent’ model in Section 3.2, labelled as L20Turbulent, at 1.75 Myr, the time when 10 per cent of the gas mass is converted to sink mass in the original simulation. The markers are the maximum mass bin in the respective models. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.

The stellar distributions of the reruns are visually indistinguishable from that of the ‘turbulent’ model (middle plot in Fig. 7), but we perform additional quantitative analysis to show the similarity between the stellar distributions. Fig. 13 shows the density histograms of the separation of stars for the reruns and the ‘turbulent’ model at 1.75 Myr, similar to the analysis by Torniamenti et al. (2021) to study the spatial distribution of the stars. Subtle differences can be observed among the five models, but generally they share similar overall trends and features such as the peaks at about 1 pc and 3 pc, signifying similar length scales of clustering. We use the same density-based clustering algorithm (DBSCAN; Ester et al. 1996) and parameters (i.e. maximum separation between members of 0.5 pc and minimum number of members of 5) used in Liow & Dobbs (2020) to identify the most massive cluster in each of the ‘turbulent’ model and the reruns. These clusters are shown in Fig. 14 which shows that by eye the distribution of stars and grouping into clusters is very similar. Except for the second rerun (labelled as L20Extra2), the clustering algorithm identifies the same most massive cluster in the reruns and in the ‘turbulent’ model. The most massive cluster in the second rerun is smaller simply because its stellar distribution is slightly more fragmented compared to the other models by chance. By increasing the maximum separation between members slightly to 0.6 pc, the most massive cluster identified in the second rerun becomes the same as the rest, showing that these clusters are statistically indifferent. Therefore, we find that cluster formation and evolution are relatively independent of the stochasticity introduced in our star formation prescription.

The density histograms of the separation of stars for the reruns are compared with that of the ‘turbulent’ model in Section 3.2 at 1.75 Myr.
Figure 13.

The density histograms of the separation of stars for the reruns are compared with that of the ‘turbulent’ model in Section 3.2 at 1.75 Myr.

The stellar distribution of the simulation by Liow & Dobbs (2020), labelled as L20, the ‘turbulent’ model in Section 3.2, labelled as L20Turbulent, and the reruns at 1.75 Myr are shown with the most massive clusters (red) identified by DBSCAN.
Figure 14.

The stellar distribution of the simulation by Liow & Dobbs (2020), labelled as L20, the ‘turbulent’ model in Section 3.2, labelled as L20Turbulent, and the reruns at 1.75 Myr are shown with the most massive clusters (red) identified by DBSCAN.

4.2 Varying the upper star mass limit

So far in this paper, we fix a constant value of 100 M as the upper star mass limit to our input Kroupa IMF, which is used to sample the stellar population and decide the mass threshold to form further stars. In the case where the group masses are sufficiently large, most of the mass in the sinks can be converted to stars, for example for our comparisons in Sections 3.2, 3.3, and 3.4. However in Section 3.1, the star mass fraction can be very low, which is clearly not ideal. If we take the extreme case, the ‘no grouping’ model, the average group mass (each group is equivalent to a sink particle in this case) is about 0.02 M < 0.37 M, the expected mass value calculated using the input IMF and mass range. Probabilistically, even relatively low mass stars cannot be assigned to the sinks, and consequently much of the stellar mass remains ‘trapped’ in the sinks rather than being converted to stars.

An alternative is to set the upper star mass limit equal to the individual group mass. Besides eliminating a parameter from our star formation prescription, this new setting ensures that the mass threshold and the star mass that can form within the group are always less than the group mass, avoiding the problem of having the mass threshold and stellar masses larger than the mass available locally. Consequently, the sink-to-star conversion is more efficient as shown in Table 2, where we test this setting by rerunning the models that compare with B12 (Section 3.1) and L20 (Section 3.2). The star mass fraction of the reruns in B12, especially those with lower degree of grouping, is boosted using the new setting. Using the group mass as the upper limit of the IMF has less impact on the star mass fraction of the reruns of L20, as the sink-to-star conversion is already relatively efficient in those models.

Table 2.

The star mass fraction of the models when the upper star mass limit is equal to 100 Mf1 and the individual group mass f2. The column f1 is identical to the column f in Table 1.

Modelf1f2
B12NoGrouping0.0500.739
B12Standard0.4980.864
B12Turbulent0.5760.935
B12AllGrouping0.7660.995
B12NoSoftening0.5970.983
B12LowResolution0.9870.988
L20NoGrouping0.7080.763
L20Standard0.8040.894
L20Turbulent0.9010.974
L20AllGrouping0.9990.999
Modelf1f2
B12NoGrouping0.0500.739
B12Standard0.4980.864
B12Turbulent0.5760.935
B12AllGrouping0.7660.995
B12NoSoftening0.5970.983
B12LowResolution0.9870.988
L20NoGrouping0.7080.763
L20Standard0.8040.894
L20Turbulent0.9010.974
L20AllGrouping0.9990.999
Table 2.

The star mass fraction of the models when the upper star mass limit is equal to 100 Mf1 and the individual group mass f2. The column f1 is identical to the column f in Table 1.

Modelf1f2
B12NoGrouping0.0500.739
B12Standard0.4980.864
B12Turbulent0.5760.935
B12AllGrouping0.7660.995
B12NoSoftening0.5970.983
B12LowResolution0.9870.988
L20NoGrouping0.7080.763
L20Standard0.8040.894
L20Turbulent0.9010.974
L20AllGrouping0.9990.999
Modelf1f2
B12NoGrouping0.0500.739
B12Standard0.4980.864
B12Turbulent0.5760.935
B12AllGrouping0.7660.995
B12NoSoftening0.5970.983
B12LowResolution0.9870.988
L20NoGrouping0.7080.763
L20Standard0.8040.894
L20Turbulent0.9010.974
L20AllGrouping0.9990.999

One major disadvantage of using the group mass as the upper mass limit is that more low mass stars, and subsequently less high mass stars, are created since the small individual upper star mass limits prevent the formation of higher mass stars. Figs 15 and 16 show the IMF of the reruns as compared to B12 and L20 using the group mass as the upper star mass limit. In a smaller scale system as shown in Fig. 15, all the reruns have more low mass stars as compared to the models in Fig. 2. The most massive stars in the reruns are also less massive compared to their respective counterparts. In the larger scale L20 system as shown in Fig. 16, all models except the ‘all grouping’ case cannot form massive stars > 5 M (c.f. Fig. 6). In the previous models that used 100 M as the upper star mass limit, the group masses in these large-scale models are generally more massive, but note that these sink groups are usually small upon creation. Therefore, taking the group mass as upper star mass limit instead, these sink groups would form stars right after sink creation and become less massive. Since the density of the sinks is kept constant, their accretion radii become shorter and therefore prevent the groups to grow in mass and form higher mass stars. Potentially, this could be alleviated by including a delay after sinks form before converting them to stars, so the sinks have more time to accrete gas and grow but we do not consider this further here. In summary, setting the upper star mass limit equal to the group mass increases the sink-to-star conversion, but the resultant mass distribution is heavily skewed towards the lower mass end.

The IMF of the reruns when the upper star mass limit equals to individual group mass are compared with that of Bate (2012), labelled as B12, at the free-fall time of 0.19 Myr. The markers are the maximum mass bin in the respective models. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.
Figure 15.

The IMF of the reruns when the upper star mass limit equals to individual group mass are compared with that of Bate (2012), labelled as B12, at the free-fall time of 0.19 Myr. The markers are the maximum mass bin in the respective models. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.

The IMF of the reruns when the upper star mass limit equals to individual group mass are compared with that of Liow & Dobbs (2020), labelled as L20, at 1.75 Myr, the time when 10 per cent of the gas mass is converted to sink mass in the original simulation. The markers are the maximum mass bin in the respective models. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.
Figure 16.

The IMF of the reruns when the upper star mass limit equals to individual group mass are compared with that of Liow & Dobbs (2020), labelled as L20, at 1.75 Myr, the time when 10 per cent of the gas mass is converted to sink mass in the original simulation. The markers are the maximum mass bin in the respective models. The errorbars are the standard deviations from Poisson sampling. The black dashed line is the analytical Kroupa IMF.

5 CONCLUSION

Sink particles are used in star-forming simulations of various length scales and resolutions to replace dense gas regions, however a method to convert sinks to stars is needed if the sinks are not well resolved as individual stars, which is essential in simulations that require stellar properties like stellar feedback simulations. Wall et al. (2019) introduced the single star formation prescription, where a population of stars that is sampled from the input IMF is introduced for each sink. This method works well with cluster sinks, but undersamples high mass stars if used on smaller mass sinks that are usually approximated as small groups of stars. In this paper, we introduce grouped star formation, a modification of the single star formation method whereby sinks are first grouped according to their positions, velocities, and ages, then the group masses are used to sample the IMF and form stars. Using EKSTER (Rieder et al. 2021), we test this method in simulations of various physical scales, from a sub-parsec isolated cloud simulation up to a kiloparsec spiral arm simulation. We show that the grouped star formation prescription is robust in simulations of different physical scales, and is essential in parsec-scale or smaller scale simulations, whereby their typical mass resolution of 10−4 − 10−1 M means that each sink is only approximated as a small star-forming region. This method would allow us to study the evolution of star clusters more accurately.

One of the main advantages of increasing the degree of grouping of sinks is that the IMF is more complete, i.e. higher mass stars are sampled, as the degree of grouping increases. The disadvantage of increasing the grouping is that local mass may be less well conserved, e.g. stars are placed more preferentially at the few larger sinks rather than spread out in the simulation. Furthermore, stars formed at different times could be grouped together but this is easily constrained by our age criterion. For the models we present here, generally the ‘turbulent’ grouping scenario is optimal. For this we set the grouping distance |$d_{\text{g}} = 1$| pc, grouping speed |$v_{\text{g}}$| equal to the turbulence of the system, and grouping age |$\tau _{\text{g}}$| equal to the free-fall time-scale. This tends to sample the IMF well, group sinks which form within a free-fall time, and reproduces most of the expected stellar mass in stars. This model is also more physically motivated, since the values of these parameters are approximately the physical scales expected in a typical star-forming region.

For our smallest scale region (∼0.5 pc), the ‘all grouping’ method which groups all sinks as one produces the optimal results. This is not really surprising since this simulation is simply of one small star-forming region. We also find that we can produce a closer match to the velocity distribution of the stars formed in Bate (2012) by not including softening for the star particles, which again is not that surprising. With our grouping method we can basically reproduce the IMF, velocity characteristic of the stars, whilst the detailed spatial distribution of the stars is not that important since it is unlikely to be resolved in larger scale simulations. Our ‘turbulent’ grouping model also works well, in this case this model is not very different to the ‘all grouping’ case – again we would expect the ‘turbulent’ grouping to group most of the sinks together if the ‘turbulent’ method is tuned to select individual star-forming regions (where stars located together form together on a free-fall time). The ‘no grouping’ model i.e. single star formation prescription, is a particularly poor choice since only a small mass of the sinks are converted to stars, and there is an absence of massive stars.

With low mass groups, which may arise in particularly small scale simulations, mass is not necessarily efficiently converted from sinks to stars, which is not satisfactory if we are treating the stars as the stellar component of the simulation. We explored changing the upper limit of the IMF from a fixed value to the individual group masses, so that the fraction of mass in stars is increased, but the latter method also has the effect of suppressing the stellar masses such that low mass stars are overpopulated and high mass stars underpopulated. Using the ‘all grouping’ or ‘turbulent’ modes seem to be much better choices than the ‘no grouping’ model here in any case.

In our intermediate scale simulations (∼10 pc), again the ‘all grouping’ model samples the IMF well, but we note that on these scales it is not necessarily appropriate, or desirable to group all the sinks together. Again the ‘turbulent’ grouping still samples the IMF reasonably well, and better groups together sinks based on location, and on these scales, age is also relevant. We note that potentially it may not actually be optimal to sample small clusters of stars according to a full IMF, as such regions may be less likely to contain massive stars, but we do not consider this further here. Again the ‘no grouping’ case does not produce the IMF well, and has a lower fraction of mass in stars compared to the other cases.

Finally we checked our grouping method for a larger scale simulation (∼1 kpc), and verified that the ‘no grouping’ case, i.e. single star formation is sufficient and there is no need to adopt grouping of sink particles once the mass of the sinks is sufficient to sample the IMF.

The type of IMF is a free parameter in our simulations. We choose the Kroupa IMF (Kroupa 2001) for convenience, but one can also choose other types of IMF to suit the problem in hand, e.g the simple broken power-law IMF by Salpeter (1955) or Miller & Scalo (1979), the IMF by Chabrier (2003) which models better the stars at lower mass end, and the IMF from the simulation by Susa, Hasegawa & Tominaga (2014), also investigated in Hirai et al. (2021), to form stars in the range of 1–300 M in cosmological simulations. We can only compare the resultant IMF of the stars with our selected choice of IMF.

Our algorithm is simple and easy to add in any star formation code, but it introduces three additional parameters to the simulation. We briefly explored other implementations like using the virial theorem to group the sinks, or reassigning group indices at every time-step, but found these algorithms are unable to group the sinks effectively. Other recently developed clustering methods (e.g. Torniamenti et al. 2021) can potentially be adapted into our grouped star formation prescription to be applied in hydrodynamical simulations. One potential improvement which we did not test further is allowing a delay, so that sink groups can accumulate mass before being converted to stars, although this has the disadvantage of introducing a further free parameter. Essentially though, our method can be easily refined to suit the needs of the user.

ACKNOWLEDGEMENTS

The authors thank Tim Naylor for the helpful discussion on statistics, and Nicholas Herrington for the initial discussion on the analysis of B12 simulation comparison. SR acknowledges funding from STFC Consolidated Grant ST/R000395/1. CLD acknowledges funding from the European Research Council for the Horizon 2020 ERC consolidator grant project ICYBOB, grant number 818940. SEJ acknowledges support from the STFC grant ST/R000905/1 Simulations in this paper were performed on ISCA, University of Exeter. The column density plot of B12 cluster was produced using SPLASH (Price 2007), while those of cloud–cloud collision simulations were produced with the help of FI (Pelupessy, van der Werf & Icke 2004) in AMUSE. The underlying gas velocity fields used to check the stellar velocity were computed using GADGET2 (Springel 2005) in AMUSE. PYTHON packages, such as NUMPY (Harris et al. 2020), MATPLOTLIB (Hunter 2007), PANDAS (Wes McKinney 2010), and SCIPY (Virtanen et al. 2020) were used generously to analyse the results in this paper.

DATA AVAILABILITY

The data underlying this paper will be shared on reasonable request to the corresponding author.

REFERENCES

Ali
A. A.
,
2021
,
MNRAS
,
501
,
4136

Ali
A. A.
,
Harries
T. J.
,
2019
,
MNRAS
,
487
,
4890

Balfour
S. K.
,
Whitworth
A. P.
,
Hubber
D. A.
,
Jaffa
S. E.
,
2015
,
MNRAS
,
453
,
2472

Ballone
A.
,
Torniamenti
S.
,
Mapelli
M.
,
Di Carlo
U. N.
,
Spera
M.
,
Rastello
S.
,
Gaspari
N.
,
Iorio
G.
,
2021
,
MNRAS
,
501
,
2920

Bate
M. R.
,
2009
,
MNRAS
,
392
,
590

Bate
M. R.
,
2012
,
MNRAS
,
419
,
3115

Bate
M. R.
,
Burkert
A.
,
1997
,
MNRAS
,
288
,
1060

Bate
M. R.
,
Bonnell
I. A.
,
Price
N. M.
,
1995
,
MNRAS
,
277
,
362

Bate
M. R.
,
Bonnell
I. A.
,
Bromm
V.
,
2003
,
MNRAS
,
339
,
577

Bending
T. J. R.
,
Dobbs
C. L.
,
Bate
M. R.
,
2020
,
MNRAS
,
495
,
1672

Bertelli Motta
C.
,
Clark
P. C.
,
Glover
S. C. O.
,
Klessen
R. S.
,
Pasquali
A.
,
2016
,
MNRAS
,
462
,
4171

Bleuler
A.
,
Teyssier
R.
,
2014
,
MNRAS
,
445
,
4015

Bonnell
I. A.
,
Bate
M. R.
,
Clarke
C. J.
,
Pringle
J. E.
,
1997
,
MNRAS
,
285
,
201

Boss
A. P.
,
2019
,
ApJ
,
870
,
3

Chabrier
G.
,
2003
,
PASP
,
115
,
763

Dale
J. E.
,
Wünsch
R.
,
Smith
R. J.
,
Whitworth
A.
,
Palouš
J.
,
2011
,
MNRAS
,
411
,
2230

Dale
J. E.
,
Ngoumou
J.
,
Ercolano
B.
,
Bonnell
I. A.
,
2014
,
MNRAS
,
442
,
694

Dinnbier
F.
,
Walch
S.
,
2020
,
MNRAS
,
499
,
748

Dobbs
C. L.
,
Wurster
J.
,
2021
,
MNRAS
,
502
,
2285

Dobbs
C. L.
,
Liow
K. Y.
,
Rieder
S.
,
2020
,
MNRAS
,
496
,
L1

Ester
M.
,
Kriegel
H.-P.
,
Sander
J.
,
Xu
X.
,
1996
, in
Simoudis
E.
,
Han
J.
,
Fayyad
U.
,
Proceedings of the Second International Conference on Knowledge Discovery and Data Mining. KDD’96
.
AAAI Press
,
Menlo Park, USA
, p.
226

Federrath
C.
,
Klessen
R. S.
,
2012
,
ApJ
,
761
,
156

Federrath
C.
,
Banerjee
R.
,
Clark
P. C.
,
Klessen
R. S.
,
2010
,
ApJ
,
713
,
269

Fujii
M.
,
Iwasawa
M.
,
Funato
Y.
,
Makino
J.
,
2007
,
PASJ
,
59
,
1095

Fujii
M. S.
,
Portegies Zwart
S.
,
2015
,
MNRAS
,
449
,
726

Geen
S.
,
Hennebelle
P.
,
Tremblin
P.
,
Rosdahl
J.
,
2016
,
MNRAS
,
463
,
3129

Geen
S.
,
Watson
S. K.
,
Rosdahl
J.
,
Bieri
R.
,
Klessen
R. S.
,
Hennebelle
P.
,
2018
,
MNRAS
,
481
,
2548

Girichidis
P.
,
Federrath
C.
,
Banerjee
R.
,
Klessen
R. S.
,
2011
,
MNRAS
,
413
,
2741

Gómez-de Mariscal
E.
,
Guerrero
V.
,
Sneider
A.
,
Jayatilaka
H.
,
Phillip
J. M.
,
Wirtz
D.
,
Muñoz-Barrutia
A.
,
2021
,
Sci Rep
,
11
,
20942

Greif
T. H.
,
Bromm
V.
,
Clark
P. C.
,
Glover
S. C. O.
,
Smith
R. J.
,
Klessen
R. S.
,
Yoshida
N.
,
Springel
V.
,
2012
,
MNRAS
,
424
,
399

Grudić
M. Y.
,
Guszejnov
D.
,
Hopkins
P. F.
,
Offner
S. S. R.
,
Faucher-Giguère
C.-A.
,
2021
,
MNRAS
,
506
,
2199

Harris
C. R.
et al. ,
2020
,
Nature
,
585
,
357

He
C.-C.
,
Ricotti
M.
,
Geen
S.
,
2019
,
MNRAS
,
489
,
1880

Hennebelle
P.
,
Commerçon
B.
,
Lee
Y.-N.
,
Charnoz
S.
,
2020
,
A&A
,
635
,
A67

Hirai
Y.
,
Fujii
M. S.
,
Saitoh
T. R.
,
2021
,
PASJ
,
73
,
1036

Hislop
J. M.
,
Naab
T.
,
Steinwandel
U. P.
,
Lahén
N.
,
Irodotou
D.
,
Johansson
P. H.
,
Walch
S.
,
2021
,
MNRAS
,
509
,
5938

Howard
C. S.
,
Pudritz
R. E.
,
Harris
W. E.
,
2018
,
Nat. Astron.
,
2
,
725

Hubber
D. A.
,
Walch
S.
,
Whitworth
A. P.
,
2013
,
MNRAS
,
430
,
3261

Hubber
D. A.
,
Rosotti
G. P.
,
Booth
R. A.
,
2018
,
MNRAS
,
473
,
1603

Hu
C.-Y.
,
Naab
T.
,
Glover
S. C. O.
,
Walch
S.
,
Clark
P. C.
,
2017
,
MNRAS
,
471
,
2151

Hunter
J. D.
,
2007
,
Comput. Sci. Eng.
,
9
,
90

Jones
M. O.
,
Bate
M. R.
,
2018
,
MNRAS
,
480
,
2562

Kroupa
P.
,
2001
,
MNRAS
,
322
,
231

Kuznetsova
A.
,
Hartmann
L.
,
Heitsch
F.
,
2020
,
ApJ
,
893
,
73

Lahén
N.
,
Naab
T.
,
Johansson
P. H.
,
Elmegreen
B.
,
Hu
C.-Y.
,
Walch
S.
,
Steinwandel
U. P.
,
Moster
B. P.
,
2020
,
ApJ
,
891
,
2

Latif
M. A.
,
Volonteri
M.
,
2015
,
MNRAS
,
452
,
1026

Liow
K. Y.
,
Dobbs
C. L.
,
2020
,
MNRAS
,
499
,
1099

Lomax
O.
,
Whitworth
A. P.
,
Hubber
D. A.
,
2015
,
MNRAS
,
449
,
662

Masunaga
H.
,
Inutsuka
S.-i.
,
2000
,
ApJ
,
536
,
406

Masunaga
H.
,
Miyama
S. M.
,
Inutsuka
S.-I.
,
1998
,
ApJ
,
495
,
346

Miller
G. E.
,
Scalo
J. M.
,
1979
,
ApJS
,
41
,
513

Monaghan
J. J.
,
1997
,
J. Comput. Phys.
,
136
,
298

Morris
J. P.
,
Monaghan
J. J.
,
1997
,
J. Comput. Phys.
,
136
,
41

Ntormousi
E.
,
Hennebelle
P.
,
2019
,
A&A
,
625
,
A82

Padoan
P.
,
Nordlund
Å.
,
2011
,
ApJ
,
730
,
40

Pelupessy
F. I.
,
van der Werf
P. P.
,
Icke
V.
,
2004
,
A&A
,
422
,
55

Perets
H. B.
,
Šubr
L.
,
2012
,
ApJ
,
751
,
133

Portegies Zwart
S.
et al. ,
2018
,
Amuse: The Astrophysical Multipurpose Software Environment
.
Leiden University
,
Leiden

Portegies Zwart
S. F.
,
Verbunt
F.
,
1996
,
A&A
,
309
,
179

Price
D. J.
et al. ,
2018
,
PASA
,
35
,
31

Price
D. J.
,
2007
,
Publ. Astron. Soc. Austr.
,
24
,
159

Price
D. J.
,
Bate
M. R.
,
2008
,
MNRAS
,
385
,
1820

Price
D. J.
,
Federrath
C.
,
2010
,
MNRAS
,
406
,
1659

Price
D. J.
,
Monaghan
J. J.
,
2007
,
MNRAS
,
374
,
1347

Præstgaard
J. T.
,
1995
,
Scand. J. Stat.
,
22
,
305

Renaud
F.
,
Bournaud
F.
,
Duc
P.-A.
,
2015
,
MNRAS
,
446
,
2038

Rieder
S.
,
Liow
K. Y.
,
2021
,
rieder/ekster
,

Rieder
S.
,
Dobbs
C.
,
Bending
T.
,
Liow
K. Y.
,
Wurster
J.
,
2022
,
MNRAS
,
509
,
6155

Saitoh
T. R.
,
Makino
J.
,
2013
,
ApJ
,
768
,
44

Salpeter
E. E.
,
1955
,
ApJ
,
121
,
161

Smith
M. C.
,
2021
,
MNRAS
,
502
,
5417

Sormani
M. C.
,
Treß
R. G.
,
Klessen
R. S.
,
Glover
S. C. O.
,
2017
,
MNRAS
,
466
,
407

Springel
V.
,
2005
,
MNRAS
,
364
,
1105

Stacy
A.
,
Greif
T. H.
,
Bromm
V.
,
2010
,
MNRAS
,
403
,
45

Stamatellos
D.
,
Whitworth
A. P.
,
Hubber
D. A.
,
2012
,
MNRAS
,
427
,
1182

Susa
H.
,
Hasegawa
K.
,
Tominaga
N.
,
2014
,
ApJ
,
792
,
32

Torniamenti
S.
,
Pasquato
M.
,
Di Cintio
P.
,
Ballone
A.
,
Iorio
G.
,
Mapelli
M.
,
2021
,
MNRAS
,
preprint (arXiv:2106.00684)

Vázquez-Semadeni
E.
,
Gómez
G. C.
,
Jappsen
A. K.
,
Ballesteros-Paredes
J.
,
González
R. F.
,
Klessen
R. S.
,
2007
,
ApJ
,
657
,
870

Virtanen
P.
et al. ,
2020
,
Nat. Methods
,
17
,
261

Wall
J. E.
,
McMillan
S. L. W.
,
Mac Low
M.-M.
,
Klessen
R. S.
,
Portegies Zwart
S.
,
2019
,
ApJ
,
887
,
62

Wang
L.
,
Iwasawa
M.
,
Nitadori
K.
,
Makino
J.
,
2020
,
MNRAS
,
497
,
536

McKinney
W.
,
2010
, in
van der Walt Jarrod Millman
S.
, eds,
Proc. 9th Python in Science Conference
. p.
56
,

Whitehouse
S. C.
,
Bate
M. R.
,
Monaghan
J. J.
,
2005
,
MNRAS
,
364
,
1367

This article is published and distributed under the terms of the Oxford University Press, Standard Journals Publication Model (https://dbpia.nl.go.kr/journals/pages/open_access/funder_policies/chorus/standard_publication_model)