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


Public Member Functions | |
| ScalarParticleFieldMaster (TML_Comm *, const string &, const string &, const string &, int, int, int) | |
| ScalarParticleFieldMaster (TML_Comm *, const string &, const string &, const string &, int, int, int, int, int) | |
| virtual | ~ScalarParticleFieldMaster () |
| virtual void | collect () |
Public Member Functions inherited from AFieldMaster | |
| AFieldMaster (TML_Comm *, const string &, const string &, const string &, int, int, int) | |
| virtual | ~AFieldMaster () |
| 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 | writeAsRawWithPosID () |
| void | collectFull () |
| void | collectSum () |
Protected Member Functions inherited from AFieldMaster | |
| string | makeFilename () |
| virtual void | writeAsRAW2 () |
| virtual void | writeAsRAW () |
| virtual void | writeAsRawWithID () |
Protected Attributes | |
| map< int, double > | m_save_map |
| map< int, double > | m_rad_map |
| map< int, Vec3 > | m_pos_map |
Protected Attributes inherited from AFieldMaster | |
| 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 scalar field which is defined on all particles.
| ScalarParticleFieldMaster::ScalarParticleFieldMaster | ( | 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(), TML_Comm::broadcast_cont(), AFieldMaster::m_comm, and AFieldMaster::m_id.

| ScalarParticleFieldMaster::ScalarParticleFieldMaster | ( | 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(), TML_Comm::broadcast_cont(), AFieldMaster::m_comm, and AFieldMaster::m_id.

|
inlinevirtual |
|
virtual |
Implements AFieldMaster.
Reimplemented in ScalarParticleDistributionMaster.
References TML_Comm::broadcast(), collectFull(), collectSum(), AFieldMaster::m_comm, AFieldMaster::m_id, AFieldMaster::m_write_type, WRITE_TYPE_MAX, and WRITE_TYPE_SUM.

|
protected |
collect the full set of data, i.e. value, and posn,size of particles
References TML_Comm::broadcast(), TML_Comm::gather(), esys::lsm::bpu::iter(), AFieldMaster::m_comm, m_pos_map, m_rad_map, and m_save_map.
Referenced by collect(), and ScalarParticleDistributionMaster::collect().


|
protected |
collect sum of values only
References TML_Comm::broadcast(), TML_Comm::gather(), esys::lsm::bpu::iter(), AFieldMaster::m_comm, m_save_map, and AFieldMaster::m_write_type.
Referenced by collect().


|
protectedvirtual |
write data out as OpenDX compatible file
Reimplemented from AFieldMaster.
References esys::lsm::bpu::iter(), AFieldMaster::m_field_name, m_pos_map, m_rad_map, m_save_map, and AFieldMaster::makeFilename().

|
protectedvirtual |
find max datum and write it out into a single continuous file
Reimplemented from AFieldMaster.
References esys::lsm::bpu::iter(), AFieldMaster::m_file_name, m_pos_map, m_rad_map, and m_save_map.

|
protectedvirtual |
write data out as Povray(>=3.0) compatible file
Reimplemented from AFieldMaster.
References cmax(), cmin(), esys::lsm::bpu::iter(), m_pos_map, m_rad_map, m_save_map, and 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.
References esys::lsm::bpu::iter(), AFieldMaster::m_file_name, m_pos_map, m_rad_map, and m_save_map.

|
protectedvirtual |
write data as raw id, position, radius, value, one time step per file
Reimplemented from AFieldMaster.
References esys::lsm::bpu::iter(), m_pos_map, m_rad_map, m_save_map, and AFieldMaster::makeFilename().

|
protectedvirtual |
write data out as SILO file (if supported)
Reimplemented from AFieldMaster.
References console, Console::Error(), esys::lsm::bpu::iter(), AFieldMaster::m_field_name, m_pos_map, m_rad_map, m_save_map, NULL, openSiloFile(), Vec3::X(), Vec3::Y(), and Vec3::Z().

|
protectedvirtual |
sum data and write them out into a single continuous file
Reimplemented from AFieldMaster.
References esys::lsm::bpu::iter(), AFieldMaster::m_file_name, m_pos_map, m_rad_map, and m_save_map.

|
protected |
|
protected |
|
protected |