NuTo
Numerics Tool
|
Class to write visualization files of DOF values and cell data. More...
#include <Visualizer.h>
Public Member Functions | |
Visualizer (const Group< CellInterface > &cells, const HandlerInterface &handler) | |
Construct a visualizer with a group of cells to be visualized. More... | |
Visualizer (Visualizer &&)=default | |
copy ctor that allows overriding an existing visualizer to e.g. change the cells More... | |
Visualizer & | operator= (Visualizer &&)=default |
assigment operator that allows overriding an existing visualizer to e.g. change the cells More... | |
void | DofValues (DofType dof) |
Define DOF values that should be visualized. More... | |
void | CellData (std::function< Eigen::VectorXd(const CellIpData &)> f, std::string name) |
Define cell data that should be visualized. More... | |
void | PointData (std::function< Eigen::VectorXd(Eigen::VectorXd)> f, std::string name) |
Visualize a function y = f(x) over a collection of cells. More... | |
void | WriteVtuFile (std::string filename, bool asBinary=true) |
Write out a VTK unstructured grid file. More... | |
Class to write visualization files of DOF values and cell data.
Visualizer::Visualizer | ( | const Group< CellInterface > & | cells, |
const HandlerInterface & | handler | ||
) |
Construct a visualizer with a group of cells to be visualized.
cells | Group of cells you want to visualize. |
handler | implementation of the HandlerInterface |
|
default |
copy ctor that allows overriding an existing visualizer to e.g. change the cells
void Visualizer::CellData | ( | std::function< Eigen::VectorXd(const CellIpData &)> | f, |
std::string | name | ||
) |
Define cell data that should be visualized.
f | Function that is passed to the cell for evaluation. |
name | Name to be used in the resulting output file for the data array. |
void Visualizer::DofValues | ( | DofType | dof | ) |
Define DOF values that should be visualized.
dof | DofType to visualize. |
|
default |
assigment operator that allows overriding an existing visualizer to e.g. change the cells
void Visualizer::PointData | ( | std::function< Eigen::VectorXd(Eigen::VectorXd)> | f, |
std::string | name | ||
) |
void Visualizer::WriteVtuFile | ( | std::string | filename, |
bool | asBinary = true |
||
) |
Write out a VTK unstructured grid file.
filename | Name of the resulting file. |
asBinary | true for output as binary vtu file |