![]() |
PRISMS-PF Manual
|
#include <read_vtk.h>
Public Member Functions | |
| ReadUnstructuredVTK (const InitialConditionFile &_ic_file, const SpatialDiscretization< dim > &_spatial_discretization) | |
| Constructor. | |
| vtkUnstructuredGrid * | get_output () |
| Get the vtk output. | |
| dealii::types::global_dof_index | get_n_points () const |
| Get the number of points. | |
| dealii::types::global_dof_index | get_n_cells () const |
| Get the number of cells. | |
| void | print_file () override |
| Print the vtk file for debugging. | |
| std::vector< std::string > | get_scalars_names () |
| Get the names of the scalars in the vtk file. | |
| std::vector< std::string > | get_vectors_names () |
| Get the names of the vectors in the vtk file. | |
| number | get_scalar_value (const dealii::Point< dim > &point, const std::string &scalar_name) override |
| Get scalar value for a given point. | |
| dealii::Vector< number > | get_vector_value (const dealii::Point< dim > &point, const std::string &vector_name) override |
| Get vector value for a given point. | |
Public Member Functions inherited from ReadFieldBase< dim, number > | |
| ReadFieldBase (const InitialConditionFile &_ic_file, const SpatialDiscretization< dim > &_spatial_discretization) | |
| Constructor. | |
| virtual | ~ReadFieldBase ()=default |
| Destructor. | |
| ReadFieldBase (const ReadFieldBase &read_base)=delete | |
| Copy constructor. | |
| ReadFieldBase & | operator= (const ReadFieldBase &read_base)=delete |
| Copy assignment. | |
| ReadFieldBase (ReadFieldBase &&read_base) noexcept=delete | |
| Move constructor. | |
| ReadFieldBase & | operator= (ReadFieldBase &&read_base) noexcept=delete |
| Move assignment. | |
Private Attributes | |
| vtkNew< vtkUnstructuredGridReader > | reader |
| Reader for the vtk file. | |
| dealii::types::global_dof_index | n_points |
| Number of points. | |
| dealii::types::global_dof_index | n_cells |
| Number of cells. | |
| unsigned int | n_scalars |
| Number of scalars in file. | |
| unsigned int | n_vectors |
| Number of vectors in file. | |
| const unsigned int | n_points_per_hex_cell = 8 |
| Number of points in a hex cell. | |
| const unsigned int | n_space_coordinates = 3 |
| Number of space coordinates in a point. | |
Additional Inherited Members | |
Protected Attributes inherited from ReadFieldBase< dim, number > | |
| const SpatialDiscretization< dim > & | spatial_discretization |
| Spatial discretization object. | |
| const InitialConditionFile & | ic_file |
| Initial condition file object. | |
| ReadUnstructuredVTK< dim, number >::ReadUnstructuredVTK | ( | const InitialConditionFile & | _ic_file, |
| const SpatialDiscretization< dim > & | _spatial_discretization | ||
| ) |
Constructor.
|
inline |
Get the number of cells.
|
inline |
Get the number of points.
|
inline |
Get the vtk output.
|
inlineoverridevirtual |
Get scalar value for a given point.
Implements ReadFieldBase< dim, number >.
|
inline |
Get the names of the scalars in the vtk file.
|
inlineoverridevirtual |
Get vector value for a given point.
Implements ReadFieldBase< dim, number >.
|
inline |
Get the names of the vectors in the vtk file.
|
inlineoverridevirtual |
Print the vtk file for debugging.
Implements ReadFieldBase< dim, number >.
|
private |
Number of cells.
|
private |
Number of points.
Number of points in a hex cell.
|
private |
Number of scalars in file.
Number of space coordinates in a point.
|
private |
Number of vectors in file.
|
private |
Reader for the vtk file.