AQUAgpusph 4.1.2
|
Plain text particles data files loader/saver. More...
#include <InputOutput/FastASCII.h>
Public Member Functions | |
FastASCII (ProblemSetup &sim_data, unsigned int iset, unsigned int offset, unsigned int n=0) | |
Constructor. | |
~FastASCII () | |
Destructor. | |
Public Member Functions inherited from Aqua::InputOutput::ASCII | |
ASCII (ProblemSetup &sim_data, unsigned int iset, unsigned int offset, unsigned int n=0) | |
Constructor. | |
virtual | ~ASCII () |
Destructor. | |
void | save (float t) |
Save the data. | |
void | load () |
Load the data. | |
Public Member Functions inherited from Aqua::InputOutput::Particles | |
Particles (ProblemSetup &sim_data, unsigned int iset, unsigned int offset, unsigned int n=0) | |
Constructor. | |
virtual | ~Particles () |
Destructor. | |
const std::string | file () |
Get the last printed file path. | |
unsigned int | n () |
Get the number of particles managed by this instance. | |
virtual void | waitForSavers () |
Wait for the eventual parallel saving threads. | |
virtual void | save (float t)=0 |
Save the data. | |
virtual void | load ()=0 |
Load the data. | |
Additional Inherited Members | |
Protected Member Functions inherited from Aqua::InputOutput::Particles | |
ProblemSetup & | simData () |
Get the simulation data structure. | |
void | n (unsigned int n) |
Set the number of particles managed by this instance. | |
const uivec2 | bounds () const |
Get the particle index bounds of the "set of particles" managed by this class. | |
const 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) |
std::vector< void * > | download (std::vector< std::string > fields) |
Protected Member Functions inherited from Aqua::InputOutput::InputOutput | |
InputOutput () | |
Constructor. | |
virtual | ~InputOutput () |
Destructor. | |
Plain text particles data files loader/saver.
These files are formatted as ASCCI plain text where the particles data are stored by rows, and where the fields are separated by columns.
"#"
, such that all the text after this symbol, and in the same line, will be discarded. The fields can be separated by the following symbols:" "
","
";"
"("
")"
"["
"]"
"{"
"}"
Aqua::InputOutput::FastASCII::FastASCII | ( | ProblemSetup & | sim_data, |
unsigned int | iset, | ||
unsigned int | offset, | ||
unsigned int | 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::FastASCII::~FastASCII | ( | ) |
Destructor.