dune-grid 2.9.0
|
File reader for the Star-CD format. More...
#include <dune/grid/io/file/starcdreader.hh>
Static Public Member Functions | |
static std::unique_ptr< GridType > | read (const std::string &fileName, bool verbose=true) |
Read grid from a Star-CD file. More... | |
File reader for the Star-CD format.
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
The file fileName.cel contains the data of the volume and possibly the boundary elements, each row having the format
The flags flag1 and flag2 appear to be always identical to 1 in case of a volume element and to 4 in case of a boundary element. The element types simplex, pyramid, prism, and cube are supported:
This reader only supports three-dimensional grids.
Currently no boundary element data is passed to grid.
|
inlinestatic |
Read grid from a Star-CD file.
fileName | The base file name of the Star-CD files |
verbose | Tlag to set whether information should be printed |