30 out_ = fopen(file.c_str(), bAppend ?
"at" :
"wt");
37 Eigen::Matrix3d box = conf->
getBox();
38 fprintf(
out_,
"ITEM: TIMESTEP\n%ld\n", top->
getStep());
39 fprintf(
out_,
"ITEM: NUMBER OF ATOMS\n%li\n", (
Index)top->
Beads().size());
40 fprintf(
out_,
"ITEM: BOX BOUNDS pp pp pp\n");
44 fprintf(
out_,
"ITEM: ATOMS id type x y z");
47 fprintf(
out_,
" vx vy vz");
51 fprintf(
out_,
" fx fy fz");
58 fprintf(
out_,
"%ld %li", bead.getId() + 1, type_id);
void Open(std::string file, bool bAppend=false) override
void Write(Topology *conf) override
topology of the whole system
Index getBeadTypeId(std::string type) const
Given a bead type this method returns the id associated with the type.
const Eigen::Matrix3d & getBox() const
base class for all analysis tools