|
ESyS-Particle
4.0.1
|
Class for master part of a vector field which is defined on all particles. More...
#include <VectorInteractionFieldMaster.h>


Public Types | |
|
typedef std::pair < esys::lsm::quintuple< Vec3, double, Vec3, double, Vec3 > , Vec3 > | IVecData2 |
|
typedef std::pair < esys::lsm::triplet< int, int, Vec3 >, Vec3 > | DataWithID |
|
typedef std::pair < esys::lsm::quintuple< int, int, Vec3, Vec3, Vec3 >, Vec3 > | DataWithPosID |
Public Member Functions | |
| VectorInteractionFieldMaster (TML_Comm *, const string &, const string &, const string &, const string &, const string &, int, int, int, bool) | |
| virtual void | collect () |
Protected Member Functions | |
| virtual void | writeAsDX () |
| virtual void | writeAsSUM () |
| virtual void | writeAsMAX () |
| virtual void | writeAsRAW_SERIES () |
| virtual void | writeAsRAW2 () |
| virtual void | writeAsRawWithID () |
| virtual void | writeAsRawWithPosID () |
| void | collectFull () |
| void | collectSum () |
| void | collectMax () |
| void | collectFull2 () |
| void | collectFullWithID () |
| void | collectFullWithPosID () |
Protected Attributes | |
| vector< IVecData2 > | m_data2 |
| vector< DataWithID > | m_data_with_id |
| vector< DataWithPosID > | m_data_with_pos_id |
| vector< pair< Vec3, Vec3 > > | m_data |
| vector< Vec3 > | m_sum_vec |
Class for master part of a vector field which is defined on all particles.
| VectorInteractionFieldMaster::VectorInteractionFieldMaster | ( | TML_Comm * | comm, |
| const string & | fieldname, | ||
| const string & | igtype, | ||
| const string & | igname, | ||
| const string & | filename, | ||
| const string & | savetype, | ||
| int | t0, | ||
| int | tend, | ||
| int | dt, | ||
| bool | checked | ||
| ) |
Constructor. Setup master and broadcast parameters to slaves
| comm | the communicator |
| fieldname | the name of the field to be saved |
| igtype | the type of interaction group for which the field is saved |
| igname | the name of the interaction group for which the field is 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 |
| checked | choose between "full" and "checked" fields |
References TML_Comm::broadcast(), and TML_Comm::broadcast_cont().

| void VectorInteractionFieldMaster::collectFull | ( | ) | [protected] |
collect full data set
References TML_Comm::broadcast(), and TML_Comm::gather().

| void VectorInteractionFieldMaster::collectFull2 | ( | ) | [protected] |
collect full data set, both particle positions
References TML_Comm::broadcast(), TML_Comm::gather(), and BasicCon::XDebug().

| void VectorInteractionFieldMaster::collectFullWithID | ( | ) | [protected] |
collect data and <pid1,pid2,pos> info
References TML_Comm::broadcast(), TML_Comm::gather(), and BasicCon::XDebug().

| void VectorInteractionFieldMaster::collectFullWithPosID | ( | ) | [protected] |
collect data and <pid1,pid2,pos1,pos2,ipos> info
References TML_Comm::broadcast(), TML_Comm::gather(), and BasicCon::XDebug().

| void VectorInteractionFieldMaster::collectSum | ( | ) | [protected] |
collect sum of values only
References TML_Comm::broadcast(), and TML_Comm::gather().

| void VectorInteractionFieldMaster::writeAsDX | ( | ) | [protected, virtual] |
write data out as OpenDX compatible file
Reimplemented from AFieldMaster.
References AFieldMaster::makeFilename().

| void VectorInteractionFieldMaster::writeAsRAW2 | ( | ) | [protected, virtual] |
write data as pos1,pos2,value groups
Reimplemented from AFieldMaster.
References BasicCon::Error(), AFieldMaster::makeFilename(), and BasicCon::XDebug().

| void VectorInteractionFieldMaster::writeAsRawWithID | ( | ) | [protected, virtual] |
write data as pid1,pid2,ipos,value groups
Reimplemented from AFieldMaster.
References BasicCon::Error(), AFieldMaster::makeFilename(), and BasicCon::XDebug().

| void VectorInteractionFieldMaster::writeAsRawWithPosID | ( | ) | [protected, virtual] |
write data as pid1,pid2,ipos,value groups
Reimplemented from AFieldMaster.
References BasicCon::Error(), AFieldMaster::makeFilename(), and BasicCon::XDebug().

| void VectorInteractionFieldMaster::writeAsSUM | ( | ) | [protected, virtual] |
sum data and write them out into a single continuous file
Reimplemented from AFieldMaster.
1.7.6.1