uint32_t Size
Integral type used to index arrays (by default).
double Float
Precision used withing the code. Use Float instead of float or double where precision is important.
Integrals of motion and other integral quantities.
#define NAMESPACE_SPH_END
Triggers of auxiliary actions during the run.
Wrapper of pointer that deletes the resource from destructor.
Writer logging only basic run information.
virtual void write(const Storage &storage, const Statistics &stats) override
Writes to the log using provided storage and statistics.
BriefLogWriter(const SharedPtr< ILogger > &logger, const RunSettings &settings)
Base class for objects logging run statistics.
SharedPtr< ILogger > logger
virtual AutoPtr< ITrigger > action(Storage &storage, Statistics &stats) override final
Writes to the log using provided storage and statistics.
ILogWriter(const SharedPtr< ILogger > &logger, const Float period=0._f)
Constructs the log file.
virtual void write(const Storage &storage, const Statistics &stats)=0
Writes to the log using provided storage and statistics.
Writer logging selected integrals of motion.
virtual void write(const Storage &storage, const Statistics &stats) override
Writes to the log using provided storage and statistics.
IntegralsLogWriter(const Path &path, const Size interval)
Creates a writer that writes the output into given file.
Helper writer that does not write any logs.
virtual void write(const Storage &storage, const Statistics &stats) override
Writes to the log using provided storage and statistics.
Object representing a path on a filesystem.
Trigger executing given action every period.
Writer logging useful statistics (current run time, relative progress, time step, ....
virtual void write(const Storage &storage, const Statistics &stats) override
Writes to the log using provided storage and statistics.
StandardLogWriter(const SharedPtr< ILogger > &logger, const RunSettings &settings)
Object holding various statistics about current run.
Container storing all quantities used within the simulations.
Computes total angular momentum of all SPH particles with a respect to the reference frame.
Returns the total energy of all particles.
Computes total momentum of all SPH particles with a respect to the reference frame.
Extension of StandardLogWriter, printing additional information abount quantities.
virtual void write(const Storage &storage, const Statistics &stats) override
Writes to the log using provided storage and statistics.
VerboseLogWriter(const SharedPtr< ILogger > &logger, const RunSettings &settings)