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

Cell handler that subdivides a cell into subcells. More...

#include <VoronoiHandler.h>

Inheritance diagram for NuTo::Visualize::VoronoiHandler:
NuTo::Visualize::HandlerInterface

Public Member Functions

 VoronoiHandler (VoronoiGeometry geometry)
 Constructor. 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

Cell handler that subdivides a cell into subcells.

Constructor & Destructor Documentation

VoronoiHandler::VoronoiHandler ( VoronoiGeometry  geometry)

Constructor.

Parameters
geometrydefinition of arbitrary voronoi cells

Member Function Documentation

void VoronoiHandler::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 > VoronoiHandler::Clone ( ) const
overridevirtual
void VoronoiHandler::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 VoronoiHandler::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 > VoronoiHandler::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: