preCICE v3.1.2
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
precice::io::ExportVTK Class Reference

Writes polygonal, or triangle meshes to vtk files. More...

#include <ExportVTK.hpp>

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

Public Member Functions

virtual void doExport (const std::string &name, const std::string &location, const mesh::Mesh &mesh)
 Perform writing to VTK file.
 
- Public Member Functions inherited from precice::io::Export
virtual ~Export ()=default
 
 Export ()=default
 
 Export (const Export &)=delete
 
 Export (Export &&)=delete
 
Exportoperator= (const Export &)=delete
 
Exportoperator= (Export &&)=delete
 

Static Public Member Functions

static void initializeWriting (std::ofstream &filestream)
 
static void writeHeader (std::ostream &outFile)
 
static void writeVertex (const Eigen::VectorXd &position, std::ostream &outFile)
 
static void writeLine (int vertexIndices[2], std::ostream &outFile)
 
static void writeTriangle (int vertexIndices[3], std::ostream &outFile)
 
static void writeTetrahedron (int vertexIndices[4], std::ostream &outFile)
 

Private Member Functions

void openFile (std::ofstream &outFile, const std::string &filename) const
 
void exportMesh (std::ofstream &outFile, const mesh::Mesh &mesh)
 
void exportData (std::ofstream &outFile, const mesh::Mesh &mesh)
 
void exportGradient (std::ofstream &outFile, const mesh::Mesh &mesh)
 

Private Attributes

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

Detailed Description

Writes polygonal, or triangle meshes to vtk files.

Definition at line 19 of file ExportVTK.hpp.

Member Function Documentation

◆ doExport()

void precice::io::ExportVTK::doExport ( const std::string & name,
const std::string & location,
const mesh::Mesh & mesh )
virtual

Perform writing to VTK file.

Implements precice::io::Export.

Definition at line 20 of file ExportVTK.cpp.

Here is the call graph for this function:

◆ exportData()

void precice::io::ExportVTK::exportData ( std::ofstream & outFile,
const mesh::Mesh & mesh )
private

Definition at line 120 of file ExportVTK.cpp.

Here is the call graph for this function:

◆ exportGradient()

void precice::io::ExportVTK::exportGradient ( std::ofstream & outFile,
const mesh::Mesh & mesh )
private

Definition at line 162 of file ExportVTK.cpp.

Here is the call graph for this function:

◆ exportMesh()

void precice::io::ExportVTK::exportMesh ( std::ofstream & outFile,
const mesh::Mesh & mesh )
private

Definition at line 45 of file ExportVTK.cpp.

Here is the call graph for this function:

◆ initializeWriting()

void precice::io::ExportVTK::initializeWriting ( std::ofstream & filestream)
static

Definition at line 230 of file ExportVTK.cpp.

Here is the call graph for this function:

◆ openFile()

void precice::io::ExportVTK::openFile ( std::ofstream & outFile,
const std::string & filename ) const
private

◆ writeHeader()

void precice::io::ExportVTK::writeHeader ( std::ostream & outFile)
static

Definition at line 242 of file ExportVTK.cpp.

◆ writeLine()

void precice::io::ExportVTK::writeLine ( int vertexIndices[2],
std::ostream & outFile )
static

Definition at line 284 of file ExportVTK.cpp.

◆ writeTetrahedron()

void precice::io::ExportVTK::writeTetrahedron ( int vertexIndices[4],
std::ostream & outFile )
static

Definition at line 273 of file ExportVTK.cpp.

◆ writeTriangle()

void precice::io::ExportVTK::writeTriangle ( int vertexIndices[3],
std::ostream & outFile )
static

Definition at line 262 of file ExportVTK.cpp.

◆ writeVertex()

void precice::io::ExportVTK::writeVertex ( const Eigen::VectorXd & position,
std::ostream & outFile )
static

Definition at line 250 of file ExportVTK.cpp.

Member Data Documentation

◆ _log

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

Definition at line 49 of file ExportVTK.hpp.


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