ESyS-Particle  2.3.4
VectorWallFieldMaster Class Reference

Master part of vector field on walls. More...

#include <WallFieldMaster.h>

Inheritance diagram for VectorWallFieldMaster:
Collaboration diagram for VectorWallFieldMaster:

Public Member Functions

 VectorWallFieldMaster (TML_Comm *, const string &, const string &, vector< string >, const string &, int, int, int)
 
virtual ~VectorWallFieldMaster ()
 
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 writeAsRAW_SERIES ()
 
virtual void writeAsSILO ()
 
- Protected Member Functions inherited from AFieldMaster
string makeFilename ()
 
virtual void writeAsDX ()
 
virtual void writeAsPOV ()
 
virtual void writeAsSUM ()
 
virtual void writeAsMAX ()
 
virtual void writeAsRAW2 ()
 
virtual void writeAsRAW ()
 
virtual void writeAsRawWithID ()
 
virtual void writeAsRawWithPosID ()
 

Protected Attributes

map< int, Vec3m_data
 
int m_sum_flag
 
- 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 vector field on walls.

$Revision$ $Date$

Constructor & Destructor Documentation

◆ VectorWallFieldMaster()

VectorWallFieldMaster::VectorWallFieldMaster ( TML_Comm comm,
const string &  fieldname,
const string &  filename,
vector< string >  walls,
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
wallsthe names of the walls
savetypethe way in which the data are to be saved - only RAW_SERIES supported at the moment
t0the first timestep to be saved
tendthe last timestep to be saved
dtthe interval between timesteps to be saving

References TML_Comm::barrier(), TML_Comm::broadcast(), TML_Comm::broadcast_cont(), console, esys::lsm::bpu::iter(), AFieldMaster::m_comm, AFieldMaster::m_id, m_sum_flag, TML_Comm::receive(), and Console::XDebug().

Here is the call graph for this function:

◆ ~VectorWallFieldMaster()

virtual VectorWallFieldMaster::~VectorWallFieldMaster ( )
inlinevirtual

Member Function Documentation

◆ collect()

void VectorWallFieldMaster::collect ( )
virtual

◆ writeAsRAW_SERIES()

void VectorWallFieldMaster::writeAsRAW_SERIES ( )
protectedvirtual

write the data out as series of raw data, i.e.

x_0,0 y_0,0 z_0,0 x_1,0 y_1,0 z_1,0... x_0,1 y_0,1 z_0,1 x_1,1 y_1,1 z_1,1... ... where x_i,j is the x-value from wall i at time j

Reimplemented from AFieldMaster.

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

Here is the call graph for this function:

◆ writeAsSILO()

void VectorWallFieldMaster::writeAsSILO ( )
protectedvirtual

write data out as SILO file (if supported)

Reimplemented from AFieldMaster.

References console, Console::Error(), esys::lsm::bpu::iter(), m_data, AFieldMaster::m_field_name, NULL, openSiloFile(), Vec3::X(), Vec3::Y(), and Vec3::Z().

Here is the call graph for this function:

Member Data Documentation

◆ m_data

map<int,Vec3> VectorWallFieldMaster::m_data
protected

◆ m_sum_flag

int VectorWallFieldMaster::m_sum_flag
protected

Referenced by collect(), and VectorWallFieldMaster().


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