HyperHDG
Functions
PlotFunctions Namespace Reference

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...
 

Detailed Description

Auxiliary functions for writing graphics files.


Function Documentation

◆ close_ofstream()

void PlotFunctions::close_ofstream ( std::ofstream &  myfile)

Close stream to file.


◆ fileType_to_string()

std::string PlotFunctions::fileType_to_string ( const PlotOptions::fileType type)

Turn fileType enum into string.


◆ HAS_MEMBER_FUNCTION()

PlotFunctions::HAS_MEMBER_FUNCTION ( bulk_values  ,
has_bulk_values   
)

Prepare struct to check for function to exist (cf. compile_time_tricks.hxx).


◆ open_ofstream()

std::ofstream PlotFunctions::open_ofstream ( const PlotOptions plot_options,
const bool  append = false 
)

Open stream to file.


Here is the call graph for this function:

◆ plot_vtu_unstructured_geometry()

template<class HyperGraphT , unsigned int n_subpoints, typename hyEdge_index_t = unsigned int, typename pt_index_t = unsigned int>
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.

Here is the call graph for this function:

◆ vtu_sub_cube_connectivity()

template<unsigned int dim, typename pt_index_t >
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.


Template Parameters
dimThe dimension of the cube.
pt_index_tThe index type for global point numbers.
Parameters
outputThe output.
nThe number of subdivision points in each direction.
offsetThe index of the first vertex