ESyS-Particle  2.3.4
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:
Collaboration diagram for VectorTriangleFieldMaster:

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

Here is the call graph for this function:

◆ ~VectorTriangleFieldMaster()

VectorTriangleFieldMaster::~VectorTriangleFieldMaster ( )

Destructor - does nothing

Member Function Documentation

◆ collect()

void VectorTriangleFieldMaster::collect ( )
virtual

Call the actual collection function according to the savetype

Implements AFieldMaster.

References TML_Comm::broadcast(), collectFull(), collectFullDX(), AFieldMaster::m_comm, AFieldMaster::m_id, AFieldMaster::m_write_type, and WRITE_TYPE_DX.

Here is the call graph for this function:

◆ collectFull()

void VectorTriangleFieldMaster::collectFull ( )
protected

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

References TML_Comm::broadcast(), COLL_TYPE_FULL, console, TML_Comm::gather(), esys::lsm::bpu::iter(), AFieldMaster::m_comm, m_data, and Console::XDebug().

Referenced by collect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ collectFullDX()

void VectorTriangleFieldMaster::collectFullDX ( )
protected

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

References console, and Console::XDebug().

Referenced by collect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void VectorTriangleFieldMaster::write ( )
virtual

Call the actual writing function according to the savetype

Reimplemented from AFieldMaster.

References AFieldMaster::m_write_type, WRITE_TYPE_DX, WRITE_TYPE_RAW, writeAsDX(), and writeAsRAW().

Here is the call graph for this function:

◆ writeAsDX()

void VectorTriangleFieldMaster::writeAsDX ( )
protectedvirtual

write the field in a DX-compatible file

Reimplemented from AFieldMaster.

References console, and Console::XDebug().

Referenced by write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeAsMAX()

virtual void VectorTriangleFieldMaster::writeAsMAX ( )
inlineprotectedvirtual

Reimplemented from AFieldMaster.

◆ writeAsRAW()

void VectorTriangleFieldMaster::writeAsRAW ( )
protectedvirtual

Write the field as raw id,value groups

Reimplemented from AFieldMaster.

References console, esys::lsm::bpu::iter(), m_data, AFieldMaster::makeFilename(), and Console::XDebug().

Referenced by write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeAsRAW_SERIES()

virtual void VectorTriangleFieldMaster::writeAsRAW_SERIES ( )
inlineprotectedvirtual

Reimplemented from AFieldMaster.

◆ writeAsSUM()

virtual void VectorTriangleFieldMaster::writeAsSUM ( )
inlineprotectedvirtual

Reimplemented from AFieldMaster.

Member Data Documentation

◆ m_data

map<int,Vec3> VectorTriangleFieldMaster::m_data
protected

Referenced by collectFull(), and writeAsRAW().


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