NuTo
Numerics Tool
AverageHandler.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace NuTo
7 {
8 namespace Visualize
9 {
10 
13 {
14 public:
15  virtual std::unique_ptr<HandlerInterface> Clone() const override;
16 
17  virtual std::vector<int> WriteGeometry(const CellInterface& cell, UnstructuredGrid* grid) override;
18 
19  virtual void WriteDofValues(const CellInterface& cell, const DofType dof, std::vector<int> pointIds,
20  UnstructuredGrid* grid) override;
21 
22  virtual void CellData(int cellId, std::vector<Eigen::VectorXd> values, std::string name,
23  UnstructuredGrid* grid) override;
24 
25  virtual void PointData(const CellInterface& cell, std::function<Eigen::VectorXd(Eigen::VectorXd)> f,
26  std::vector<int> pointIds, std::string name, UnstructuredGrid* grid) override;
27 };
28 
29 } // namespace Visualize
30 } // namespace NuTo
virtual void CellData(int cellId, std::vector< Eigen::VectorXd > values, std::string name, UnstructuredGrid *grid) override
Write cell data into the grid.
Definition: AverageHandler.cpp:62
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.
Definition: AverageHandler.cpp:72
Interface for a handler class that visualizes a single cell.
Definition: HandlerInterface.h:19
virtual std::unique_ptr< HandlerInterface > Clone() const override
Definition: AverageHandler.cpp:10
virtual std::vector< int > WriteGeometry(const CellInterface &cell, UnstructuredGrid *grid) override
Generate a visualize geometry for each cell and write it to the grid.
Definition: AverageHandler.cpp:33
visualization of unstructured grids
Definition: UnstructuredGrid.h:18
Definition: DofType.h:8
Definition: Exception.h:6
virtual void WriteDofValues(const CellInterface &cell, const DofType dof, std::vector< int > pointIds, UnstructuredGrid *grid) override
Write DOF values into the grid.
Definition: AverageHandler.cpp:45
Cell handler that averages the cell values over each cell.
Definition: AverageHandler.h:12
def Visualize(structure, file)
Definition: Truss1D2N.py:63
Definition: CellInterface.h:13