SG++-Doxygen-Documentation
|
This class implements a utility that allows you to print a grid to file. More...
#include <GridPrinterForStretching.hpp>
Public Member Functions | |
GridPrinterForStretching (Grid &SparseGrid) | |
Std-Constructor. More... | |
void | printGrid (DataVector &alpha, std::string tFilename, size_t PointsPerDimension) override |
Print the grid with its function to a file; front end. More... | |
void | printGridDomain (DataVector &alpha, std::string tFilename, BoundingBox &GridArea, size_t PointsPerDimension) override |
This function is not used for stretching grid printing, use printGridDomainStretching instead. More... | |
void | printGridDomainStretching (DataVector &alpha, std::string tFilename, Stretching &GridArea, size_t PointsPerDimension) |
Print the grid with its function to a file; front end. More... | |
void | printSparseGrid (DataVector &alpha, std::string tFilename, bool bSurplus) override |
Prints the Grid Points of the Sparse Grid either with their node basis value or their hierarchical surplus. More... | |
void | printSparseGridExpTransform (DataVector &alpha, std::string tFilename, bool bSurplus) override |
Prints the Grid Points of the Sparse Grid either with their node basis value or their hierarchical surplus. More... | |
~GridPrinterForStretching () override | |
Std-Destructor. More... | |
Public Member Functions inherited from sgpp::base::GridPrinter | |
GridPrinter (Grid &SparseGrid) | |
Std-Constructor. More... | |
virtual void | printLevelIndexGrid (std::string tFilename) |
Print the grid points in level/index format to a file; front end. More... | |
virtual | ~GridPrinter () |
Std-Destructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from sgpp::base::GridPrinter | |
Grid * | myGrid |
Pointer to the grid Object, which should be printed. More... | |
This class implements a utility that allows you to print a grid to file.
These files can be plotted with gnuplot.
|
explicit |
Std-Constructor.
SparseGrid | Reference to a Spare Grid, that should be printed |
References sgpp::base::GridPrinter::myGrid.
|
override |
Std-Destructor.
|
overridevirtual |
Print the grid with its function to a file; front end.
alpha | the coefficients of the grid's ansatzfunctions |
tFilename | absolute path to the file the grid is written into |
PointsPerDimension | specifies how many functions evaluations in every dimension should be calculated |
Reimplemented from sgpp::base::GridPrinter.
References sgpp::op_factory::createOperationEval(), sgpp::base::BoundingBox::getBoundary(), sgpp::base::Grid::getDimension(), sgpp::base::Grid::getSize(), sgpp::base::Grid::getStretching(), python.statsfileInfo::i, python.utils.statsfile2gnuplot::j, sgpp::base::BoundingBox1D::leftBoundary, sgpp::base::GridPrinter::myGrid, chess::point, python.leja::points, and sgpp::base::BoundingBox1D::rightBoundary.
Referenced by sgpp::pde::HeatEquationSolverWithStretching::printGrid().
|
overridevirtual |
This function is not used for stretching grid printing, use printGridDomainStretching instead.
Reimplemented from sgpp::base::GridPrinter.
void sgpp::base::GridPrinterForStretching::printGridDomainStretching | ( | DataVector & | alpha, |
std::string | tFilename, | ||
Stretching & | GridArea, | ||
size_t | PointsPerDimension | ||
) |
Print the grid with its function to a file; front end.
alpha | the coefficients of the grid's ansatzfunctions |
tFilename | absolute path to the file the grid is written into |
GridArea | The area in which the function should be plotted |
PointsPerDimension | specifies how many functions evaluations in every dimension should be calculated |
References sgpp::op_factory::createOperationEval(), sgpp::base::BoundingBox::getBoundary(), sgpp::base::Grid::getDimension(), sgpp::base::Grid::getSize(), python.statsfileInfo::i, python.utils.statsfile2gnuplot::j, sgpp::base::BoundingBox1D::leftBoundary, sgpp::base::GridPrinter::myGrid, chess::point, and sgpp::base::BoundingBox1D::rightBoundary.
Referenced by sgpp::pde::HeatEquationSolverWithStretching::printGridDomainStretching().
|
overridevirtual |
Prints the Grid Points of the Sparse Grid either with their node basis value or their hierarchical surplus.
alpha | the coefficients of the grid's ansatzfunctions |
tFilename | absoulte path to the file the grid is written into |
bSurplus | specifies whether the surplus (true) or the node basis value (false) is written |
Reimplemented from sgpp::base::GridPrinter.
References sgpp::op_factory::createOperationHierarchisation(), chess::dim, python.toolsExtended::doDehierarchisation(), sgpp::base::HashGridStorage::getCoordinates(), sgpp::base::Grid::getDimension(), sgpp::base::HashGridStorage::getPoint(), sgpp::base::Grid::getSize(), sgpp::base::Grid::getStorage(), python.statsfileInfo::i, python.utils.statsfile2gnuplot::j, sgpp::base::GridPrinter::myGrid, and analyse_erg::tmp.
Referenced by sgpp::pde::HeatEquationSolverWithStretching::printSparseGrid().
|
overridevirtual |
Prints the Grid Points of the Sparse Grid either with their node basis value or their hierarchical surplus.
The coordinates of the grid points are pushed the exp function. So log transformed grids can be plotted in cartesion coordinates.
alpha | the coefficients of the grid's ansatzfunctions |
tFilename | absoulte path to the file the grid is written into |
bSurplus | specifies whether the surplus (true) or the node basis value (false) is written |
Reimplemented from sgpp::base::GridPrinter.
References sgpp::op_factory::createOperationHierarchisation(), chess::dim, python.toolsExtended::doDehierarchisation(), sgpp::base::HashGridStorage::getCoordinates(), sgpp::base::Grid::getDimension(), sgpp::base::HashGridStorage::getPoint(), sgpp::base::Grid::getSize(), sgpp::base::Grid::getStorage(), python.statsfileInfo::i, python.utils.statsfile2gnuplot::j, sgpp::base::GridPrinter::myGrid, and analyse_erg::tmp.
Referenced by sgpp::pde::HeatEquationSolverWithStretching::printSparseGridExpTransform().