ESyS-Particle  4.0.1
Public Member Functions | Protected Member Functions | Protected Attributes
ScalarParticleFieldMaster Class Reference

Class for master part of a scalar field which is defined on all particles. More...

#include <ParticleFieldMaster.h>

Inheritance diagram for ScalarParticleFieldMaster:
Inheritance graph
[legend]
Collaboration diagram for ScalarParticleFieldMaster:
Collaboration graph
[legend]

List of all members.

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 void collect ()

Protected Member Functions

virtual void writeAsDX ()
virtual void writeAsPOV ()
virtual void writeAsSILO ()
virtual void writeAsSUM ()
virtual void writeAsMAX ()
virtual void writeAsRAW_SERIES ()
void collectFull ()
void collectSum ()

Protected Attributes

map< int, double > m_save_map
map< int, double > m_rad_map
map< int, Vec3m_pos_map

Detailed Description

Class for master part of a scalar field which is defined on all particles.

Author:
Steffen Abe $Revision$ $Date$

Constructor & Destructor Documentation

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.

Parameters:
commthe communicator
fieldnamethe name of the field to be saved
filenamethe name of the file to be saved into or the base for the generation of the filenames if the saving format requires multiple files
savetypethe way to save data, currently supported are DX,SUM
t0the first timestep to be saved
tendthe last timestep to be saved
dtthe interval between timesteps to be saving

References TML_Comm::broadcast(), and TML_Comm::broadcast_cont().

Here is the call graph for this function:

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.

Parameters:
commthe communicator
fieldnamethe name of the field to be saved
filenamethe name of the file to be saved into or the base for the generation of the filenames if the saving format requires multiple files
savetypethe way to save data, currently supported are DX,SUM
t0the first timestep to be saved
tendthe last timestep to be saved
dtthe interval between timesteps to be saving
tagthe tag of the particles to be saved
maskthe mask to be applied to the tag

References TML_Comm::broadcast(), and TML_Comm::broadcast_cont().

Here is the call graph for this function:


Member Function Documentation

collect the full set of data, i.e. value, and posn,size of particles

References TML_Comm::broadcast(), and TML_Comm::gather().

Referenced by ScalarParticleDistributionMaster::collect().

Here is the call graph for this function:

Here is the caller graph for this function:

collect sum of values only

References TML_Comm::broadcast(), and TML_Comm::gather().

Here is the call graph for this function:

void ScalarParticleFieldMaster::writeAsDX ( ) [protected, virtual]

write data out as OpenDX compatible file

Todo:
desciption

Reimplemented from AFieldMaster.

References AFieldMaster::makeFilename().

Here is the call graph for this function:

void ScalarParticleFieldMaster::writeAsMAX ( ) [protected, virtual]

find max datum and write it out into a single continuous file

Reimplemented from AFieldMaster.

void ScalarParticleFieldMaster::writeAsPOV ( ) [protected, virtual]

write data out as Povray(>=3.0) compatible file

Warning:
not fully impl.

Reimplemented from AFieldMaster.

References AFieldMaster::makeFilename().

Here is the call graph for this function:

void ScalarParticleFieldMaster::writeAsRAW_SERIES ( ) [protected, virtual]

write data as a raw series of values, one row of values per time step, all timesteps into the same file

Reimplemented from AFieldMaster.

void ScalarParticleFieldMaster::writeAsSILO ( ) [protected, virtual]

write data out as SILO file (if supported)

Reimplemented from AFieldMaster.

References BasicCon::Error().

Here is the call graph for this function:

void ScalarParticleFieldMaster::writeAsSUM ( ) [protected, virtual]

sum data and write them out into a single continuous file

Warning:
n

Reimplemented from AFieldMaster.


The documentation for this class was generated from the following files: