Documentation 6b54b78464
Loading...
Searching...
No Matches
CTecplotBinaryFileWriter Class Referencefinal

#include <CTecplotBinaryFileWriter.hpp>

Inheritance diagram for CTecplotBinaryFileWriter:
[legend]

Classes

class  NodePartitioner
 Calculate the partitioning of nodes to determine: (a) For a given global node number, to which partition does it belong and what is its local node number; and (b) How many nodes are held by each partition. More...
 

Public Member Functions

 CTecplotBinaryFileWriter (CParallelDataSorter *valDataSorter, unsigned long valTimeIter, su2double valTimeStep)
 Construct a file writer using field names and the data sorter.
 
 ~CTecplotBinaryFileWriter () override
 Destructor.
 
void WriteData (string val_filename) override
 Write sorted data to file in tecplot binary file format.
 
int64_t GetHaloNodeNumber (unsigned long global_node_number, unsigned long last_local_node, vector< unsigned long > const &halo_node_list)
 
- Public Member Functions inherited from CFileWriter
 CFileWriter (CParallelDataSorter *valDataSorter, string valFileExt)
 Construct a file writer using field names, the data sorter and the file extension.
 
 CFileWriter (string valFileExt)
 Construct a file writer using field names, file extension.
 
virtual ~CFileWriter ()
 Destructor.
 
su2double GetBandwidth () const
 Get the bandwith used for the last writing.
 
su2double GetFilesize () const
 Get the filesize of the last written file.
 
su2double GetUsedTime () const
 Get the used time of the last file writing.
 

Static Public Attributes

static const string fileExt = ".szplt"
 File extension.
 

Additional Inherited Members

- Protected Member Functions inherited from CFileWriter
unsigned long DetermineFilesize (std::string filename)
 Determine the file size.
 
bool WriteMPIBinaryDataAll (const void *data, unsigned long sizeInBytes, unsigned long totalSizeInBytes, unsigned long offset)
 Collectively write a binary data array distributed over all processors to file using MPI I/O.
 
bool WriteMPIBinaryData (const void *data, unsigned long sizeInBytes, unsigned short processor)
 Write a binary data array to a currently opened file using MPI I/O. Note: routine must be called collectively, although only one processor writes its data.
 
bool WriteMPIString (const std::string &str, unsigned short processor)
 Write a string to a currently opened file using MPI I/O. Note: routine must be called collectively, although only one processor writes the string.
 
std::pair< unsigned long, unsigned long > GetRankOffset (unsigned long localCount) const
 Get the position of the data of this rank in an array that holds the data of all ranks in rank order.
 
bool WriteMPIStringAll (const std::string &str)
 Write a string of each rank to the file, one after the other in rank order.
 
bool OpenMPIFile (string val_filename, bool append=false)
 Open a file to write using MPI I/O. Already existing file is deleted.
 
bool CloseMPIFile ()
 Close a file using MPI I/O.
 
- Protected Attributes inherited from CFileWriter
int rank
 The MPI rank.
 
int size
 The MPI size, aka the number of processors.
 
std::string fileExt
 The file extension to be attached to the filename.
 
su2double startTime
 Start time for time measurement

 
su2double stopTime
 Stop time for time measurement

 
su2double usedTime
 Used time for time measurement

 
su2double bandwidth
 Used bandwidth

 
su2double fileSize
 Size of the last written file

 
CParallelDataSorter * dataSorter
 The parallel data sorter.
 
FILE * fhw
 The file handle for writing.
 

Constructor & Destructor Documentation

◆ CTecplotBinaryFileWriter()

CTecplotBinaryFileWriter::CTecplotBinaryFileWriter ( CParallelDataSorter *  valDataSorter,
unsigned long  valTimeIter,
su2double  valTimeStep 
)

Construct a file writer using field names and the data sorter.

Parameters
[in]valDataSorter- The parallel sorted data to write
[in]valTimeIter- The current time iteration
[in]valTimeStep- The current physical time step value

◆ ~CTecplotBinaryFileWriter()

CTecplotBinaryFileWriter::~CTecplotBinaryFileWriter ( )
overridedefault

Destructor.

Member Function Documentation

◆ GetHaloNodeNumber()

int64_t CTecplotBinaryFileWriter::GetHaloNodeNumber ( unsigned long  global_node_number,
unsigned long  last_local_node,
vector< unsigned long > const &  halo_node_list 
)

◆ WriteData()

void CTecplotBinaryFileWriter::WriteData ( string  val_filename)
overridevirtual

Write sorted data to file in tecplot binary file format.

Parameters
[in]val_filename- The name of the file

Reimplemented from CFileWriter.

Member Data Documentation

◆ fileExt

const string CTecplotBinaryFileWriter::fileExt = ".szplt"
static

File extension.


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