HyperHDG
Public Types | Public Attributes | List of all members
PlotOptions Struct Reference

A class storing options for plotting. More...

#include <plot.hxx>

Public Types

enum  fileType { vtu }
 Enum for possible file endings. More...
 

Public Attributes

std::string outputDir = "output"
 Name of the directory to put the output into. More...
 
std::string fileName = "example"
 Name of the file plotted. More...
 
fileType fileEnding = vtu
 File ending and also way of plotting. More...
 
unsigned int fileNumber = 0
 Number of the plot file. More...
 
bool printFileNumber = true
 Decide whether fileNumber is part of the file name. More...
 
bool incrementFileNumber = true
 Decide whether fileNumber is incremented after plotting. More...
 
bool plot_edge_boundaries = false
 Include the edge boundaries with their function values into the plot. More...
 
bool plot_edges = true
 Include the hyperedges with their function values into the plot. More...
 
unsigned int n_subintervals = 1
 Number of subintervals for plotting. More...
 
float scale = 1.
 A factor for scaling each object of the plot locally. More...
 
float boundary_scale = 1.
 A factor by which to separate two boundaries belonging to different edges. More...
 
bool numbers = false
 Output a cell data array with the number of each edge and/or each node. More...
 

Detailed Description

A class storing options for plotting.


Authors
Guido Kanschat, Heidelberg University, 2020.
Andreas Rupp, Heidelberg University, 2020.

Member Enumeration Documentation

◆ fileType

Enum for possible file endings.


Enumerator
vtu 

Member Data Documentation

◆ boundary_scale

float PlotOptions::boundary_scale = 1.

A factor by which to separate two boundaries belonging to different edges.


This factor defaults to 1 which results in boundaries of adjacent edges being drawn on top of each other, if scale is less than one a suitable choice would be (1+scale)/2 in order separate different boundaries. A smaller factor results in a wider gap.

◆ fileEnding

fileType PlotOptions::fileEnding = vtu

File ending and also way of plotting.


This std::string describes the name of the file ending for the output plot. Thus, it also characterizes which applications can read the output files properly. Default and currently only option is "vtu" for Paraview.

◆ fileName

std::string PlotOptions::fileName = "example"

Name of the file plotted.


This std::string describes the name of the file for the output plot. Default is "example".

◆ fileNumber

unsigned int PlotOptions::fileNumber = 0

Number of the plot file.


This unsigned int describes the number of the plot file which is created. If a problem is solved repeatedly (e.g. parabolic problem, local refinement, ...) this number indicates the number of the file (e.g. time step, refinement step, ...). Default is 0.

◆ incrementFileNumber

bool PlotOptions::incrementFileNumber = true

Decide whether fileNumber is incremented after plotting.


This boolean discriminates whether the fileNumber should be incremented after a file has been written (true) or not (false). Default is true.

◆ n_subintervals

unsigned int PlotOptions::n_subintervals = 1

Number of subintervals for plotting.


When plotting an interval, it is split into n_subintervals intervals such that higher order polynomials and other functions can be displayed appropriately. When plotting higher dimensional objects, this subdivision is applied accordingly in each direction.

This functionality is implemented such that higher order polynomials can be output as piecewise linear functions giving them sufficient meaning. It will increase the number of cells seen by the visualization tool, such that the cell boundaries there are not the actual cell boundaries anymore. You can still use the parameter scale below to see the separate edges.

Defaults to 1.

◆ numbers

bool PlotOptions::numbers = false

Output a cell data array with the number of each edge and/or each node.


◆ outputDir

std::string PlotOptions::outputDir = "output"

Name of the directory to put the output into.


This std::string describes the directory the output is created in. Default is "output".

◆ plot_edge_boundaries

bool PlotOptions::plot_edge_boundaries = false

Include the edge boundaries with their function values into the plot.


Defaults to false.

◆ plot_edges

bool PlotOptions::plot_edges = true

Include the hyperedges with their function values into the plot.


Defaults to true.

◆ printFileNumber

bool PlotOptions::printFileNumber = true

Decide whether fileNumber is part of the file name.


This boolean discriminates whether the fileNumber should appear within the name of the file (true) or not (false). Default is true.

◆ scale

float PlotOptions::scale = 1.

A factor for scaling each object of the plot locally.


This factor defaults to 1 in order to produce a plot of a contiguous domain. If it is chosen less than 1, each edge or node is scaled by this factor around its center.


The documentation for this struct was generated from the following file: