83 static Index nstep = 1;
84 const double scale = 10.0;
90 }
else if (conf->
HasVel()) {
103 fl_ <<
"From VOTCA with love" << endl;
104 fl_ << setw(10) << mavecs << setw(10) << mpbct << setw(10)
105 << conf->
BeadCount() << setw(20) << energy << endl;
106 Eigen::Matrix3d m = conf->
getBox();
107 for (
Index i = 0; i < 3; i++) {
108 fl_ << fixed << setprecision(10) << setw(20) << m(i, 0) * scale
109 << setw(20) << m(i, 1) * scale << setw(20) << m(i, 2) * scale << endl;
113 static double dstep = 0.0;
115 fl_ <<
"From VOTCA with love" << endl;
116 fl_ << setw(10) << mavecs << setw(10) << mpbct << setw(10)
121 fl_ <<
"timestep" << setprecision(9) << setw(10) << conf->
getStep()
122 << setw(10) << conf->
BeadCount() << setw(10) << mavecs << setw(10)
124 fl_ << setprecision(9) << setw(12) << dstep << setw(12) << conf->
getTime()
127 Eigen::Matrix3d m = conf->
getBox();
128 for (
Index i = 0; i < 3; i++) {
129 fl_ << setprecision(12) << setw(20) << m(i, 0) * scale << setw(20)
130 << m(i, 1) * scale << setw(20) << m(i, 2) * scale << endl;
140 fl_ << setw(8) << left << bead->
getType() << right << setw(10) << i + 1
143 fl_ << setw(8) << left << bead->
getType() << right << setw(10) << i + 1;
144 fl_ << setprecision(6) << setw(12) << bead->
getMass() << setw(12)
145 << bead->
getQ() << setw(12) <<
" 0.0" << endl;
156 fl_ << resetiosflags(std::ios::fixed) << setprecision(12) << setw(20)
157 << bead->
getPos().x() * scale;
158 fl_ << setw(20) << bead->
getPos().y() * scale << setw(20)
159 << bead->
getPos().z() * scale << endl;
163 throw std::ios_base::failure(
164 "Error: dlpoly frame is supposed to contain velocities, but bead "
165 "does not have v-data");
169 fl_ << setprecision(12) << setw(20) << bead->
getVel().x() * scale
171 fl_ << bead->
getVel().y() * scale << setw(20)
172 << bead->
getVel().z() * scale << endl;
176 throw std::ios_base::failure(
177 "Error: dlpoly frame is supposed to contain forces, but bead "
178 "does not have f-data");
182 fl_ << setprecision(12) << setw(20) << bead->
getF().x() * scale
184 fl_ << bead->
getF().y() * scale << setw(20) << bead->
getF().z() * scale