27 mu_ = Eigen::Matrix3d::Zero();
28 mv_ = Eigen::Matrix3d::Zero();
29 mw_ = Eigen::Matrix3d::Zero();
34 for (
const auto &bead : top.
Beads()) {
40 if (bead.getSymmetry() == 1) {
45 mu_ += bead.getU() * bead.getU().transpose();
46 mu_.diagonal().array() -= 1. / 3.;
51 mu_ += bead.getV() * bead.getV().transpose();
52 mu_.diagonal().array() -= 1. / 3.;
57 mu_ += bead.getW() * bead.getW().transpose();
58 mu_.diagonal().array() -= 1. / 3.;
64 double f = 1. / (double)N * 3. / 2.;