The DuneGridFormatParser class: reads a DGF file and stores build information in vector structures used by the MacroGrid class.
More...
#include <dune/grid/io/file/dgfparser/parser.hh>
The DuneGridFormatParser class: reads a DGF file and stores build information in vector structures used by the MacroGrid class.
◆ BndParam
◆ BoundaryParameter
◆ facemap_t
◆ element_t
Enumerator |
---|
Simplex | |
Cube | |
General | |
◆ orientation_t
Enumerator |
---|
counterclockwise | |
clockwise | |
◆ DuneGridFormatParser()
Dune::DuneGridFormatParser::DuneGridFormatParser |
( |
int |
rank, |
|
|
int |
size |
|
) |
| |
◆ generateBoundaries()
void Dune::DuneGridFormatParser::generateBoundaries |
( |
std::istream & |
, |
|
|
bool |
|
|
) |
| |
|
protected |
◆ generateSimplexGrid()
void Dune::DuneGridFormatParser::generateSimplexGrid |
( |
std::istream & |
| ) |
|
|
protected |
◆ getElParam()
std::vector< double > & Dune::DuneGridFormatParser::getElParam |
( |
int |
i, |
|
|
std::vector< double > & |
coord |
|
) |
| |
|
protected |
◆ getVtxParam()
std::vector< double > & Dune::DuneGridFormatParser::getVtxParam |
( |
int |
i, |
|
|
std::vector< double > & |
coord |
|
) |
| |
|
protected |
◆ isDuneGridFormat() [1/2]
bool Dune::DuneGridFormatParser::isDuneGridFormat |
( |
const std::string & |
filename | ) |
|
|
static |
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 | ) |
|
|
static |
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 |
|
) |
| |
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 & |
| ) |
|
|
protected |
◆ removeCopies()
void Dune::DuneGridFormatParser::removeCopies |
( |
| ) |
|
|
protected |
◆ setOrientation()
◆ setRefinement()
void Dune::DuneGridFormatParser::setRefinement |
( |
int |
use1, |
|
|
int |
use2, |
|
|
int |
is1 = -1 , |
|
|
int |
is2 = -1 |
|
) |
| |
|
protected |
◆ temporaryFileName()
std::string Dune::DuneGridFormatParser::temporaryFileName |
( |
| ) |
|
|
inlinestaticprotected |
◆ testTriang()
double Dune::DuneGridFormatParser::testTriang |
( |
int |
snr | ) |
|
|
protected |
◆ writeTetgenPoly() [1/2]
void Dune::DuneGridFormatParser::writeTetgenPoly |
( |
const std::string & |
prefixname, |
|
|
std::string & |
extension, |
|
|
std::string & |
params |
|
) |
| |
method to write in Tetgen/Triangle Poly Format
◆ writeTetgenPoly() [2/2]
void Dune::DuneGridFormatParser::writeTetgenPoly |
( |
std::ostream & |
out, |
|
|
const bool |
writeSegments = true |
|
) |
| |
◆ bound
std::vector< std::vector < int > > Dune::DuneGridFormatParser::bound |
|
protected |
◆ cube2simplex
bool Dune::DuneGridFormatParser::cube2simplex |
|
protected |
◆ dimgrid
int Dune::DuneGridFormatParser::dimgrid |
|
protected |
◆ dimw
int Dune::DuneGridFormatParser::dimw |
|
protected |
◆ element
element_t Dune::DuneGridFormatParser::element |
|
protected |
◆ elements
std :: vector< std :: vector< unsigned int > > Dune::DuneGridFormatParser::elements |
|
protected |
◆ elParams
std::vector< std::vector< double > > Dune::DuneGridFormatParser::elParams |
|
protected |
◆ emptyParam_
std::vector< double > Dune::DuneGridFormatParser::emptyParam_ |
|
protected |
◆ facemap
facemap_t Dune::DuneGridFormatParser::facemap |
|
protected |
◆ haveBndParameters
bool Dune::DuneGridFormatParser::haveBndParameters |
|
protected |
◆ info
◆ minVertexDistance
double Dune::DuneGridFormatParser::minVertexDistance |
|
protected |
◆ nofbound
int Dune::DuneGridFormatParser::nofbound |
|
protected |
◆ nofelements
int Dune::DuneGridFormatParser::nofelements |
|
protected |
◆ nofelparams
int Dune::DuneGridFormatParser::nofelparams |
|
protected |
◆ nofvtx
int Dune::DuneGridFormatParser::nofvtx |
|
protected |
◆ nofvtxparams
int Dune::DuneGridFormatParser::nofvtxparams |
|
protected |
◆ simplexgrid
bool Dune::DuneGridFormatParser::simplexgrid |
|
protected |
◆ vtx
std::vector< std::vector < double > > Dune::DuneGridFormatParser::vtx |
|
protected |
◆ vtxoffset
int Dune::DuneGridFormatParser::vtxoffset |
|
protected |
◆ vtxParams
std::vector< std::vector< double > > Dune::DuneGridFormatParser::vtxParams |
|
protected |
The documentation for this class was generated from the following files: