Version: 6.5.0
Functions
Constructors

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)

Detailed Description

These methods are the different constructors for the grid objects.

Function Documentation

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.

Parameters
xyz_arrayspecifies the node coordinates for each direction
coord_namenames of the different coordinates
coord_unitnames of the different coordinate units
typegrid 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.

Parameters
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().

Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS