ESyS-Particle  4.0.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VectorTriangleFieldMaster Class Reference

Master part of a vector field which is defined on the triangles in a given triangle mesh. More...

#include <VectorTriangleFieldMaster.h>

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

Public Member Functions

 VectorTriangleFieldMaster (TML_Comm *, const string &, const string &, const string &, const string &, int, int, int)
 ~VectorTriangleFieldMaster ()
virtual void collect ()
virtual void write ()
- Public Member Functions inherited from AFieldMaster
 AFieldMaster (TML_Comm *, const string &, const string &, const string &, int, int, int)
virtual bool needSave (int)

Protected Member Functions

virtual void writeAsDX ()
virtual void writeAsRAW ()
virtual void writeAsSUM ()
virtual void writeAsMAX ()
virtual void writeAsRAW_SERIES ()
void collectFull ()
void collectFullDX ()
- Protected Member Functions inherited from AFieldMaster
string makeFilename ()
virtual void writeAsPOV ()
virtual void writeAsSILO ()
virtual void writeAsRAW2 ()
virtual void writeAsRawWithID ()
virtual void writeAsRawWithPosID ()

Protected Attributes

map< int, Vec3m_data
- Protected Attributes inherited from AFieldMaster
TML_Commm_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

Detailed Description

Master part of a vector field which is defined on the triangles in a given triangle mesh.

Author
Steffen Abe $Revision$ $Date$

Constructor & Destructor Documentation

VectorTriangleFieldMaster::VectorTriangleFieldMaster ( TML_Comm comm,
const string &  fieldname,
const string &  meshname,
const string &  filename,
const string &  savetype,
int  t_0,
int  t_end,
int  dt 
)

Constructor. Send paramters to slaves

Parameters
commthe communicator
fieldnamethe name of the field to be saved
meshnamethe name of the mesh from which the field is taken
filenamethe name of the file the field is saved into
savetypethe format in which the data is to be saved
t_0first timestep to be saved
t_endlast timestep to be saved
dttimesteps between saves

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

Here is the call graph for this function:

VectorTriangleFieldMaster::~VectorTriangleFieldMaster ( )

Destructor - does nothing

Member Function Documentation

void VectorTriangleFieldMaster::collect ( )
virtual

Call the actual collection function according to the savetype

Implements AFieldMaster.

References TML_Comm::broadcast(), collectFull(), and collectFullDX().

Here is the call graph for this function:

void VectorTriangleFieldMaster::collectFull ( )
protected

collect the field data from the slaves, just id & field value for each triangle

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

Referenced by collect().

Here is the call graph for this function:

Here is the caller graph for this function:

void VectorTriangleFieldMaster::collectFullDX ( )
protected

collect the field data from the slaves, including node and connectivity info

References BasicCon::XDebug().

Referenced by collect().

Here is the call graph for this function:

Here is the caller graph for this function:

void VectorTriangleFieldMaster::write ( )
virtual

Call the actual writing function according to the savetype

Reimplemented from AFieldMaster.

References writeAsDX(), and writeAsRAW().

Here is the call graph for this function:

void VectorTriangleFieldMaster::writeAsDX ( )
protectedvirtual

write the field in a DX-compatible file

Reimplemented from AFieldMaster.

References BasicCon::XDebug().

Referenced by write().

Here is the call graph for this function:

Here is the caller graph for this function:

void VectorTriangleFieldMaster::writeAsRAW ( )
protectedvirtual

Write the field as raw id,value groups

Reimplemented from AFieldMaster.

References AFieldMaster::makeFilename(), and BasicCon::XDebug().

Referenced by write().

Here is the call graph for this function:

Here is the caller graph for this function:


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