ESyS-Particle  2.3.4
AFieldMaster Class Referenceabstract

Abstract base class for master part of field. More...

#include <FieldMaster.h>

Inheritance diagram for AFieldMaster:
Collaboration diagram for AFieldMaster:

Public Member Functions

 AFieldMaster (TML_Comm *, const string &, const string &, const string &, int, int, int)
 
virtual ~AFieldMaster ()
 
virtual bool needSave (int)
 
virtual void collect ()=0
 
virtual void write ()
 

Protected Member Functions

string makeFilename ()
 
virtual void writeAsDX ()
 
virtual void writeAsPOV ()
 
virtual void writeAsSILO ()
 
virtual void writeAsSUM ()
 
virtual void writeAsMAX ()
 
virtual void writeAsRAW_SERIES ()
 
virtual void writeAsRAW2 ()
 
virtual void writeAsRAW ()
 
virtual void writeAsRawWithID ()
 
virtual void writeAsRawWithPosID ()
 

Protected Attributes

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
 

Static Private Attributes

static int s_field_count =0
 

Detailed Description

Abstract base class for master part of field.

Constructor & Destructor Documentation

◆ AFieldMaster()

AFieldMaster::AFieldMaster ( TML_Comm comm,
const string &  fieldname,
const string &  filename,
const string &  savetype,
int  t0,
int  tend,
int  dt 
)

construct AFieldMaster

Parameters
commthe TML communicator to be used
fieldnamethe name of the field to be saved
filenamethe name of the output file
savetypethe output file format. Recognized formats: DX, POV
t0first timestep to be saved
tendlast timestep to be saved
dtsave every dt timesteps

References m_comm, m_dt, m_field_name, m_file_name, m_id, m_save_count, m_t0, m_tend, m_write_type, s_field_count, WRITE_TYPE_DX, WRITE_TYPE_MAX, WRITE_TYPE_POV, WRITE_TYPE_RAW, WRITE_TYPE_RAW2, WRITE_TYPE_RAW_SERIES, WRITE_TYPE_RAW_WITH_ID, WRITE_TYPE_RAW_WITH_POS_ID, WRITE_TYPE_SILO, and WRITE_TYPE_SUM.

◆ ~AFieldMaster()

virtual AFieldMaster::~AFieldMaster ( )
inlinevirtual

Member Function Documentation

◆ collect()

◆ makeFilename()

◆ needSave()

bool AFieldMaster::needSave ( int  t)
virtual

Reimplemented in ScalarParticleDistributionMaster.

References m_dt, m_t0, and m_tend.

◆ write()

◆ writeAsDX()

virtual void AFieldMaster::writeAsDX ( )
inlineprotectedvirtual

Reimplemented in VectorTriangleFieldMaster, VectorInteractionFieldMaster, ScalarTriangleFieldMaster, VectorParticleFieldMaster, ScalarParticleFieldMaster, and ScalarInteractionFieldMaster.

References console, and Console::Error().

Referenced by write().

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

◆ writeAsMAX()

virtual void AFieldMaster::writeAsMAX ( )
inlineprotectedvirtual

Reimplemented in VectorTriangleFieldMaster, VectorInteractionFieldMaster, ScalarTriangleFieldMaster, VectorParticleFieldMaster, ScalarParticleFieldMaster, and ScalarInteractionFieldMaster.

References console, and Console::Error().

Referenced by write().

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

◆ writeAsPOV()

virtual void AFieldMaster::writeAsPOV ( )
inlineprotectedvirtual

Reimplemented in VectorParticleFieldMaster, and ScalarParticleFieldMaster.

References console, and Console::Error().

Referenced by write().

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

◆ writeAsRAW()

virtual void AFieldMaster::writeAsRAW ( )
inlineprotectedvirtual

Reimplemented in VectorTriangleFieldMaster, ScalarTriangleFieldMaster, and ScalarInteractionFieldMaster.

References console, and Console::Error().

Referenced by write().

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

◆ writeAsRAW2()

virtual void AFieldMaster::writeAsRAW2 ( )
inlineprotectedvirtual

Reimplemented in VectorInteractionFieldMaster, VectorParticleFieldMaster, and ScalarInteractionFieldMaster.

References console, and Console::Error().

Referenced by write().

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

◆ writeAsRAW_SERIES()

virtual void AFieldMaster::writeAsRAW_SERIES ( )
inlineprotectedvirtual

Reimplemented in VectorWallFieldMaster, VectorTriangleFieldMaster, VectorInteractionFieldMaster, ScalarTriangleFieldMaster, VectorParticleFieldMaster, ScalarParticleFieldMaster, and ScalarInteractionFieldMaster.

References console, and Console::Error().

Referenced by write().

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

◆ writeAsRawWithID()

virtual void AFieldMaster::writeAsRawWithID ( )
inlineprotectedvirtual

Reimplemented in VectorInteractionFieldMaster, VectorParticleFieldMaster, and ScalarInteractionFieldMaster.

References console, and Console::Error().

Referenced by write().

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

◆ writeAsRawWithPosID()

virtual void AFieldMaster::writeAsRawWithPosID ( )
inlineprotectedvirtual

Reimplemented in VectorInteractionFieldMaster, ScalarParticleFieldMaster, and ScalarInteractionFieldMaster.

References console, and Console::Error().

Referenced by write().

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

◆ writeAsSILO()

virtual void AFieldMaster::writeAsSILO ( )
inlineprotectedvirtual

Reimplemented in VectorWallFieldMaster, VectorParticleFieldMaster, and ScalarParticleFieldMaster.

References console, and Console::Error().

Referenced by write().

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

◆ writeAsSUM()

virtual void AFieldMaster::writeAsSUM ( )
inlineprotectedvirtual

Reimplemented in VectorTriangleFieldMaster, VectorInteractionFieldMaster, ScalarTriangleFieldMaster, VectorParticleFieldMaster, ScalarParticleFieldMaster, and ScalarInteractionFieldMaster.

References console, and Console::Error().

Referenced by write().

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

Member Data Documentation

◆ m_comm

◆ m_dt

int AFieldMaster::m_dt
protected

◆ m_field_name

◆ m_file_name

◆ m_id

◆ m_save_count

int AFieldMaster::m_save_count
protected

Referenced by AFieldMaster(), and makeFilename().

◆ m_t0

int AFieldMaster::m_t0
protected

◆ m_tend

int AFieldMaster::m_tend
protected

◆ m_write_type

◆ s_field_count

int AFieldMaster::s_field_count =0
staticprivate

Referenced by AFieldMaster().


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