|
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) |
|
| 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. This class accepts math expressions to be evaluated during the file parsing.
- Note
- Comments are allowed using the symbol
"#"
, 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:
" "
","
";"
"("
")"
"["
"]"
"{"
"}"
- tabulator
- Warning
- Saving the particles data in plain text format may be heavily hard disk demanding, and therefore it is strongly recommended to consider binary formats like Aqua::InputOutput::VTK.