Mesoscopic simulations for the molecular and network structure of a thermoset polymer