|
AQUAgpusph 5.0.4
|
VTK particles data files loader/saver. More...
#include <VTK.hpp>


Public Member Functions | |
| VTK (ProblemSetup &sim_data, unsigned int iset, size_t offset, size_t n=0) | |
| Constructor. | |
| ~VTK () | |
| Destructor. | |
| void | save (float t) |
| Save the data. | |
| void | load () |
| Load the data. | |
| void | print_file () final |
| Print the data to a file. | |
| Public Member Functions inherited from Aqua::InputOutput::Particles | |
| Particles (ProblemSetup &sim_data, unsigned int iset, size_t offset, size_t n=0) | |
| Constructor. | |
| virtual | ~Particles () |
| Destructor. | |
| const std::string & | file () const |
| Get the last printed file path. | |
| size_t | n () const |
| Get the number of particles managed by this instance. | |
| cl_event | getUserEvent () const |
| Get the user event to be waited for before the file saving is finished. | |
| virtual void | waitForSavers () |
| Wait for the eventual parallel saving threads. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Aqua::InputOutput::Particles | |
| const ProblemSetup & | simData () const |
| Get the simulation data structure. | |
| void | n (const size_t &n) |
| Set the number of particles managed by this instance. | |
| const ulvec2 | bounds () const |
| Get the particle index bounds of the "set of particles" managed by this class. | |
| unsigned int | setId () const |
| Get the "particles set" index associated with this class. | |
| void | loadDefault () |
| Register some default arrays: | |
| void | file (const std::string filename) |
| Set the file name. | |
| unsigned int | file (const std::string basename, unsigned int start_index, unsigned int digits=5) |
| float | time () const |
| Get the current simulation time to be written. | |
| cl_event | download (std::vector< std::string > fields) |
| Download the data from the device and store it. | |
| std::map< std::string, void * > | data () const |
| Get the stored memory objects where the device data has been downloaded. | |
| Protected Member Functions inherited from Aqua::InputOutput::InputOutput | |
| InputOutput () | |
| Constructor. | |
| virtual | ~InputOutput () |
| Destructor. | |
VTK particles data files loader/saver.
VTK is a visualization format, to learn more about it please visit the following web page:
This type of files can be easily post-processed with Paraview:
The fields to be saved/loaded are:
| Aqua::InputOutput::VTK::VTK | ( | ProblemSetup & | sim_data, |
| unsigned int | iset, | ||
| size_t | offset, | ||
| size_t | n = 0 ) |
Constructor.
| sim_data | Simulation data |
| iset | Particles set index. |
| offset | First particle managed by this saver/loader. |
| n | Number of particles managed by this saver/loader. If 0, the number of particles will be obtained from the input file (thus only valid for loaders) |

| Aqua::InputOutput::VTK::~VTK | ( | ) |
Destructor.
|
virtual |
Load the data.
Implements Aqua::InputOutput::InputOutput.
|
finalvirtual |
Print the data to a file.
Reimplemented from Aqua::InputOutput::Particles.
|
virtual |