Back to index

salome-med  6.5.0
Classes | Typedefs | Enumerations | Functions
SauvUtilities Namespace Reference

Classes

struct  Node
struct  Cell
struct  Group
struct  DoubleField
class  CellsByDimIterator
 
More...
class  NodeContainer
 
More...
struct  IntermediateMED
 
More...
class  ASCIIReader
 ASCII sauve file reader. More...
class  XDRReader
 XDR (binary) sauve file reader. More...
struct  nameGIBItoMED
class  FileReader
 Base class for ASCII and XDR file readers. More...

Typedefs

typedef int TID
typedef std::pair< TID, TIDLink
typedef
INTERP_KERNEL::NormalizedCellType 
TCellType

Enumerations

enum  Readable_Piles {
  PILE_SOUS_MAILLAGE = 1, PILE_NODES_FIELD = 2, PILE_TABLES = 10, PILE_LREEL = 18,
  PILE_LOGIQUES = 24, PILE_FLOATS = 25, PILE_INTEGERS = 26, PILE_STRINGS = 27,
  PILE_LMOTS = 29, PILE_NOEUDS = 32, PILE_COORDONNEES = 33, PILE_MODL = 38,
  PILE_FIELD = 39, PILE_LAST_READABLE = 39
}

Functions

std::ostream & operator<< (std::ostream &os, const Cell &ma)
 Dump a Cell.
INTERP_KERNEL::NormalizedCellType
MEDLOADER_EXPORT 
gibi2medGeom (size_t gibiType)
 Conver gibi element type to med one.
int med2gibiGeom (INTERP_KERNEL::NormalizedCellType medGeomType)
 Conver med element type to gibi one.
const int * getGibi2MedQuadraticInterlace (INTERP_KERNEL::NormalizedCellType type)
 Returns interlace array to transform a quadratic GIBI element to a MED one.
unsigned getDimension (INTERP_KERNEL::NormalizedCellType type)
 Return dimension for the given cell type.
template<class T >
std::string toString (const T &anything)
 Converts anything to string.

Class Documentation

struct SauvUtilities::nameGIBItoMED

Definition at line 77 of file SauvUtilities.hxx.

Collaboration diagram for SauvUtilities::nameGIBItoMED:
Class Members
int gibi_id
string gibi_name
int gibi_pile
int med_id
string med_name

Typedef Documentation

typedef std::pair<TID,TID> SauvUtilities::Link

Definition at line 54 of file SauvMedConvertor.hxx.

Definition at line 56 of file SauvMedConvertor.hxx.

typedef int SauvUtilities::TID

Definition at line 50 of file SauvMedConvertor.hxx.


Enumeration Type Documentation

Enumerator:
PILE_SOUS_MAILLAGE 
PILE_NODES_FIELD 
PILE_TABLES 
PILE_LREEL 
PILE_LOGIQUES 
PILE_FLOATS 
PILE_INTEGERS 
PILE_STRINGS 
PILE_LMOTS 
PILE_NOEUDS 
PILE_COORDONNEES 
PILE_MODL 
PILE_FIELD 
PILE_LAST_READABLE 

Definition at line 46 of file SauvUtilities.hxx.


Function Documentation

Return dimension for the given cell type.

Definition at line 256 of file SauvMedConvertor.cxx.

{
  return type == NORM_ERROR ? -1 : INTERP_KERNEL::CellModel::GetCellModel( type ).getDimension();
}

Here is the call graph for this function:

Here is the caller graph for this function:

Returns interlace array to transform a quadratic GIBI element to a MED one.

Definition at line 267 of file SauvMedConvertor.cxx.

{
  static vector<const int*> conn;
  static const int hexa20 [] = {0,6,4,2, 12,18,16,14, 7,5,3,1, 19,17,15,13, 8,11,10,9};
  static const int penta15[] = {0,2,4, 9,11,13, 1,3,5, 10,12,14, 6,7,3};
  static const int pyra13 [] = {0,2,4,6, 12, 1,3,5,7, 8,9,10,11};
  static const int tetra10[] = {0,2,4, 9, 1,3,5, 6,7,8};
  static const int quad8  [] = {0,2,4,6, 1,3,5,7};
  static const int tria6  [] = {0,2,4, 1,3,5};
  static const int seg3   [] = {0,2,1};
  if ( conn.empty() )
  {
    conn.resize( MaxMedCellType + 1, 0 );
    conn[ NORM_HEXA20 ] = hexa20;
    conn[ NORM_PENTA15] = penta15;
    conn[ NORM_PYRA13 ] = pyra13;
    conn[ NORM_TETRA10] = tetra10;
    conn[ NORM_SEG3   ] = seg3;
    conn[ NORM_TRI6   ] = tria6;
    conn[ NORM_QUAD8  ] = quad8;
  }
  return conn[ type ];
}

Here is the caller graph for this function:

Conver gibi element type to med one.

Definition at line 414 of file SauvMedConvertor.cxx.

{
  if ( gibiType < 1 || gibiType > NbGibiCellTypes )
    return NORM_ERROR;

  return GibiTypeToMed[ gibiType - 1 ];
}

Conver med element type to gibi one.

Definition at line 428 of file SauvMedConvertor.cxx.

{
  for ( unsigned int i = 0; i < NbGibiCellTypes; i++ )
    if ( GibiTypeToMed[ i ] == medGeomType )
      return i + 1;

  return -1;
}
std::ostream & SauvUtilities::operator<< ( std::ostream &  os,
const Cell ma 
)

Dump a Cell.

Definition at line 367 of file SauvMedConvertor.cxx.

{
  os << "cell " << ma._number << " (" << ma._nodes.size() << " nodes) : < " << ma._nodes[0]->_number;
  for( size_t i=1; i!=ma._nodes.size(); ++i)
    os << ", " << ma._nodes[i]->_number;
#ifdef _DEBUG_
  os << " > sortedNodes: ";
  if ( ma._sortedNodeIDs ) {
    os << "< ";
    for( size_t i=0; i!=ma._nodes.size(); ++i)
      os << ( i ? ", " : "" ) << ma._sortedNodeIDs[i];
    os << " >";
  }
  else {
    os << "NULL";
  }
#endif
  return os;
}
template<class T >
std::string SauvUtilities::toString ( const T &  anything)

Converts anything to string.

Definition at line 70 of file SauvUtilities.hxx.

  {
    std::ostringstream s; s << anything; return s.str();
  }

Here is the caller graph for this function: