override writeEneTimeStep because mass and elastic energy are computed different for the coupling; also adds momentum and angular momentum
84 const Mdouble m = M::particleHandler.getMass();
85 const Vec3D com = M::particleHandler.getMassTimesPosition();
88 const static long int width = os.precision() + 6;
89 os << std::setw(width) << M::getTime()
91 <<
" " << std::setw(width) << M::particleHandler.getMomentum().
getX()
92 <<
" " << std::setw(width) << M::particleHandler.getMomentum().getY()
93 <<
" " << std::setw(width) << M::particleHandler.getMomentum().getZ()
94 <<
" " << std::setw(width) << M::particleHandler.getAngularMomentum().getX()
95 <<
" " << std::setw(width) << M::particleHandler.getAngularMomentum().getY()
96 <<
" " << std::setw(width) << M::particleHandler.getAngularMomentum().getZ()
97 <<
" " << std::setw(width) << -
Vec3D::dot(M::getGravity(), com)
98 <<
" " << std::setw(width) << M::particleHandler.getKineticEnergy()
99 <<
" " << std::setw(width) << M::particleHandler.getRotationalEnergy()
102 <<
" " << std::setw(width)
@ MULTIPLE_FILES
each time-step will be written into/read from separate files numbered consecutively: name_....
@ MULTIPLE_FILES_PADDED
each time-step will be written into/read from separate files numbered consecutively,...
double Mdouble
Definition: GeneralDefine.h:34
void writeEneHeader(std::ostream &os) const override
Definition: BaseCoupling.h:112
Mdouble Y
Definition: Vector.h:66
Mdouble Z
Definition: Vector.h:66
Mdouble X
the vector components
Definition: Vector.h:66
static Mdouble dot(const Vec3D &a, const Vec3D &b)
Calculates the dot product of two Vec3D: .
Definition: Vector.cc:76
Mdouble getX() const
Definition: Vector.h:402
const Mdouble NaN
Definition: GeneralDefine.h:43