SPH
Public Member Functions | List of all members
PkdgravOutput Class Reference

Dumps data into a file that can be used as an input for pkdgrav code by Richardson et al. More...

#include <Output.h>

Inheritance diagram for PkdgravOutput:
IOutput Polymorphic

Public Member Functions

 PkdgravOutput (const OutputFile &fileMask, PkdgravParams &&params)
 
virtual Expected< Pathdump (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
 

Detailed Description

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].

Definition at line 533 of file Output.h.

Constructor & Destructor Documentation

◆ PkdgravOutput()

PkdgravOutput::PkdgravOutput ( const OutputFile fileMask,
PkdgravParams &&  params 
)

Definition at line 1351 of file Output.cpp.

Member Function Documentation

◆ dump()

Expected< Path > PkdgravOutput::dump ( const Storage storage,
const Statistics stats 
)
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.


The documentation for this class was generated from the following files: