|
dune-grid 2.11
|
Loading...
Searching...
No Matches
Public Types |
Public Member Functions |
Static Public Member Functions |
Protected Types |
Protected Member Functions |
Static Protected Member Functions |
Protected Attributes |
Friends |
List of all members
Dune::DuneGridFormatParser Class Reference
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>
Inheritance diagram for Dune::DuneGridFormatParser:

Public Types | |
| enum | element_t { Simplex , Cube , General } |
| enum | orientation_t { counterclockwise =1 , clockwise =-1 } |
Public Member Functions | |
| DuneGridFormatParser (int rank, int size) | |
| constructor | |
| bool | readDuneGrid (std::istream &input, int dimG, int dimW) |
| parse dune grid format from stream | |
| void | writeTetgenPoly (const std::string &, std::string &, std::string &) |
| method to write in Tetgen/Triangle Poly Format | |
| void | writeTetgenPoly (std::ostream &out, const bool writeSegments=true) |
Static Public Member Functions | |
| static bool | isDuneGridFormat (std::istream &input) |
| check whether a stream is in DUNE grid format | |
| static bool | isDuneGridFormat (const std::string &filename) |
| check whether a file is in dune grid format | |
Protected Types | |
| typedef DGFBoundaryParameter::type | BoundaryParameter |
| typedef std::pair< int, BoundaryParameter > | BndParam |
| typedef std::map< DGFEntityKey< unsigned int >, BndParam > | facemap_t |
Protected Member Functions | |
| 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) |
Static Protected Member Functions | |
| static std::string | temporaryFileName () |
Protected Attributes | |
| int | dimw |
| int | dimgrid |
| std::vector< std::vector< double > > | vtx |
| int | nofvtx |
| int | vtxoffset |
| double | minVertexDistance |
| std ::vector< std ::vector< unsigned int > > | elements |
| int | nofelements |
| std::vector< std::vector< int > > | bound |
| int | nofbound |
| facemap_t | facemap |
| bool | haveBndParameters |
| element_t | element |
| bool | simplexgrid |
| bool | cube2simplex |
| int | nofvtxparams |
| int | nofelparams |
| std::vector< std::vector< double > > | vtxParams |
| std::vector< std::vector< double > > | elParams |
| DGFPrintInfo * | info |
| std::vector< double > | emptyParam_ |
Friends | |
| template<class GridType > | |
| struct | DGFGridFactory |
| template<class GridType > | |
| struct | DGFBaseFactory |
Detailed Description
The DuneGridFormatParser class: reads a DGF file and stores build information in vector structures used by the MacroGrid class.
Member Typedef Documentation
◆ BndParam
|
protected |
◆ BoundaryParameter
|
protected |
◆ facemap_t
|
protected |
Member Enumeration Documentation
◆ element_t
◆ orientation_t
Constructor & Destructor Documentation
◆ DuneGridFormatParser()
| Dune::DuneGridFormatParser::DuneGridFormatParser | ( | int | rank, |
| int | size | ||
| ) |
constructor
Member Function Documentation
◆ generateBoundaries()
|
protected |
◆ generateSimplexGrid()
|
protected |
◆ getElParam()
|
protected |
◆ getVtxParam()
|
protected |
◆ isDuneGridFormat() [1/2]
|
static |
check whether a file is in dune grid format
This is just a convenience method. It calls isDuneGridFormat with a std::ifstream.
- Parameters
-
filename file to check
- Returns
- whether the keyword 'DGF' was found
◆ isDuneGridFormat() [2/2]
|
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
-
input std::istream to read the grid from [in] dimG dimension of the grid (i.e., Grid::dimension) [in] dimW dimension of the world (i.e., Grid::dimensionworld)
- Note
- The stream must support seeking.
- Returns
- whether reading succeeded
◆ readTetgenTriangle()
|
protected |
◆ removeCopies()
|
protected |
◆ setOrientation()
|
protected |
◆ setRefinement()
|
protected |
◆ temporaryFileName()
|
inlinestaticprotected |
◆ testTriang()
|
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 |
||
| ) |
Friends And Related Symbol Documentation
◆ DGFBaseFactory
template<class GridType >
|
friend |
◆ DGFGridFactory
template<class GridType >
|
friend |
Member Data Documentation
◆ bound
|
protected |
◆ cube2simplex
|
protected |
◆ dimgrid
|
protected |
◆ dimw
|
protected |
◆ element
|
protected |
◆ elements
|
protected |
◆ elParams
|
protected |
◆ emptyParam_
|
protected |
◆ facemap
|
protected |
◆ haveBndParameters
|
protected |
◆ info
|
protected |
◆ minVertexDistance
|
protected |
◆ nofbound
|
protected |
◆ nofelements
|
protected |
◆ nofelparams
|
protected |
◆ nofvtx
|
protected |
◆ nofvtxparams
|
protected |
◆ simplexgrid
|
protected |
◆ vtx
|
protected |
◆ vtxoffset
|
protected |
◆ vtxParams
|
protected |
The documentation for this class was generated from the following files:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8