ESyS-Particle
4.0.1
|
Class for master part of a vector field which is defined on all particles. More...
#include <ParticleFieldMaster.h>
Public Member Functions | |
VectorParticleFieldMaster (TML_Comm *, const string &, const string &, const string &, int, int, int) | |
VectorParticleFieldMaster (TML_Comm *, const string &, const string &, const string &, int, int, int, int, int) | |
void | collect () |
![]() | |
AFieldMaster (TML_Comm *, const string &, const string &, const string &, int, int, int) | |
virtual bool | needSave (int) |
virtual void | write () |
Protected Member Functions | |
virtual void | writeAsDX () |
virtual void | writeAsPOV () |
virtual void | writeAsSILO () |
virtual void | writeAsSUM () |
virtual void | writeAsMAX () |
virtual void | writeAsRAW_SERIES () |
virtual void | writeAsRAW2 () |
![]() | |
string | makeFilename () |
virtual void | writeAsRAW () |
virtual void | writeAsRawWithID () |
virtual void | writeAsRawWithPosID () |
Protected Attributes | |
map< int, Vec3 > | m_save_map |
map< int, Vec3 > | m_pos_map |
![]() | |
TML_Comm * | m_comm |
string | m_field_name |
string | m_file_name |
int | m_t0 |
int | m_tend |
int | m_dt |
int | m_id |
int | m_save_count |
int | m_write_type |
Class for master part of a vector field which is defined on all particles.
VectorParticleFieldMaster::VectorParticleFieldMaster | ( | TML_Comm * | comm, |
const string & | fieldname, | ||
const string & | filename, | ||
const string & | savetype, | ||
int | t0, | ||
int | tend, | ||
int | dt | ||
) |
Constructor. Set up the Master and broadcast parameters to the slaves.
comm | the communicator |
fieldname | the name of the field to be saved |
filename | the name of the file to be saved into or the base for the generation of the filenames if the saving format requires multiple files |
savetype | the way to save data, currently supported are DX,SUM |
t0 | the first timestep to be saved |
tend | the last timestep to be saved |
dt | the interval between timesteps to be saving |
References TML_Comm::broadcast(), and TML_Comm::broadcast_cont().
VectorParticleFieldMaster::VectorParticleFieldMaster | ( | TML_Comm * | comm, |
const string & | fieldname, | ||
const string & | filename, | ||
const string & | savetype, | ||
int | t0, | ||
int | tend, | ||
int | dt, | ||
int | tag, | ||
int | mask | ||
) |
Constructor. Set up the Master and broadcast parameters to the slaves.
comm | the communicator |
fieldname | the name of the field to be saved |
filename | the name of the file to be saved into or the base for the generation of the filenames if the saving format requires multiple files |
savetype | the way to save data, currently supported are DX,SUM |
t0 | the first timestep to be saved |
tend | the last timestep to be saved |
dt | the interval between timesteps to be saving |
tag | the tag of the particles to be saved |
mask | the mask to be applied to the tag |
References TML_Comm::broadcast(), and TML_Comm::broadcast_cont().
|
protectedvirtual |
write data out as OpenDX compatible file
Reimplemented from AFieldMaster.
References AFieldMaster::makeFilename().
|
protectedvirtual |
get max datum and write it out into a single continuous file
Reimplemented from AFieldMaster.
|
protectedvirtual |
|
protectedvirtual |
write data as raw position, value pairs, one time step per file
Reimplemented from AFieldMaster.
References AFieldMaster::makeFilename().
|
protectedvirtual |
write data as a raw series of values, one row of values per time step, all timesteps into the same file
Reimplemented from AFieldMaster.
|
protectedvirtual |
write data out as SILO file (if supported)
Reimplemented from AFieldMaster.
References BasicCon::Error().
|
protectedvirtual |
sum data and write them out into a single continuous file
Reimplemented from AFieldMaster.