5#ifndef DUNE_DGF_DUNEGRIDFORMATPARSER_HH
6#define DUNE_DGF_DUNEGRIDFORMATPARSER_HH
91 bool readDuneGrid( std::istream &input,
int dimG,
int dimW );
94 void writeTetgenPoly (
const std::string &, std::string &, std::string & );
96 void writeTetgenPoly ( std::ostream & out,
const bool writeSegments =
true );
111 void setRefinement (
int use1,
int use2,
int is1=-1,
int is2=-1 );
115 std::vector< double > &
getElParam (
int i, std::vector< double > & coord );
117 std::vector< double > &
getVtxParam (
int i, std::vector< double > & coord );
125 std::vector < std::vector < double > >
vtx;
134 std :: vector< std :: vector< unsigned int > >
elements;
139 std::vector < std::vector < int > >
bound;
145 typedef std::pair < int, BoundaryParameter >
BndParam;
177 template<
class Gr
idType >
180 template<
class Gr
idType >
Include standard header files.
Definition: agrid.hh:60
Definition: dgfgridfactory.hh:38
Definition: io/file/dgfparser/dgfparser.cc:26
Contains types for additional features.
Definition: parser.hh:23
static const type & defaultValue()
default constructor
Definition: parser.hh:28
static const char delimiter
delimiter
Definition: parser.hh:41
static type convert(const std::string ¶meter)
copy from string
Definition: parser.hh:35
std::string type
type of additional boundary parameters
Definition: parser.hh:25
The DuneGridFormatParser class: reads a DGF file and stores build information in vector structures us...
Definition: parser.hh:47
int nofvtxparams
Definition: parser.hh:163
int nofbound
Definition: parser.hh:141
std::pair< int, BoundaryParameter > BndParam
Definition: parser.hh:145
void readTetgenTriangle(const std::string &)
Definition: io/file/dgfparser/dgfparser.cc:795
static bool isDuneGridFormat(std::istream &input)
check whether a stream is in DUNE grid format
Definition: io/file/dgfparser/dgfparser.cc:271
void setOrientation(int use1, int use2, orientation_t orientation=counterclockwise)
Definition: io/file/dgfparser/dgfparser.cc:910
std::vector< std::vector< double > > vtxParams
Definition: parser.hh:165
void setRefinement(int use1, int use2, int is1=-1, int is2=-1)
Definition: io/file/dgfparser/dgfparser.cc:989
friend struct DGFBaseFactory
Definition: parser.hh:181
static std::string temporaryFileName()
Definition: io/file/dgfparser/dgfparser.cc:1096
DuneGridFormatParser(int rank, int size)
constructor
Definition: io/file/dgfparser/dgfparser.cc:97
void removeCopies()
Definition: io/file/dgfparser/dgfparser.cc:464
int dimw
Definition: parser.hh:122
int dimgrid
Definition: parser.hh:122
element_t element
Definition: parser.hh:153
DGFBoundaryParameter::type BoundaryParameter
Definition: parser.hh:144
int nofelements
Definition: parser.hh:136
orientation_t
Definition: parser.hh:51
@ clockwise
Definition: parser.hh:51
@ counterclockwise
Definition: parser.hh:51
double testTriang(int snr)
Definition: io/file/dgfparser/dgfparser.cc:1050
double minVertexDistance
Definition: parser.hh:131
bool simplexgrid
Definition: parser.hh:157
std::map< DGFEntityKey< unsigned int >, BndParam > facemap_t
Definition: parser.hh:146
std::vector< std::vector< int > > bound
Definition: parser.hh:139
void generateSimplexGrid(std::istream &)
Definition: io/file/dgfparser/dgfparser.cc:624
std::vector< double > emptyParam_
Definition: parser.hh:170
int nofelparams
Definition: parser.hh:163
std::vector< std::vector< double > > elParams
Definition: parser.hh:165
facemap_t facemap
Definition: parser.hh:147
element_t
Definition: parser.hh:49
@ General
Definition: parser.hh:49
@ Cube
Definition: parser.hh:49
@ Simplex
Definition: parser.hh:49
bool cube2simplex
Definition: parser.hh:160
int nofvtx
Definition: parser.hh:127
void writeTetgenPoly(const std::string &, std::string &, std::string &)
method to write in Tetgen/Triangle Poly Format
Definition: io/file/dgfparser/dgfparser.cc:123
std::vector< std::vector< double > > vtx
Definition: parser.hh:125
int vtxoffset
Definition: parser.hh:129
bool readDuneGrid(std::istream &input, int dimG, int dimW)
parse dune grid format from stream
Definition: io/file/dgfparser/dgfparser.cc:298
std ::vector< std ::vector< unsigned int > > elements
Definition: parser.hh:134
bool haveBndParameters
Definition: parser.hh:150
DGFPrintInfo * info
Definition: parser.hh:168
void generateBoundaries(std::istream &, bool)
Definition: io/file/dgfparser/dgfparser.cc:502
std::vector< double > & getVtxParam(int i, std::vector< double > &coord)
Definition: io/file/dgfparser/dgfparser.cc:1086
std::vector< double > & getElParam(int i, std::vector< double > &coord)
Definition: io/file/dgfparser/dgfparser.cc:1070