override writeEneTimeStep because mass and elastic energy are computed different for the coupling; also adds momentum and angular momentum
63 const Mdouble m = M::particleHandler.getMass();
64 const Vec3D com = M::particleHandler.getMassTimesPosition();
67 const static long int width = os.precision() + 6;
68 os << std::setw(width) << M::getTime()
70 <<
" " << std::setw(width) << M::particleHandler.getMomentum().
getX()
71 <<
" " << std::setw(width) << M::particleHandler.getMomentum().getY()
72 <<
" " << std::setw(width) << M::particleHandler.getMomentum().getZ()
73 <<
" " << std::setw(width) << M::particleHandler.getAngularMomentum().getX()
74 <<
" " << std::setw(width) << M::particleHandler.getAngularMomentum().getY()
75 <<
" " << std::setw(width) << M::particleHandler.getAngularMomentum().getZ()
76 <<
" " << std::setw(width) << -
Vec3D::dot(M::getGravity(), com)
77 <<
" " << std::setw(width) << M::particleHandler.getKineticEnergy()
78 <<
" " << std::setw(width) << M::particleHandler.getRotationalEnergy()
81 <<
" " << 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,...
void writeEneHeader(std::ostream &os) const override
Definition: BaseCoupling.h:91
Definition: Kernel/Math/Vector.h:30
Mdouble Y
Definition: Kernel/Math/Vector.h:45
Mdouble Z
Definition: Kernel/Math/Vector.h:45
Mdouble X
the vector components
Definition: Kernel/Math/Vector.h:45
static Mdouble dot(const Vec3D &a, const Vec3D &b)
Calculates the dot product of two Vec3D: .
Definition: Vector.cc:56
Mdouble getX() const
Definition: Kernel/Math/Vector.h:431
int * m
Definition: level2_cplx_impl.h:294
const Mdouble NaN
Definition: GeneralDefine.h:22