preCICE v3.2.0
Loading...
Searching...
No Matches
precice::io::ExportVTP Class Reference

#include <ExportVTP.hpp>

Inheritance diagram for precice::io::ExportVTP:
[legend]
Collaboration diagram for precice::io::ExportVTP:
[legend]

Public Member Functions

 ExportVTP (std::string_view participantName, std::string_view location, const mesh::Mesh &mesh, ExportKind kind, int frequency, int rank, int size)
Public Member Functions inherited from precice::io::ExportXML
 ExportXML (std::string_view participantName, std::string_view location, const mesh::Mesh &mesh, ExportKind kind, int frequency, int rank, int size)
void doExport (int index, double time) final override
 Export the mesh and writes files.
void exportSeries () const final override
Public Member Functions inherited from precice::io::Export
virtual ~Export ()=default
 Export (std::string_view participantName, std::string_view location, const mesh::Mesh &mesh, ExportKind kind, int frequency, int rank, int size)
 Export (const Export &)=delete
 Export (Export &&)=delete
Exportoperator= (const Export &)=delete
Exportoperator= (Export &&)=delete

Private Member Functions

std::string getVTKFormat () const override
std::string getParallelExtension () const override
std::string getPieceExtension () const override
std::string getPieceAttributes (const mesh::Mesh &mesh) const override
void writeParallelCells (std::ostream &out) const override
void exportConnectivity (std::ostream &outFile, const mesh::Mesh &mesh) const override

Private Attributes

logging::Logger _log {"io::ExportVTP"}

Additional Inherited Members

Public Types inherited from precice::io::Export
enum struct  ExportKind : bool { TimeWindows , Iterations }
Static Public Member Functions inherited from precice::io::ExportXML
static void writeVertex (const Eigen::VectorXd &position, std::ostream &outFile)
static void writeLine (const mesh::Edge &edge, std::ostream &outFile)
static void writeTriangle (const mesh::Triangle &triangle, std::ostream &outFile)
static void writeTetrahedron (const mesh::Tetrahedron &tetra, std::ostream &outFile)
Protected Member Functions inherited from precice::io::Export
bool isParallel () const
std::string formatIndex (int index) const
bool keepExport (int index) const
void writeSeriesFile (std::string_view filename) const
void recordExport (std::string filename, double time)
Protected Attributes inherited from precice::io::Export
std::string _participantName
std::string _location
const mesh::Mesh *const _mesh
ExportKind _kind
int _frequency
int _rank
int _size
std::vector< Record_records

Detailed Description

Exporter for VTP and PVTP.

Writes meshes to VTP piece files. Parallel participants additionally write a PVTP file. The naming scheme allows to import these files into Paraview as time series.

Definition at line 24 of file ExportVTP.hpp.

Constructor & Destructor Documentation

◆ ExportVTP()

precice::io::ExportVTP::ExportVTP ( std::string_view participantName,
std::string_view location,
const mesh::Mesh & mesh,
ExportKind kind,
int frequency,
int rank,
int size )

Definition at line 10 of file ExportVTP.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ exportConnectivity()

void precice::io::ExportVTP::exportConnectivity ( std::ostream & outFile,
const mesh::Mesh & mesh ) const
overrideprivatevirtual

Implements precice::io::ExportXML.

Definition at line 57 of file ExportVTP.cpp.

Here is the call graph for this function:

◆ getParallelExtension()

std::string precice::io::ExportVTP::getParallelExtension ( ) const
overrideprivatevirtual

Implements precice::io::ExportXML.

Definition at line 26 of file ExportVTP.cpp.

◆ getPieceAttributes()

std::string precice::io::ExportVTP::getPieceAttributes ( const mesh::Mesh & mesh) const
overrideprivatevirtual

Implements precice::io::ExportXML.

Definition at line 36 of file ExportVTP.cpp.

Here is the call graph for this function:

◆ getPieceExtension()

std::string precice::io::ExportVTP::getPieceExtension ( ) const
overrideprivatevirtual

Implements precice::io::ExportXML.

Definition at line 31 of file ExportVTP.cpp.

◆ getVTKFormat()

std::string precice::io::ExportVTP::getVTKFormat ( ) const
overrideprivatevirtual

Implements precice::io::ExportXML.

Definition at line 21 of file ExportVTP.cpp.

◆ writeParallelCells()

void precice::io::ExportVTP::writeParallelCells ( std::ostream & out) const
overrideprivatevirtual

Implements precice::io::ExportXML.

Definition at line 45 of file ExportVTP.cpp.

Member Data Documentation

◆ _log

logging::Logger precice::io::ExportVTP::_log {"io::ExportVTP"}
mutableprivate

Definition at line 36 of file ExportVTP.hpp.


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