#include <VTKWriter_grids_st.hpp>
Public Member Functions | |
VTKWriter () | |
void | add (size_t i, const typename pair::first &g, const Point< pair::first::dims, typename pair::second > &offset, const Point< pair::first::dims, typename pair::second > &spacing, const Box< pair::first::dims, typename pair::second > &dom, const comb< pair::first::dims > &cmb) |
Add grid dataset. More... | |
template<int prp = -1> | |
bool | write (std::string file, std::string g_name="grids", file_type ft=file_type::ASCII) |
It write a VTK file from a graph. More... | |
Private Member Functions | |
size_t | get_total () |
Get the total number of points. More... | |
std::string | get_vertex_properties_list () |
It get the vertex properties list. More... | |
std::string | get_point_properties_list () |
It get the vertex properties list. More... | |
std::string | get_point_list () |
Create the VTK point definition. More... | |
std::string | get_prop_components (size_t k) |
std::string | get_properties_output (size_t k, std::string prop_name) |
Create the VTK properties output. More... | |
std::string | lastProp () |
Return the output of the domain property. More... | |
size_t | getMaxFused () |
Get the maximum number of fused grid. More... | |
std::string | get_vertex_list () |
Create the VTK vertex definition. More... | |
std::string | get_point_data_header () |
Get the point data header. More... | |
void | append_grid (size_t id, const typename pair::first &g, const comb< pair::first::dims > &cmb) |
Append the grid to the sub-domain, if for a sub-domain we have a grid that is overlapping fuse them, otherwise create a new combination and grid. More... | |
Private Attributes | |
openfpm::vector< ele_g_st < typename pair::first, typename pair::second > > | vg |
Vector of grids. | |
It write a VTK format file in case of grids defined on a space
boost::mpl::pair<G,S> | where G is the type of grid S is the type of space, float, double ... |
Definition at line 157 of file VTKWriter_grids_st.hpp.
VTKWriter constructor
Definition at line 548 of file VTKWriter_grids_st.hpp.
|
inline |
Add grid dataset.
i | sub-domain id |
g | Grid to add |
offset | grid offset |
spacing | spacing of the grid |
dom | part of the spacethat is the domain |
Increase the size
Definition at line 560 of file VTKWriter_grids_st.hpp.
|
inlineprivate |
Append the grid to the sub-domain, if for a sub-domain we have a grid that is overlapping fuse them, otherwise create a new combination and grid.
id | sub-domain id |
location | in the cell of the grid |
Definition at line 523 of file VTKWriter_grids_st.hpp.
|
inlineprivate |
Get the point data header.
Definition at line 505 of file VTKWriter_grids_st.hpp.
|
inlineprivate |
Create the VTK point definition.
vertex node output string
For each sub-domain
Get the iterator
Where the grid is defined
Definition at line 226 of file VTKWriter_grids_st.hpp.
|
inlineprivate |
It get the vertex properties list.
It get the vertex properties list of the vertex defined as a VTK header
vertex property output string
Definition at line 211 of file VTKWriter_grids_st.hpp.
|
inlineprivate |
For each sub-domain
Definition at line 281 of file VTKWriter_grids_st.hpp.
|
inlineprivate |
Create the VTK properties output.
k | component |
prop | property name |
vertex node output string
For each sub-domain
Get the iterator
Where the grid is defined
Get the iterator
Where the grid is defined
Definition at line 308 of file VTKWriter_grids_st.hpp.
|
inlineprivate |
Get the total number of points.
Calculate the full number of vertices
Definition at line 167 of file VTKWriter_grids_st.hpp.
|
inlineprivate |
Create the VTK vertex definition.
vertex node output string
For each sub-domain
For each grid point create a vertex
Definition at line 467 of file VTKWriter_grids_st.hpp.
|
inlineprivate |
It get the vertex properties list.
It get the vertex properties list of the vertex defined as VTK header
vertex property output string
Definition at line 191 of file VTKWriter_grids_st.hpp.
|
inlineprivate |
Get the maximum number of fused grid.
For each sub-domain
Definition at line 445 of file VTKWriter_grids_st.hpp.
|
inlineprivate |
Return the output of the domain property.
vertex node output string
For each sub-domain
Get the iterator
Definition at line 399 of file VTKWriter_grids_st.hpp.
|
inline |
It write a VTK file from a graph.
prp_out | which properties to output [default = -1 (all)] |
file | path where to write |
g_name | of the set of grids |
file_type | specify if it is a VTK BINARY or ASCII file [default = ASCII] |
Definition at line 584 of file VTKWriter_grids_st.hpp.