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

#include <ExportVTU.hpp>

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

Public Member Functions

 ExportVTU (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::ExportVTU"}

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 VTU and PVTU.

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

Definition at line 24 of file ExportVTU.hpp.

Constructor & Destructor Documentation

◆ ExportVTU()

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

Definition at line 22 of file ExportVTU.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ exportConnectivity()

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

Implements precice::io::ExportXML.

Definition at line 65 of file ExportVTU.cpp.

Here is the call graph for this function:

◆ getParallelExtension()

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

Implements precice::io::ExportXML.

Definition at line 38 of file ExportVTU.cpp.

◆ getPieceAttributes()

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

Implements precice::io::ExportXML.

Definition at line 48 of file ExportVTU.cpp.

Here is the call graph for this function:

◆ getPieceExtension()

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

Implements precice::io::ExportXML.

Definition at line 43 of file ExportVTU.cpp.

◆ getVTKFormat()

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

Implements precice::io::ExportXML.

Definition at line 33 of file ExportVTU.cpp.

◆ writeParallelCells()

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

Implements precice::io::ExportXML.

Definition at line 56 of file ExportVTU.cpp.

Member Data Documentation

◆ _log

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

Definition at line 36 of file ExportVTU.hpp.


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