#include <Grid.h>
Inheritance diagram for Grid::

Public Methods | |
| virtual | ~Grid () |
| virtual void | print (Os os) const=0 |
| virtual void | scan (Is is)=0 |
| virtual int | getNoSpaceDim () const=0 |
| virtual void | getMinMaxCoord (Ptv(real) &mincoord, Ptv(real) &maxcoord) const=0 |
| int | getNoMembers_idList () |
| bool | getMember_idList (const int refno, String &datasetname, int &gridnumber, int &checknumber) |
| virtual void | isToBeChanged () |
| void | loadData (Is is, const String &datasetname, const int gridnumber, const int checknumber) |
| void | unloadData (Os os, const String &datasetname, const int gridnumber, const int checknumber) |
| virtual CLASS_INFO void | flipAroundSymmetryPlane (int dir, real plane) |
Static Public Methods | |
| int | getNewChecknumber () |
Protected Methods | |
| Grid () | |
NAME: Grid - base class for grids
DESCRIPTION:
The class serves as base class for all types of grids. It defines a set of virtual functions, mainly used by the tools "FieldReader", "FieldWriter" and "SimResFile" for storing fields and their corresponding grids in a compact format. For example, several fields may use the same grid and this must be reflected in the storage. Necessary data for the book-keeping of grids are included in class "Grid".
|
|
The constructor takes no arguments. No further initialization is necessary. |
|
|
|
|
|
Reimplemented in BasisFuncGrid, GridFE, and GridLattice. |
|
|
|
|
|
returns the hypercube (with respect to the Cartesian coordinate system where the grid coordinates are defined) that encloses the grid. This function is only meaningful if the grid represents some kind of geometry in the problem. Reimplemented in BasisFuncGrid, GridFE, GridFV, GridLattice, GridScatPt, and GridWithPts. |
|
|
|
|
|
|
|
|
returns the number of space dimensions associated with the grid. Reimplemented in BasisFuncGrid, GridFE, GridFV, GridLattice, GridScatPt, and GridWithPts. |
|
|
indicates that the grid is to be changed and that the grid must be stored on the grid file (see class "SimResFile" or class "FieldWriter") next time a field referencing this grid is dumped to file. The function is typically used when the grid is moved or refined. Reimplemented in BasisFuncGrid, and GridFE. |
|
|
load the grid from a SimRes grid file. This is the standard way of reading a grid in Diffpack. The function is used by the "FieldReader" and "SimResFile" classes. For simple input/output coded by a user, the "scan" function is usually the preferred function for reading the grid ("loadData" may be somewhat specialized for reading a grid associated with a field). |
|
|
prints the grid (usually in ascii format). Reimplemented in BasisFuncGrid, GridFE, GridFV, GridLattice, GridScatPt, and GridFEAdB. |
|
|
reads the grid (usually in ascii format -- seldom used). Reimplemented in BasisFuncGrid, GridFE, GridFV, GridLattice, and GridScatPt. |
|
|
write the grid to a SimRes grid file. This is the standard way of writing a grid in Diffpack. The function is used by the "FieldWriter" and "SimResFile" classes. For simple input/output coded by a user, the "print" function is usually the preferred function for writing the grid ("unloadData" may be somewhat specialized for writing a grid associated with a field). |