HyperHDG
|
Auxiliary functions for writing graphics files. More...
Functions | |
HAS_MEMBER_FUNCTION (bulk_values, has_bulk_values) | |
Prepare struct to check for function to exist (cf. compile_time_tricks.hxx). More... | |
std::string | fileType_to_string (const PlotOptions::fileType &type) |
Turn fileType enum into string. More... | |
std::ofstream | open_ofstream (const PlotOptions &plot_options, const bool append=false) |
Open stream to file. More... | |
void | close_ofstream (std::ofstream &myfile) |
Close stream to file. More... | |
template<unsigned int dim, typename pt_index_t > | |
void | vtu_sub_cube_connectivity (std::ostream &output, unsigned int n, pt_index_t offset) |
Output of the cubes of the subdivision of an edge in lexicographic order. More... | |
template<class HyperGraphT , unsigned int n_subpoints, typename hyEdge_index_t = unsigned int, typename pt_index_t = unsigned int> | |
void | plot_vtu_unstructured_geometry (std::ostream &output, HyperGraphT &hyper_graph, const SmallVec< n_subpoints, float > &sub_points, const SmallVec< n_subpoints, float > &boundary_sub_points, const PlotOptions &plot_options) |
Auxiliary function for writing geometry section VTU files. More... | |
Auxiliary functions for writing graphics files.
void PlotFunctions::close_ofstream | ( | std::ofstream & | myfile | ) |
Close stream to file.
std::string PlotFunctions::fileType_to_string | ( | const PlotOptions::fileType & | type | ) |
Turn fileType enum into string.
PlotFunctions::HAS_MEMBER_FUNCTION | ( | bulk_values | , |
has_bulk_values | |||
) |
Prepare struct to check for function to exist (cf. compile_time_tricks.hxx).
std::ofstream PlotFunctions::open_ofstream | ( | const PlotOptions & | plot_options, |
const bool | append = false |
||
) |
Open stream to file.
void PlotFunctions::plot_vtu_unstructured_geometry | ( | std::ostream & | output, |
HyperGraphT & | hyper_graph, | ||
const SmallVec< n_subpoints, float > & | sub_points, | ||
const SmallVec< n_subpoints, float > & | boundary_sub_points, | ||
const PlotOptions & | plot_options | ||
) |
Auxiliary function for writing geometry section VTU files.
This function plots the geometry part of an unstructured mesh in* a VTU file. The typical file structure is
< Preamble/> < UnstructuredGrid> < Geometry/> < Data/> < /UnstructuredGrid>
This function writes the < Geometry> part of the structure.
void PlotFunctions::vtu_sub_cube_connectivity | ( | std::ostream & | output, |
unsigned int | n, | ||
pt_index_t | offset | ||
) |
Output of the cubes of the subdivision of an edge in lexicographic order.
dim | The dimension of the cube. |
pt_index_t | The index type for global point numbers. |
output | The output. |
n | The number of subdivision points in each direction. |
offset | The index of the first vertex |