Comparative Analysis of Neutron Star and White Dwarf Star Simulations