Molecular dynamics simulation for polymers in the presence of a heat bath | Synapse