284 Vec3D momentumBalance;
286 logger(
INFO,
"Analysing #0: spatially averaged statistics rho(t) at t=1");
297 "Error in momentumBalance=%", totalMass,
Vec3D::getLength(momentumBalance));
303 std::cout << std::endl;
309 totalMass += p.getDensity();
310 momentumBalance += p.getInteractionForceDensity()
313 totalMass = totalMass / cgB.
getPoints().size() - 0.8;
314 momentumBalance /= cgB.
getPoints().size();
316 "Error in momentumBalance=%", totalMass,
Vec3D::getLength(momentumBalance));
double Mdouble
Definition: GeneralDefine.h:34
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
T * getObject(const unsigned int id)
Gets a pointer to the Object at the specified index in the BaseHandler.
Definition: BaseHandler.h:613
Mdouble getDensity() const
Definition: StandardFields.h:161
Vec3D getInteractionForceDensity() const
Definition: StandardFields.h:181
const std::vector< Point > & getPoints() const
Definition: CG.h:187
const Point & getPoint(size_t i) const
Definition: CG.h:182
void writeAll(std::ostream &os) const
Writes class content, including the points_, into an output stream, usually a stat file.
Vec3D getGravity() const
Returns the gravitational acceleration.
Definition: DPMBase.cc:1391
void setZero()
Sets all elements to zero.
Definition: Vector.cc:43
Mdouble getLength() const
Calculates the length of this Vec3D: .
Definition: Vector.cc:320