Functions | |
MEDMEM::GRID::GRID (const std::vector< std::vector< double > > &xyz_array, const std::vector< std::string > &coord_name, const std::vector< std::string > &coord_unit, const MED_EN::med_grid_type type=MED_EN::MED_CARTESIAN) | |
MEDMEM::GRID::GRID (driverTypes driverType, const string &fileName, const string &meshName) |
These methods are the different constructors for the grid objects.
GRID::GRID | ( | const std::vector< std::vector< double > > & | xyz_array, |
const std::vector< std::string > & | coord_name, | ||
const std::vector< std::string > & | coord_unit, | ||
const MED_EN::med_grid_type | type = MED_EN::MED_CARTESIAN |
||
) |
Constructor specifying the axes of the grid.
This constructor describes the grid by specifying the location of the nodes on each of the axis. The dimension of the grid is implicitly defined by the size of vector xyz_array.
xyz_array | specifies the node coordinates for each direction |
coord_name | names of the different coordinates |
coord_unit | names of the different coordinate units |
type | grid type (MED_POLAR, MED_CARTESIAN) |
References MEDMEM::GRID::_coordinate, MEDMEM::GRID::_gridType, MEDMEM::GRID::_iArray, MEDMEM::GRID::_iArrayLength, MEDMEM::GRID::_is_default_gridType, MEDMEM::GRID::_jArray, MEDMEM::GRID::_jArrayLength, MEDMEM::GRID::_kArray, MEDMEM::GRID::_kArrayLength, MEDMEM::GMESH::_spaceDimension, and MEDMEM::GRID::init().
GRID::GRID | ( | driverTypes | driverType, |
const string & | fileName, | ||
const string & | driverName | ||
) |
Reads a GRID form the file.
driverType | - type of driver to read the specified file |
fileName | - the file name to read |
driverName | - name of a grid to read |
References MEDMEM::GRID::init().