dune-grid
2.3.1
|
#include <dune/grid/io/file/dgfparser/macrogrid.hh>
Public Types | |
typedef MPIHelper::MPICommunicator | MPICommunicatorType |
Protected Types | |
enum | element_t { Simplex, Cube, General } |
enum | orientation_t { counterclockwise =1, clockwise =-1 } |
typedef DGFBoundaryParameter::type | BoundaryParameter |
typedef std::pair< int, BoundaryParameter > | BndParam |
typedef std::map< DGFEntityKey < unsigned int >, BndParam > | facemap_t |
Protected Member Functions | |
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) |
Static Protected Member Functions | |
static bool | isDuneGridFormat (std::istream &input) |
check whether a stream is in DUNE grid format More... | |
static bool | isDuneGridFormat (const std::string &filename) |
check whether a file is in dune grid format More... | |
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 |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
typedef MPIHelper::MPICommunicator Dune::MacroGrid::MPICommunicatorType |
|
inherited |
|
inherited |
|
inlineprotected |
constructor given the name of a DGF file
|
inlineprotected |
constructor given the name of a DGF file
|
inlineprotected |
returns pointer to a new instance of type GridType created from a DGF file
|
protectedinherited |
References Dune::dgf::BoundaryDomBlock::contains(), Dune::DGFBoundaryParameter::defaultValue(), Dune::ElementFaceUtil::generateFace(), Dune::dgf::BoundarySegBlock::get(), Dune::dgf::BoundaryDomBlock::hasParameter(), Dune::dgf::DomainData::id(), Dune::dgf::BasicBlock::isactive(), and Dune::ElementFaceUtil::nofFaces().
Referenced by Dune::DuneGridFormatParser::readDuneGrid().
|
protectedinherited |
References Dune::dgf::SimplexGenerationBlock::dimension(), Dune::DuneGridFormatParser::dimw, Dune::dgf::SimplexGenerationBlock::display(), Dune::dgf::SimplexGenerationBlock::dumpFileName(), Dune::dgf::SimplexGenerationBlock::filename(), Dune::dgf::SimplexGenerationBlock::filetype(), Dune::dgf::SimplexGenerationBlock::hasfile(), Dune::dgf::SimplexGenerationBlock::haspath(), Dune::dgf::SimplexGenerationBlock::maxArea(), Dune::dgf::SimplexGenerationBlock::minAngle(), Dune::dgf::SimplexGenerationBlock::parameter(), Dune::dgf::SimplexGenerationBlock::path(), Dune::DuneGridFormatParser::readTetgenTriangle(), Dune::DuneGridFormatParser::temporaryFileName(), and Dune::DuneGridFormatParser::writeTetgenPoly().
Referenced by Dune::DuneGridFormatParser::readDuneGrid().
|
protectedinherited |
|
protectedinherited |
|
staticinherited |
check whether a stream is in DUNE grid format
Actually checks whether the stream starts with the keyword 'DGF'.
input | std::istream to check |
References Dune::dgfid(), and Dune::dgf::makeupcase().
Referenced by Dune::DuneGridFormatParser::isDuneGridFormat(), and Dune::DuneGridFormatParser::readDuneGrid().
|
staticinherited |
check whether a file is in dune grid format
This is just a convenience method. It calls isDuneGridFormat with a std::ifstream.
filename | file to check |
References Dune::DuneGridFormatParser::isDuneGridFormat().
|
inherited |
parse dune grid format from stream
This method actually fills the vtx, element, and bound vectors.
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) |
References Dune::DuneGridFormatParser::Cube, Dune::dgf::SimplexBlock::cube2simplex(), Dune::DuneGridFormatParser::cube2simplex, Dune::dgfid(), Dune::DuneGridFormatParser::dimgrid, Dune::dgf::IntervalBlock::dimw(), Dune::DuneGridFormatParser::dimw, Dune::DuneGridFormatParser::element, Dune::DuneGridFormatParser::elements, Dune::DuneGridFormatParser::elParams, Dune::DuneGridFormatParser::General, Dune::DuneGridFormatParser::generateBoundaries(), Dune::DuneGridFormatParser::generateSimplexGrid(), Dune::dgf::VertexBlock::get(), Dune::dgf::SimplexBlock::get(), Dune::dgf::CubeBlock::get(), Dune::dgf::IntervalBlock::get(), Dune::DuneGridFormatParser::info, Dune::dgf::BasicBlock::isactive(), Dune::DuneGridFormatParser::isDuneGridFormat(), Dune::DuneGridFormatParser::nofelements, Dune::DuneGridFormatParser::nofelparams, Dune::DuneGridFormatParser::nofvtx, Dune::DuneGridFormatParser::nofvtxparams, Dune::dgf::IntervalBlock::numIntervals(), Dune::dgf::VertexBlock::offset(), Dune::DuneGridFormatParser::removeCopies(), Dune::DuneGridFormatParser::Simplex, Dune::DuneGridFormatParser::simplexgrid, Dune::DuneGridFormatParser::testTriang(), Dune::DuneGridFormatParser::vtx, Dune::DuneGridFormatParser::vtxoffset, and Dune::DuneGridFormatParser::vtxParams.
|
protectedinherited |
References Dune::DuneGridFormatParser::dimw, Dune::DuneGridFormatParser::elements, Dune::DuneGridFormatParser::elParams, Dune::DuneGridFormatParser::facemap, Dune::DuneGridFormatParser::nofelements, Dune::DuneGridFormatParser::nofelparams, Dune::DuneGridFormatParser::nofvtx, Dune::DuneGridFormatParser::nofvtxparams, Dune::DuneGridFormatParser::vtx, and Dune::DuneGridFormatParser::vtxParams.
Referenced by Dune::DuneGridFormatParser::generateSimplexGrid().
|
protectedinherited |
|
protectedinherited |
References Dune::simplex.
|
protectedinherited |
|
inlinestaticprotectedinherited |
Referenced by Dune::DuneGridFormatParser::generateSimplexGrid().
|
protectedinherited |
References Dune::DuneGridFormatParser::elements, and Dune::DuneGridFormatParser::vtx.
Referenced by Dune::DuneGridFormatParser::readDuneGrid().
|
inherited |
method to write in Tetgen/Triangle Poly Format
Referenced by Dune::DuneGridFormatParser::generateSimplexGrid().
|
inherited |
References Dune::DuneGridFormatParser::dimw, Dune::DuneGridFormatParser::elements, Dune::DuneGridFormatParser::elParams, Dune::DuneGridFormatParser::facemap, Dune::DuneGridFormatParser::nofelparams, Dune::DuneGridFormatParser::nofvtx, Dune::DuneGridFormatParser::nofvtxparams, Dune::DuneGridFormatParser::vtx, and Dune::DuneGridFormatParser::vtxParams.
|
friend |
|
protectedinherited |
|
protectedinherited |
Referenced by Dune::DuneGridFormatParser::readDuneGrid().
|
protectedinherited |
|
protectedinherited |
Referenced by Dune::DuneGridFormatParser::generateSimplexGrid(), Dune::DuneGridFormatParser::getElParam(), Dune::DuneGridFormatParser::getVtxParam(), Dune::DuneGridFormatParser::readDuneGrid(), Dune::DuneGridFormatParser::readTetgenTriangle(), Dune::DuneGridFormatParser::removeCopies(), Dune::DuneGridFormatParser::setRefinement(), and Dune::DuneGridFormatParser::writeTetgenPoly().
|
protectedinherited |
|
protectedinherited |
Referenced by Dune::DGFGridFactory< HostGrid >::DGFGridFactory(), Dune::DuneGridFormatParser::getElParam(), Dune::DuneGridFormatParser::readDuneGrid(), Dune::DuneGridFormatParser::readTetgenTriangle(), Dune::DuneGridFormatParser::removeCopies(), Dune::DuneGridFormatParser::setRefinement(), Dune::DuneGridFormatParser::testTriang(), and Dune::DuneGridFormatParser::writeTetgenPoly().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by Dune::DuneGridFormatParser::readDuneGrid().
|
protectedinherited |
Referenced by Dune::DuneGridFormatParser::removeCopies().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Referenced by Dune::DuneGridFormatParser::readDuneGrid().
|
protectedinherited |
Referenced by Dune::DGFGridFactory< HostGrid >::DGFGridFactory(), Dune::DuneGridFormatParser::getElParam(), Dune::DuneGridFormatParser::getVtxParam(), Dune::DuneGridFormatParser::readDuneGrid(), Dune::DuneGridFormatParser::readTetgenTriangle(), Dune::DuneGridFormatParser::removeCopies(), Dune::DuneGridFormatParser::setRefinement(), Dune::DuneGridFormatParser::testTriang(), and Dune::DuneGridFormatParser::writeTetgenPoly().
|
protectedinherited |
Referenced by Dune::DuneGridFormatParser::readDuneGrid().
|
protectedinherited |