#include <starcdreader.hh>
Reads grid data described by the Star-CD format and fills an empty grid with the data. Uses the grid creation methods described in "How to Write a File Reader for UGGrid Objects".
Two files fileName.vrt and fileName.cel have to be present. The file fileName.vrt contains the coordinates of the nodes, each row having the format
idx x-coordinate y-coordinate z-coordinate
The file fileName.cel contains the data of the volume and possibly the boundary elements, each row having the format
idx node1 node2 ... node8 material/boundaryId flag1 flag2
This reader only supports three-dimensional grids.
Currently no boundary element data is passed to grid.
Static Public Member Functions | |
static GridType * | read (const std::string &fileName, bool verbose=true) |
Read grid from a Star-CD file. |
static GridType* Dune::StarCDReader< GridType >::read | ( | const std::string & | fileName, | |
bool | verbose = true | |||
) | [inline, static] |
Read grid from a Star-CD file.
grid | The grid | |
fileName | The base file name of the Star-CD files | |
verbose | Tlag to set whether information should be printed |
References Dune::GridFactory< GridType >::createGrid(), Dune::Grid< dim, dimworld, ct, GridFamily >::dimension, Dune::GridFactory< GridType >::insertElement(), and Dune::GridFactory< GridType >::insertVertex().