|
| | VtkVtuData () |
| | Default constructor.
|
| |
| | VtkVtuData (const std::string &file_name, bool reader=true) |
| | Constructor.
|
| |
| virtual void | create_grid () override |
| | Create an empty grid.
|
| |
| virtual void | write () const override |
| | Write the mesh data to a file.
|
| |
| | VtkData ()=default |
| | Default constructor.
|
| |
| virtual | ~VtkData ()=default |
| | Virtual destructor.
|
| |
| virtual void | read_file (const std::string &file_name) |
| | Read the mesh data from a VTK file.
|
| |
| Array< int > | get_connectivity () const |
| | Get the connectivity of the mesh elements.
|
| |
| Array< double > | get_points () const |
| | Get the points of the mesh.
|
| |
| int | num_elems () const |
| | Get the number of elements in the mesh.
|
| |
| int | elem_type () const |
| | Get the element type.
|
| |
| int | num_points_per_elem () const |
| | Get the number of points per element.
|
| |
| int | num_points () const |
| | Get the number of points in the mesh.
|
| |
| void | set_element_data (const std::string &data_name, const Array< double > &data) |
| | Set a double-valued element data array.
|
| |
| void | set_element_data (const std::string &data_name, const Array< int > &data) |
| | Set an int-valued element data array.
|
| |
| void | set_element_data (const std::string &data_name, const Vector< int > &data) |
| | Set an int-valued element data vector.
|
| |
| void | set_point_data (const std::string &data_name, const Array< double > &data) |
| | Set a double-valued point data array.
|
| |
| void | set_point_data (const std::string &data_name, const Array< int > &data) |
| | Set an int-valued point data array.
|
| |
| void | set_point_data (const std::string &data_name, const Vector< int > &data) |
| | Set an int-valued point data array.
|
| |
| void | set_points (const Array< double > &points) |
| | Set the point coordinates of the mesh.
|
| |
| void | set_connectivity (const int nsd, const Array< int > &conn) |
| | Set the mesh connectivity to define the elements.
|
| |
| void | set_time_value (const double time) |
| | Store a time value as field data.
|
| |
| bool | has_cell_data (const std::string &data_name) const |
| | Check if a given cell data array exists.
|
| |
| bool | has_point_data (const std::string &data_name) const |
| | Check if a given point data array exists.
|
| |
| void | copy_points (Array< double > &points) const |
| | Copy the mesh points to an Array.
|
| |
| void | copy_point_data (const std::string &data_name, Array< double > &mesh_data) const |
| | Copy an array of point data from the mesh into the given Array.
|
| |
| void | copy_point_data (const std::string &data_name, Vector< double > &mesh_data) const |
| | Copy an array of point data from the mesh into the given Vector.
|
| |
| void | copy_point_data (const std::string &data_name, Vector< int > &mesh_data) const |
| | Copy an array of int-valued point data from the mesh into the given Vector.
|
| |
| void | copy_cell_data (const std::string &data_name, Array< double > &mesh_data) const |
| | Copy an array of cell data from the mesh into the given Array.
|
| |
| void | copy_cell_data (const std::string &data_name, Vector< double > &mesh_data) const |
| | Copy an array of cell data from the mesh into the given Vector.
|
| |
| void | copy_cell_data (const std::string &data_name, Vector< int > &mesh_data) const |
| | Copy an array of int-valued cell data from the mesh into the given Vector.
|
| |
| Array< double > | get_point_data (const std::string &data_name) const |
| | Get an array of point data from the mesh.
|
| |
| std::vector< std::string > | get_point_data_names () const |
| | Get a list of point data names.
|
| |
| std::pair< int, int > | get_cell_data_dimensions (const std::string &data_name) const |
| | Get the dimensions of a cell data array.
|
| |
A mesh stored in the VTK XML unstructured grid format ('.vtu' files).
The mesh is held as a vtkUnstructuredGrid, whose elements may be of any VTK cell type: the volume meshes the equations are solved on, and the results written at each saved time step.