Dynamical Calculation of Entropy Elastic Forces in Molecular Chains