Bembel
 
Loading...
Searching...
No Matches
Bembel::VTKSurfaceExport Class Reference

Provides export routines from functions on geometries to the VTK file format. More...

#include <VTKSurfaceExport.hpp>

Detailed Description

Provides export routines from functions on geometries to the VTK file format.

One can add data to visualize via the addDataSet methods.

Definition at line 24 of file VTKSurfaceExport.hpp.

Public Member Functions

 VTKSurfaceExport (const Geometry &geo, int M)
 
void init_VTKSurfaceExport (const Geometry &geo, int M)
 
void addDataSet (const std::string &name, std::function< double(int, const Eigen::Vector2d &)> fun)
 Add a function of the given type to the visualization.
 
void addDataSet (const std::string &name, std::function< std::complex< double >(int, const Eigen::Vector2d &)> fun)
 Add a function of the given type to the visualization.
 
void addDataSet (const std::string &name, std::function< Eigen::Vector3d(int, const Eigen::Vector2d &)> fun)
 Add a function of the given type to the visualization.
 
void addDataSet (const std::string &name, std::function< Eigen::Vector3cd(int, const Eigen::Vector2d &)> fun)
 Add a function of the given type to the visualization.
 
void addDataSet (const std::string &name, std::function< Eigen::Vector3d(const Eigen::Vector3d &)> fun)
 Add a function of the given type to the visualization.
 
void addDataSet (const std::string &name, std::function< Eigen::Vector3cd(const Eigen::Vector3d &)> fun)
 Add a function of the given type to the visualization.
 
void addDataSet (const std::string &name, std::function< double(const Eigen::Vector3d &)> fun)
 Add a function of the given type to the visualization.
 
void addDataSet (const std::string &name, std::function< std::complex< double >(const Eigen::Vector3d &)> fun)
 Add a function of the given type to the visualization.
 
template<typename LinOp >
void addDataSet (const std::string &name, const AnsatzSpace< LinOp > &ansatz_space, const Eigen::Matrix< typename LinearOperatorTraits< LinOp >::Scalar, Eigen::Dynamic, Eigen::Dynamic > &coefficients)
 Add a function given through coefficients of an AnsatzSpace to the visualization.
 
void writeToFile (const std::string &filename)
 Write geometry with passed visualization data to file.
 
void clearData ()
 

Constructor & Destructor Documentation

◆ VTKSurfaceExport()

Bembel::VTKSurfaceExport::VTKSurfaceExport ( const Geometry geo,
int  M 
)
inline

The constructor wants a geometetry and a refinement level. This choice is deliberately not a mesh, since the visualization will often be on a finer mesh then that of a computation.

Definition at line 31 of file VTKSurfaceExport.hpp.

Member Function Documentation

◆ addDataSet() [1/9]

template<typename LinOp >
void Bembel::VTKSurfaceExport::addDataSet ( const std::string &  name,
const AnsatzSpace< LinOp > &  ansatz_space,
const Eigen::Matrix< typename LinearOperatorTraits< LinOp >::Scalar, Eigen::Dynamic, Eigen::Dynamic > &  coefficients 
)
inline

Add a function given through coefficients of an AnsatzSpace to the visualization.

Definition at line 138 of file VTKSurfaceExport.hpp.

◆ addDataSet() [2/9]

void Bembel::VTKSurfaceExport::addDataSet ( const std::string &  name,
std::function< double(const Eigen::Vector3d &)>  fun 
)
inline

Add a function of the given type to the visualization.

Definition at line 117 of file VTKSurfaceExport.hpp.

◆ addDataSet() [3/9]

void Bembel::VTKSurfaceExport::addDataSet ( const std::string &  name,
std::function< double(int, const Eigen::Vector2d &)>  fun 
)
inline

Add a function of the given type to the visualization.

Definition at line 57 of file VTKSurfaceExport.hpp.

◆ addDataSet() [4/9]

void Bembel::VTKSurfaceExport::addDataSet ( const std::string &  name,
std::function< Eigen::Vector3cd(const Eigen::Vector3d &)>  fun 
)
inline

Add a function of the given type to the visualization.

Definition at line 106 of file VTKSurfaceExport.hpp.

◆ addDataSet() [5/9]

void Bembel::VTKSurfaceExport::addDataSet ( const std::string &  name,
std::function< Eigen::Vector3cd(int, const Eigen::Vector2d &)>  fun 
)
inline

Add a function of the given type to the visualization.

Definition at line 86 of file VTKSurfaceExport.hpp.

◆ addDataSet() [6/9]

void Bembel::VTKSurfaceExport::addDataSet ( const std::string &  name,
std::function< Eigen::Vector3d(const Eigen::Vector3d &)>  fun 
)
inline

Add a function of the given type to the visualization.

Definition at line 97 of file VTKSurfaceExport.hpp.

◆ addDataSet() [7/9]

void Bembel::VTKSurfaceExport::addDataSet ( const std::string &  name,
std::function< Eigen::Vector3d(int, const Eigen::Vector2d &)>  fun 
)
inline

Add a function of the given type to the visualization.

Definition at line 77 of file VTKSurfaceExport.hpp.

◆ addDataSet() [8/9]

void Bembel::VTKSurfaceExport::addDataSet ( const std::string &  name,
std::function< std::complex< double >(const Eigen::Vector3d &)>  fun 
)
inline

Add a function of the given type to the visualization.

Definition at line 125 of file VTKSurfaceExport.hpp.

◆ addDataSet() [9/9]

void Bembel::VTKSurfaceExport::addDataSet ( const std::string &  name,
std::function< std::complex< double >(int, const Eigen::Vector2d &)>  fun 
)
inline

Add a function of the given type to the visualization.

Definition at line 66 of file VTKSurfaceExport.hpp.

◆ clearData()

void Bembel::VTKSurfaceExport::clearData ( )
inline

Definition at line 216 of file VTKSurfaceExport.hpp.

◆ init_VTKSurfaceExport()

void Bembel::VTKSurfaceExport::init_VTKSurfaceExport ( const Geometry geo,
int  M 
)
inline

Definition at line 34 of file VTKSurfaceExport.hpp.

◆ writeToFile()

void Bembel::VTKSurfaceExport::writeToFile ( const std::string &  filename)
inline

Write geometry with passed visualization data to file.

Definition at line 167 of file VTKSurfaceExport.hpp.


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