NuTo
Numerics Tool
Public Member Functions | List of all members
NuTo::Visualize::PointHandler Class Reference

Visualizes cell and point data only at the integration points (no visualization cells) More...

#include <PointHandler.h>

Inheritance diagram for NuTo::Visualize::PointHandler:
NuTo::Visualize::HandlerInterface

Public Member Functions

 PointHandler (std::vector< Eigen::VectorXd > ipCoords)
 ctor More...
 
 PointHandler (const IntegrationTypeBase &integrationType)
 ctor More...
 
virtual std::unique_ptr< HandlerInterfaceClone () const override
 
virtual std::vector< int > WriteGeometry (const CellInterface &cell, UnstructuredGrid *grid) override
 Generate a visualize geometry for each cell and write it to the grid. More...
 
virtual void WriteDofValues (const CellInterface &cell, const DofType dof, std::vector< int > pointIds, UnstructuredGrid *grid) override
 Write DOF values into the grid. More...
 
virtual void CellData (int cellId, std::vector< Eigen::VectorXd > values, std::string name, UnstructuredGrid *grid) override
 Write cell data into the grid. More...
 
virtual void PointData (const CellInterface &cell, std::function< Eigen::VectorXd(Eigen::VectorXd)> f, std::vector< int > pointIds, std::string name, UnstructuredGrid *grid) override
 Write point data into the grid. More...
 
- Public Member Functions inherited from NuTo::Visualize::HandlerInterface
virtual ~HandlerInterface ()=default
 

Detailed Description

Visualizes cell and point data only at the integration points (no visualization cells)

Constructor & Destructor Documentation

PointHandler::PointHandler ( std::vector< Eigen::VectorXd >  ipCoords)

ctor

Parameters
ipCoordsvector of integration point coordinates
PointHandler::PointHandler ( const IntegrationTypeBase integrationType)

ctor

Parameters
integrationTypeintegration type

Member Function Documentation

void PointHandler::CellData ( int  cellId,
std::vector< Eigen::VectorXd >  values,
std::string  name,
UnstructuredGrid grid 
)
overridevirtual

Write cell data into the grid.

Parameters
cellIdID of the cell to be visualized.
valuesList of values to be visualized (e.g. integration point values).
nameName to be used in the resulting output file for the data array.
gridPointer to the grid where the geometry should be written to.

Implements NuTo::Visualize::HandlerInterface.

std::unique_ptr< HandlerInterface > PointHandler::Clone ( ) const
overridevirtual
void PointHandler::PointData ( const CellInterface cell,
std::function< Eigen::VectorXd(Eigen::VectorXd)>  f,
std::vector< int >  pointIds,
std::string  name,
UnstructuredGrid grid 
)
overridevirtual

Write point data into the grid.

Parameters
cellCell to be visualized.
fFunction to be visualized.
pointIdsIDs of the visualization points belonging to the cell.
nameName to be used in the resulting output file for the data array.
gridPointer to the grid where the geometry should be written to.

Implements NuTo::Visualize::HandlerInterface.

void PointHandler::WriteDofValues ( const CellInterface cell,
const DofType  dof,
std::vector< int >  pointIds,
UnstructuredGrid grid 
)
overridevirtual

Write DOF values into the grid.

Parameters
cellCurrent cell to be visualized.
dofDofType to be visualized.
pointIdsIDs of the visualization points belonging to the cell.
gridPointer to the grid where the geometry should be written to.

Implements NuTo::Visualize::HandlerInterface.

std::vector< int > PointHandler::WriteGeometry ( const CellInterface cell,
UnstructuredGrid grid 
)
overridevirtual

Generate a visualize geometry for each cell and write it to the grid.

Parameters
cellCurrent cell to be visualized.
gridPointer to the grid where the geometry should be written to.

Implements NuTo::Visualize::HandlerInterface.


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