SPH
|
Dumps data into a file that can be used as an input for pkdgrav code by Richardson et al. More...
#include <Output.h>
Public Member Functions | |
PkdgravOutput (const OutputFile &fileMask, PkdgravParams &¶ms) | |
virtual Expected< Path > | dump (const Storage &storage, const Statistics &stats) override |
Saves data from particle storage into the file. More... | |
Public Member Functions inherited from IOutput | |
IOutput (const OutputFile &fileMask) | |
Constructs output given the file name of the output. More... | |
Public Member Functions inherited from Polymorphic | |
virtual | ~Polymorphic () |
Additional Inherited Members | |
Protected Attributes inherited from IOutput | |
OutputFile | paths |
Dumps data into a file that can be used as an input for pkdgrav code by Richardson et al.
SPH particles are converted into hard spheres, moving with the velocity of the particle and no angular velocity. Quantities are converted into G=1 units. See [12].
PkdgravOutput::PkdgravOutput | ( | const OutputFile & | fileMask, |
PkdgravParams && | params | ||
) |
Definition at line 1351 of file Output.cpp.
|
overridevirtual |
Saves data from particle storage into the file.
Returns the filename of the dump, generated from file mask given in constructor, or an error message in case writing the output file failed.
Implements IOutput.
Definition at line 1357 of file Output.cpp.