Cell handler that subdivides a cell into subcells.
More...
#include <VoronoiHandler.h>
|
| VoronoiHandler (VoronoiGeometry geometry) |
| Constructor. More...
|
|
virtual std::unique_ptr< HandlerInterface > | Clone () 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 |
|
Cell handler that subdivides a cell into subcells.
Constructor.
- Parameters
-
geometry | definition of arbitrary voronoi cells |
void VoronoiHandler::CellData |
( |
int |
cellId, |
|
|
std::vector< Eigen::VectorXd > |
values, |
|
|
std::string |
name, |
|
|
UnstructuredGrid * |
grid |
|
) |
| |
|
overridevirtual |
Write cell data into the grid.
- Parameters
-
cellId | ID of the cell to be visualized. |
values | List of values to be visualized (e.g. integration point values). |
name | Name to be used in the resulting output file for the data array. |
grid | Pointer to the grid where the geometry should be written to. |
Implements NuTo::Visualize::HandlerInterface.
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
-
cell | Cell to be visualized. |
f | Function to be visualized. |
pointIds | IDs of the visualization points belonging to the cell. |
name | Name to be used in the resulting output file for the data array. |
grid | Pointer to the grid where the geometry should be written to. |
Implements NuTo::Visualize::HandlerInterface.
Write DOF values into the grid.
- Parameters
-
cell | Current cell to be visualized. |
dof | DofType to be visualized. |
pointIds | IDs of the visualization points belonging to the cell. |
grid | Pointer to the grid where the geometry should be written to. |
Implements NuTo::Visualize::HandlerInterface.
Generate a visualize geometry for each cell and write it to the grid.
- Parameters
-
cell | Current cell to be visualized. |
grid | Pointer 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: