#include <dune/grid/io/file/dgfparser/macrogrid.hh>
|
| MacroGrid (const char *filename, MPICommunicatorType MPICOMM=MPIHelper::getCommunicator()) |
| constructor given the name of a DGF file More...
|
|
| MacroGrid (MPICommunicatorType MPICOMM=MPIHelper::getCommunicator()) |
| constructor given the name of a DGF file More...
|
|
template<class GridType > |
GridType * | createGrid () |
| returns pointer to a new instance of type GridType created from a DGF file More...
|
|
bool | readDuneGrid (std::istream &input, int dimG, int dimW) |
| parse dune grid format from stream More...
|
|
void | writeTetgenPoly (const std::string &, std::string &, std::string &) |
| method to write in Tetgen/Triangle Poly Format More...
|
|
void | writeTetgenPoly (std::ostream &out, const bool writeSegments=true) |
|
void | generateBoundaries (std::istream &, bool) |
|
void | generateSimplexGrid (std::istream &) |
|
void | readTetgenTriangle (const std::string &) |
|
void | removeCopies () |
|
void | setOrientation (int use1, int use2, orientation_t orientation=counterclockwise) |
|
void | setRefinement (int use1, int use2, int is1=-1, int is2=-1) |
|
double | testTriang (int snr) |
|
std::vector< double > & | getElParam (int i, std::vector< double > &coord) |
|
std::vector< double > & | getVtxParam (int i, std::vector< double > &coord) |
|
◆ BndParam
◆ BoundaryParameter
◆ facemap_t
◆ MPICommunicatorType
◆ element_t
Enumerator |
---|
Simplex | |
Cube | |
General | |
◆ orientation_t
Enumerator |
---|
counterclockwise | |
clockwise | |
◆ MacroGrid() [1/2]
Dune::MacroGrid::MacroGrid |
( |
const char * |
filename, |
|
|
MPICommunicatorType |
MPICOMM = MPIHelper::getCommunicator() |
|
) |
| |
|
inlineprotected |
constructor given the name of a DGF file
◆ MacroGrid() [2/2]
constructor given the name of a DGF file
◆ createGrid()
template<class GridType >
GridType * Dune::MacroGrid::createGrid |
( |
| ) |
|
|
inlineprotected |
returns pointer to a new instance of type GridType created from a DGF file
◆ generateBoundaries()
void Dune::DuneGridFormatParser::generateBoundaries |
( |
std::istream & |
, |
|
|
bool |
|
|
) |
| |
|
protectedinherited |
◆ generateSimplexGrid()
void Dune::DuneGridFormatParser::generateSimplexGrid |
( |
std::istream & |
| ) |
|
|
protectedinherited |
◆ getElParam()
std::vector< double > & Dune::DuneGridFormatParser::getElParam |
( |
int |
i, |
|
|
std::vector< double > & |
coord |
|
) |
| |
|
protectedinherited |
◆ getVtxParam()
std::vector< double > & Dune::DuneGridFormatParser::getVtxParam |
( |
int |
i, |
|
|
std::vector< double > & |
coord |
|
) |
| |
|
protectedinherited |
◆ isDuneGridFormat() [1/2]
bool Dune::DuneGridFormatParser::isDuneGridFormat |
( |
const std::string & |
filename | ) |
|
|
staticinherited |
check whether a file is in dune grid format
This is just a convenience method. It calls isDuneGridFormat with a std::ifstream.
- Parameters
-
- Returns
- whether the keyword 'DGF' was found
◆ isDuneGridFormat() [2/2]
bool Dune::DuneGridFormatParser::isDuneGridFormat |
( |
std::istream & |
input | ) |
|
|
staticinherited |
check whether a stream is in DUNE grid format
Actually checks whether the stream starts with the keyword 'DGF'.
- Parameters
-
input | std::istream to check |
- Note
- The stream must support seeking.
- Returns
- whether the keyword 'DGF' was found
◆ readDuneGrid()
bool Dune::DuneGridFormatParser::readDuneGrid |
( |
std::istream & |
input, |
|
|
int |
dimG, |
|
|
int |
dimW |
|
) |
| |
|
inherited |
parse dune grid format from stream
This method actually fills the vtx, element, and bound vectors.
- Parameters
-
- Note
- The stream must support seeking.
- Returns
- whether reading succeeded
◆ readTetgenTriangle()
void Dune::DuneGridFormatParser::readTetgenTriangle |
( |
const std::string & |
| ) |
|
|
protectedinherited |
◆ removeCopies()
void Dune::DuneGridFormatParser::removeCopies |
( |
| ) |
|
|
protectedinherited |
◆ setOrientation()
◆ setRefinement()
void Dune::DuneGridFormatParser::setRefinement |
( |
int |
use1, |
|
|
int |
use2, |
|
|
int |
is1 = -1 , |
|
|
int |
is2 = -1 |
|
) |
| |
|
protectedinherited |
◆ temporaryFileName()
std::string Dune::DuneGridFormatParser::temporaryFileName |
( |
| ) |
|
|
inlinestaticprotectedinherited |
◆ testTriang()
double Dune::DuneGridFormatParser::testTriang |
( |
int |
snr | ) |
|
|
protectedinherited |
◆ writeTetgenPoly() [1/2]
void Dune::DuneGridFormatParser::writeTetgenPoly |
( |
const std::string & |
prefixname, |
|
|
std::string & |
extension, |
|
|
std::string & |
params |
|
) |
| |
|
inherited |
method to write in Tetgen/Triangle Poly Format
◆ writeTetgenPoly() [2/2]
void Dune::DuneGridFormatParser::writeTetgenPoly |
( |
std::ostream & |
out, |
|
|
const bool |
writeSegments = true |
|
) |
| |
|
inherited |
◆ bound
std::vector< std::vector < int > > Dune::DuneGridFormatParser::bound |
|
protectedinherited |
◆ cube2simplex
bool Dune::DuneGridFormatParser::cube2simplex |
|
protectedinherited |
◆ dimgrid
int Dune::DuneGridFormatParser::dimgrid |
|
protectedinherited |
◆ dimw
int Dune::DuneGridFormatParser::dimw |
|
protectedinherited |
◆ element
element_t Dune::DuneGridFormatParser::element |
|
protectedinherited |
◆ elements
std :: vector< std :: vector< unsigned int > > Dune::DuneGridFormatParser::elements |
|
protectedinherited |
◆ elParams
std::vector< std::vector< double > > Dune::DuneGridFormatParser::elParams |
|
protectedinherited |
◆ emptyParam_
std::vector< double > Dune::DuneGridFormatParser::emptyParam_ |
|
protectedinherited |
◆ facemap
facemap_t Dune::DuneGridFormatParser::facemap |
|
protectedinherited |
◆ haveBndParameters
bool Dune::DuneGridFormatParser::haveBndParameters |
|
protectedinherited |
◆ info
◆ minVertexDistance
double Dune::DuneGridFormatParser::minVertexDistance |
|
protectedinherited |
◆ nofbound
int Dune::DuneGridFormatParser::nofbound |
|
protectedinherited |
◆ nofelements
int Dune::DuneGridFormatParser::nofelements |
|
protectedinherited |
◆ nofelparams
int Dune::DuneGridFormatParser::nofelparams |
|
protectedinherited |
◆ nofvtx
int Dune::DuneGridFormatParser::nofvtx |
|
protectedinherited |
◆ nofvtxparams
int Dune::DuneGridFormatParser::nofvtxparams |
|
protectedinherited |
◆ simplexgrid
bool Dune::DuneGridFormatParser::simplexgrid |
|
protectedinherited |
◆ vtx
std::vector< std::vector < double > > Dune::DuneGridFormatParser::vtx |
|
protectedinherited |
◆ vtxoffset
int Dune::DuneGridFormatParser::vtxoffset |
|
protectedinherited |
◆ vtxParams
std::vector< std::vector< double > > Dune::DuneGridFormatParser::vtxParams |
|
protectedinherited |
The documentation for this class was generated from the following file: