|
FEAT 3
Finite Element Analysis Toolbox
|
Extended VTK writer class template. More...
#include <ext_vtk_writer.hpp>
Public Types | |
| typedef TrafoType::MeshType | MeshType |
| typedef Geometry::ConformalMesh< ShapeType > | RefMeshType |
| typedef MeshType::ShapeType | ShapeType |
| typedef Trafo_ | TrafoType |
Public Member Functions | |
| ExtVtkWriter (const TrafoType &trafo, Index num_refines=1) | |
| void | close () |
| Closes the VTK file. More... | |
| bool | open (String filename) |
| Opens a VTK files and writes basic information. More... | |
| template<typename Space_ , typename T_ > | |
| void | write_gradients (String name, const Space_ &space, const T_ *data) |
| Writes a finite element function gradient field to the VTK file. More... | |
| template<typename Space_ , typename T_ > | |
| void | write_hessians (String name, const Space_ &space, const T_ *data) |
| Writes a finite element function Hessian field to the VTK file. More... | |
| template<typename Space_ , typename T_ > | |
| void | write_values (String name, const Space_ &space, const T_ *data) |
| Writes a finite element function to the VTK file. More... | |
| template<typename Space_ , typename VectorType_ > | |
| void | write_values_blocked (String name, const Space_ &space, const VectorType_ &v) |
| Writes a finite element function to the VTK file. More... | |
Protected Types | |
| typedef TrafoType::template Evaluator ::Type | TrafoEval |
Protected Member Functions | |
| void | get_dom_point (typename TrafoEval::DomainPointType &dom_point, Index i) const |
| void | write_indices () |
| void | write_vertices () |
Protected Attributes | |
| std::ofstream | _ofs |
| RefMeshType * | _ref_mesh |
| const TrafoType & | _trafo |
Friends | |
| struct | Intern::ExtVtkGradWriter< true > |
| struct | Intern::ExtVtkHessWriter< true > |
| struct | Intern::ExtVtkValueWriter< true > |
Extended VTK writer class template.
This class template implements a VTK writer which exports Finite Element functions evaluated on a locally refined mesh instead of a projection in the mesh's vertices or cells.
Definition at line 87 of file ext_vtk_writer.hpp.
| typedef TrafoType::MeshType FEAT::Space::ExtVtkWriter< Trafo_ >::MeshType |
Definition at line 95 of file ext_vtk_writer.hpp.
| typedef Geometry::ConformalMesh<ShapeType> FEAT::Space::ExtVtkWriter< Trafo_ >::RefMeshType |
Definition at line 97 of file ext_vtk_writer.hpp.
| typedef MeshType::ShapeType FEAT::Space::ExtVtkWriter< Trafo_ >::ShapeType |
Definition at line 96 of file ext_vtk_writer.hpp.
|
protected |
Definition at line 100 of file ext_vtk_writer.hpp.
| typedef Trafo_ FEAT::Space::ExtVtkWriter< Trafo_ >::TrafoType |
Definition at line 94 of file ext_vtk_writer.hpp.
|
inlineexplicit |
Definition at line 108 of file ext_vtk_writer.hpp.
|
inlinevirtual |
Definition at line 129 of file ext_vtk_writer.hpp.
|
inline |
Closes the VTK file.
Definition at line 171 of file ext_vtk_writer.hpp.
|
inlineprotected |
Definition at line 608 of file ext_vtk_writer.hpp.
|
inline |
Opens a VTK files and writes basic information.
Definition at line 140 of file ext_vtk_writer.hpp.
References FEAT::Geometry::ConformalMesh< Shape_, num_coords_, Coord_ >::get_num_entities(), FEAT::version_major, FEAT::version_minor, and FEAT::version_patch.
|
inline |
Writes a finite element function gradient field to the VTK file.
| [in] | name | The name of the variable for the VTK file. |
| [in] | space | A transient reference to the finite element space. |
| [in] | data | An transient array representing the coefficient vector of the finite element function. |
Definition at line 348 of file ext_vtk_writer.hpp.
References FEAT::dom_point, FEAT::Geometry::ConformalMesh< Shape_, num_coords_, Coord_ >::get_num_entities(), FEAT::grad, and XASSERT.
|
inline |
Writes a finite element function Hessian field to the VTK file.
| [in] | name | The name of the variable for the VTK file. |
| [in] | space | A transient reference to the finite element space. |
| [in] | data | An transient array representing the coefficient vector of the finite element function. |
Definition at line 434 of file ext_vtk_writer.hpp.
References FEAT::dom_point, FEAT::Geometry::ConformalMesh< Shape_, num_coords_, Coord_ >::get_num_entities(), FEAT::hess, and XASSERT.
|
inlineprotected |
Definition at line 564 of file ext_vtk_writer.hpp.
|
inline |
Writes a finite element function to the VTK file.
| [in] | name | The name of the variable for the VTK file. |
| [in] | space | A transient reference to the finite element space. |
| [in] | data | An transient array representing the coefficient vector of the finite element function. |
Definition at line 270 of file ext_vtk_writer.hpp.
References FEAT::dom_point, FEAT::Geometry::ConformalMesh< Shape_, num_coords_, Coord_ >::get_num_entities(), FEAT::value, and XASSERT.
|
inline |
Writes a finite element function to the VTK file.
| [in] | name | The name of the variable for the VTK file. |
| [in] | space | A transient reference to the finite element space. |
| [in] | v | The transient blocked coefficient vector of the finite element function. |
Definition at line 189 of file ext_vtk_writer.hpp.
References FEAT::dom_point, FEAT::Geometry::ConformalMesh< Shape_, num_coords_, Coord_ >::get_num_entities(), and FEAT::value.
|
inlineprotected |
Definition at line 517 of file ext_vtk_writer.hpp.
|
friend |
Definition at line 1 of file ext_vtk_writer.hpp.
|
friend |
Definition at line 1 of file ext_vtk_writer.hpp.
|
friend |
Definition at line 1 of file ext_vtk_writer.hpp.
|
protected |
Definition at line 104 of file ext_vtk_writer.hpp.
|
protected |
Definition at line 105 of file ext_vtk_writer.hpp.
|
protected |
Definition at line 103 of file ext_vtk_writer.hpp.