Cosmological smoothed particle hydrodynamics simulations: a hybrid multiphase model for star formation | Synapse