Back to index

salome-med  6.5.0
Classes | Public Member Functions
SALOME_MED::MESH Interface Reference

import "MED.idl";

Inheritance diagram for SALOME_MED::MESH:
Inheritance graph
[legend]
Collaboration diagram for SALOME_MED::MESH:
Collaboration graph
[legend]

List of all members.

Classes

struct  connectivityInfos

Public Member Functions

boolean existConnectivity (in medConnectivity mode, in medEntityMesh entity) raises (SALOME::SALOME_Exception)
 Pour Alliances.
SALOME_TYPES::ListOfDouble getCoordinates (in medModeSwitch typeSwitch) raises (SALOME::SALOME_Exception)
 Returns an array of coordinates stored in any type.
SALOME::SenderDouble getSenderForCoordinates (in medModeSwitch typeSwitch) raises (SALOME::SALOME_Exception)
 Returns an array (Sender) of coordinates stored in any type.
double getCoordinate (in long Number, in long Axis) raises (SALOME::SALOME_Exception)
 Returns coordinate n Number on axis n Axis.
SALOME_TYPES::ListOfLong getGlobalNumberingIndex (in medEntityMesh entity)
 Returns the SUPPORT containing the boundary elements of the mesh.
SALOME_TYPES::ListOfLong getConnectivity (in medConnectivity mode, in medEntityMesh entity, in medGeometryElement geomElement) raises (SALOME::SALOME_Exception)
 Give, in full or no interlace mode (for nodal connectivity), descending or nodal connectivity.
SALOME::SenderInt getSenderForConnectivity (in medConnectivity mode, in medEntityMesh entity, in medGeometryElement geomElement) raises (SALOME::SALOME_Exception)
 Idem getConnectivity but return a Sender.
SALOME_TYPES::ListOfLong getConnectivityIndex (in medConnectivity mode, in medEntityMesh entity) raises (SALOME::SALOME_Exception)
 Give morse index array to use with getConnectivity(mode,entity,MED_ALL_ELEMENTS).
SALOME::SenderInt getSenderForConnectivityIndex (in medConnectivity mode, in medEntityMesh entity, in medGeometryElement geomElement) raises (SALOME::SALOME_Exception)
 Idem getConnectivityIndex but return a Sender.
long getElementNumber (in medConnectivity mode, in medEntityMesh entity, in medGeometryElement type, in SALOME_TYPES::ListOfLong connectivity) raises (SALOME::SALOME_Exception)
 Gets a global number of the element which have the same connectivity as the connectivity argument.
SALOME_TYPES::ListOfLong getReverseConnectivity (in medConnectivity mode) raises (SALOME::SALOME_Exception)
 Returns a reverse connectivity to MED_CELL.
SALOME_TYPES::ListOfLong getReverseConnectivityIndex (in medConnectivity mode) raises (SALOME::SALOME_Exception)
 Give index array to use with getReverseConnectivity(MED_NODAL).
connectivityInfos getConnectGlobal (in medEntityMesh entity) raises (SALOME::SALOME_Exception)
string getName () raises (SALOME::SALOME_Exception)
 Returns the name of the mesh .
long getSpaceDimension () raises (SALOME::SALOME_Exception)
 Returns space dimension.
long getMeshDimension () raises (SALOME::SALOME_Exception)
 Returns mesh dimension.
boolean getIsAGrid () raises (SALOME::SALOME_Exception)
 Pour Alliances.
string getCoordinatesSystem () raises (SALOME::SALOME_Exception)
 Returns coordinate system :
long getNumberOfNodes () raises (SALOME::SALOME_Exception)
 Returns the number of nodes defined in the mesh.
SALOME_TYPES::ListOfString getCoordinatesNames () raises (SALOME::SALOME_Exception)
 Returns an array containing the names of coordinates.
SALOME_TYPES::ListOfString getCoordinatesUnits () raises (SALOME::SALOME_Exception)
 Returns an array containing the units of coordinates (cm, m, mm, ...)
SUPPORT getBoundaryElements (in medEntityMesh Entity) raises (SALOME::SALOME_Exception)
 Returns the SUPPORT containing the boundary elements of the mesh.
SUPPORT getSupportOnAll (in medEntityMesh Entity) raises (SALOME::SALOME_Exception)
 Returns the SUPPORT defined on all the element of an Entity.
SUPPORT getSkin (in SUPPORT mySupport3D) raises (SALOME::SALOME_Exception)
 Returns the SUPPORT containing the boundary elements of the support mySupport3D.
coordinateInfos getCoordGlobal () raises (SALOME::SALOME_Exception)
long getNumberOfTypes (in medEntityMesh entity) raises (SALOME::SALOME_Exception)
 Returns the number of defferent medGeometryElement types existing in the specified entity.
medGeometryElement_array getTypes (in medEntityMesh entity) raises (SALOME::SALOME_Exception)
 Returns an array of all medGeometryElement types existing in the mesh.
long getNumberOfElements (in medEntityMesh entity, in medGeometryElement geomElement) raises (SALOME::SALOME_Exception)
 Returns the number of elements of type medGeometryElement.
medGeometryElement getElementType (in medEntityMesh entity, in long number) raises (SALOME::SALOME_Exception)
long getNumberOfFamilies (in medEntityMesh entity) raises (SALOME::SALOME_Exception)
 Returns the number of all families.
long getNumberOfGroups (in medEntityMesh entity) raises (SALOME::SALOME_Exception)
 Returns the number of all groups.
Family_array getFamilies (in medEntityMesh entity) raises (SALOME::SALOME_Exception)
 Returns an array of all families.
FAMILY getFamily (in medEntityMesh entity, in long familyNumber) raises (SALOME::SALOME_Exception)
 Returns the reference to i-th family.
Group_array getGroups (in medEntityMesh entity) raises (SALOME::SALOME_Exception)
 Returns an array of all groups.
GROUP getGroup (in medEntityMesh entity, in long groupNumber) raises (SALOME::SALOME_Exception)
 Returns the reference to i-th group.
FIELD getVolume (in SUPPORT mySupport) raises (SALOME::SALOME_Exception)
 Returns a field on mySupport containing volume.
FIELD getArea (in SUPPORT mySupport) raises (SALOME::SALOME_Exception)
 Returns a field on mySupport containing area.
FIELD getLength (in SUPPORT mySupport) raises (SALOME::SALOME_Exception)
 Returns a field on mySupport containing length.
FIELD getNormal (in SUPPORT mySupport) raises (SALOME::SALOME_Exception)
 Returns a field on mySupport containing normal.
FIELD getBarycenter (in SUPPORT mySupport) raises (SALOME::SALOME_Exception)
 Returns a field on mySupport containing barycenter.
void addInStudy (in SALOMEDS::Study myStudy, in GMESH myIor) raises (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection)
 Adds the Mesh in the StudyManager.
long addDriver (in medDriverTypes driverType, in string fileName, in string meshName) raises (SALOME::SALOME_Exception)
void rmDriver (in long i) raises (SALOME::SALOME_Exception)
void read (in long i) raises (SALOME::SALOME_Exception)
void write (in long i, in string driverMeshName) raises (SALOME::SALOME_Exception)
long getCorbaIndex () raises (SALOME::SALOME_Exception)
 Internal Corba method.
meshInfos getMeshGlobal () raises (SALOME::SALOME_Exception)
boolean areEquals (in GMESH other)
MESH convertInMESH ()

Detailed Description

Definition at line 429 of file MED.idl.


Class Documentation

struct SALOME_MED::MESH::connectivityInfos

Definition at line 548 of file MED.idl.

Class Members
long entityDimension
medGeometryElement_array meshTypes
ListOfLong nodalConnectivityLength
ListOfLong numberOfElements
long numberOfNodes

Member Function Documentation

long SALOME_MED::GMESH::addDriver ( in medDriverTypes  driverType,
in string  fileName,
in string  meshName 
) raises (SALOME::SALOME_Exception) [inherited]
void SALOME_MED::GMESH::addInStudy ( in SALOMEDS::Study  myStudy,
in GMESH  myIor 
) raises (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection) [inherited]

Adds the Mesh in the StudyManager.

boolean SALOME_MED::GMESH::areEquals ( in GMESH  other) [inherited]
bool MEDMEM::MESH::existConnectivity ( in medConnectivity  mode,
in medEntityMesh  entity 
) raises (SALOME::SALOME_Exception) [inline]

Pour Alliances.

Returns true if the wanted connectivity exist, else returns false (to use before a getSomething method).

Definition at line 454 of file MEDMEM_Mesh.hxx.

{
//   checkGridFillConnectivity();
  if (_connectivity==(CONNECTIVITY*)NULL)
    throw MEDEXCEPTION("MESH::existConnectivity(medConnectivity,medEntityMesh) : no connectivity defined !");
  return _connectivity->existConnectivity(connectivityType,entity);
}

Here is the call graph for this function:

FIELD SALOME_MED::GMESH::getArea ( in SUPPORT  mySupport) raises (SALOME::SALOME_Exception) [inherited]

Returns a field on mySupport containing area.

Note:
mySupport must be on MED_FACE entity.
FIELD SALOME_MED::GMESH::getBarycenter ( in SUPPORT  mySupport) raises (SALOME::SALOME_Exception) [inherited]

Returns a field on mySupport containing barycenter.

SUPPORT SALOME_MED::GMESH::getBoundaryElements ( in medEntityMesh  Entity) raises (SALOME::SALOME_Exception) [inherited]

Returns the SUPPORT containing the boundary elements of the mesh.

connectivityInfos SALOME_MED::MESH::getConnectGlobal ( in medEntityMesh  entity) raises (SALOME::SALOME_Exception)
SALOME_TYPES::ListOfLong SALOME_MED::MESH::getConnectivity ( in medConnectivity  mode,
in medEntityMesh  entity,
in medGeometryElement  geomElement 
) raises (SALOME::SALOME_Exception)

Give, in full or no interlace mode (for nodal connectivity), descending or nodal connectivity.

You must give a medEntityMesh (ie:MED_EDGE) and a medGeometryElement (ie:MED_SEG3).

SALOME_TYPES::ListOfLong SALOME_MED::MESH::getConnectivityIndex ( in medConnectivity  mode,
in medEntityMesh  entity 
) raises (SALOME::SALOME_Exception)

Give morse index array to use with getConnectivity(mode,entity,MED_ALL_ELEMENTS).

Each value give start index for corresponding entity in connectivity array.

Example : i-th element, j-th node of it :

  • In C mode : Connectivity[ConnectivityIndex[i]-1+j-1]
  • In fortran mode : Connectivity[ConnectivityIndex[i]+j]
coordinateInfos SALOME_MED::GMESH::getCoordGlobal ( ) raises (SALOME::SALOME_Exception) [inherited]
double SALOME_MED::MESH::getCoordinate ( in long  Number,
in long  Axis 
) raises (SALOME::SALOME_Exception)

Returns coordinate n Number on axis n Axis.

SALOME_TYPES::ListOfDouble SALOME_MED::MESH::getCoordinates ( in medModeSwitch  typeSwitch) raises (SALOME::SALOME_Exception)

Returns an array of coordinates stored in any type.

SALOME_TYPES::ListOfString SALOME_MED::GMESH::getCoordinatesNames ( ) raises (SALOME::SALOME_Exception) [inherited]

Returns an array containing the names of coordinates.

Example :

  • x,y,z
  • r,teta,phi
  • ...

It could be empty.

string SALOME_MED::GMESH::getCoordinatesSystem ( ) raises (SALOME::SALOME_Exception) [inherited]

Returns coordinate system :

  • "CARTESIAN"
  • "CYLINDRICAL"
  • "SPHERICAL"
SALOME_TYPES::ListOfString SALOME_MED::GMESH::getCoordinatesUnits ( ) raises (SALOME::SALOME_Exception) [inherited]

Returns an array containing the units of coordinates (cm, m, mm, ...)

It could be empty. By defult IS is used (meter).

long SALOME_MED::GMESH::getCorbaIndex ( ) raises (SALOME::SALOME_Exception) [inherited]

Internal Corba method.

long SALOME_MED::MESH::getElementNumber ( in medConnectivity  mode,
in medEntityMesh  entity,
in medGeometryElement  type,
in SALOME_TYPES::ListOfLong  connectivity 
) raises (SALOME::SALOME_Exception)

Gets a global number of the element which have the same connectivity as the connectivity argument.

medGeometryElement SALOME_MED::GMESH::getElementType ( in medEntityMesh  entity,
in long  number 
) raises (SALOME::SALOME_Exception) [inherited]

Here is the caller graph for this function:

const vector< MEDMEM::FAMILY * > GMESH::getFamilies ( in medEntityMesh  entity) raises (SALOME::SALOME_Exception) [inherited]

Returns an array of all families.

Returns the families of type entity present in the mesh as a vector of pointers.

Definition at line 675 of file MEDMEM_GMesh.cxx.

{
  switch (entity) {
  case MED_EN::MED_NODE : return _familyNode;
  case MED_EN::MED_CELL : return _familyCell;
  case MED_EN::MED_FACE : return _familyFace;
  case MED_EN::MED_EDGE : return _familyEdge;
  default :
    throw MEDEXCEPTION("MESH::getFamilies : Unknown entity");
  }
}
FAMILY SALOME_MED::GMESH::getFamily ( in medEntityMesh  entity,
in long  familyNumber 
) raises (SALOME::SALOME_Exception) [inherited]

Returns the reference to i-th family.

Note:
i is bounded by 1 and NumberOfFamilies.
SALOME_TYPES::ListOfLong SALOME_MED::MESH::getGlobalNumberingIndex ( in medEntityMesh  entity)

Returns the SUPPORT containing the boundary elements of the mesh.

GROUP SALOME_MED::GMESH::getGroup ( in medEntityMesh  entity,
in long  groupNumber 
) raises (SALOME::SALOME_Exception) [inherited]

Returns the reference to i-th group.

Note:
i is bounded by 1 and NumberOfGroups.
const vector< GROUP * > GMESH::getGroups ( in medEntityMesh  entity) raises (SALOME::SALOME_Exception) [inherited]

Returns an array of all groups.

Returns the groups of type entity present in the mesh as a vector of pointers.

The GROUP class inheriting from the SUPPORT class, the methods that can be used on these groups are explained in the related section.

Definition at line 735 of file MEDMEM_GMesh.cxx.

{
  switch (entity) {
  case MED_EN::MED_NODE : return _groupNode;
  case MED_EN::MED_CELL : return _groupCell;
  case MED_EN::MED_FACE : return _groupFace;
  case MED_EN::MED_EDGE : return _groupEdge;
  default :
    throw MEDEXCEPTION("MESH::getGroups : Unknown entity");
  }
}
boolean SALOME_MED::GMESH::getIsAGrid ( ) raises (SALOME::SALOME_Exception) [inherited]

Pour Alliances.

FIELD SALOME_MED::GMESH::getLength ( in SUPPORT  mySupport) raises (SALOME::SALOME_Exception) [inherited]

Returns a field on mySupport containing length.

Note:
mySupport must be on MED_EDGE entity.
long SALOME_MED::GMESH::getMeshDimension ( ) raises (SALOME::SALOME_Exception) [inherited]

Returns mesh dimension.

Example :

  • we have only MED_TETRA4 in MED_CELL : MeshDimension = 3D
  • we have only MED_QUAD4 in MED_CELL : MeshDimension = 2D
  • we have both MED_SEG2 and MED_TRIA3 in MED_CELL : MeshDimension = 2D
meshInfos SALOME_MED::GMESH::getMeshGlobal ( ) raises (SALOME::SALOME_Exception) [inherited]
string SALOME_MED::GMESH::getName ( ) raises (SALOME::SALOME_Exception) [inherited]

Returns the name of the mesh .

FIELD SALOME_MED::GMESH::getNormal ( in SUPPORT  mySupport) raises (SALOME::SALOME_Exception) [inherited]

Returns a field on mySupport containing normal.

Note:
mySupport must be on MED_FACE entity if MeshDimension and SpaceDimension=3D and on MED_EDGE if MeshDimension and SpaceDimension=2D.
long SALOME_MED::GMESH::getNumberOfElements ( in medEntityMesh  entity,
in medGeometryElement  geomElement 
) raises (SALOME::SALOME_Exception) [inherited]

Returns the number of elements of type medGeometryElement.

Note :

  • Implemented for MED_ALL_ELEMENTS
  • Not implemented for MED_ALL_ENTITIES

Here is the caller graph for this function:

long SALOME_MED::GMESH::getNumberOfFamilies ( in medEntityMesh  entity) raises (SALOME::SALOME_Exception) [inherited]

Returns the number of all families.

long SALOME_MED::GMESH::getNumberOfGroups ( in medEntityMesh  entity) raises (SALOME::SALOME_Exception) [inherited]

Returns the number of all groups.

long SALOME_MED::GMESH::getNumberOfNodes ( ) raises (SALOME::SALOME_Exception) [inherited]

Returns the number of nodes defined in the mesh.

long SALOME_MED::GMESH::getNumberOfTypes ( in medEntityMesh  entity) raises (SALOME::SALOME_Exception) [inherited]

Returns the number of defferent medGeometryElement types existing in the specified entity.

Note:
Not implemented for MED_ALL_ENTITIES.

Here is the caller graph for this function:

SALOME_TYPES::ListOfLong SALOME_MED::MESH::getReverseConnectivity ( in medConnectivity  mode) raises (SALOME::SALOME_Exception)

Returns a reverse connectivity to MED_CELL.

If mode=MED_NODAL, the array contains, for each node, all cells arround it.

If mode=MED_DESCENDING, the array contains, for each face (or edge), the 2 cells of each side. First is cell which face normal is outgoing.

Here is the caller graph for this function:

SALOME_TYPES::ListOfLong SALOME_MED::MESH::getReverseConnectivityIndex ( in medConnectivity  mode) raises (SALOME::SALOME_Exception)

Give index array to use with getReverseConnectivity(MED_NODAL).

This method is not used with MED_DESCENDING mode, because we have allways two cells.

See getConnectivityIndex for details.

Here is the caller graph for this function:

SALOME::SenderInt SALOME_MED::MESH::getSenderForConnectivity ( in medConnectivity  mode,
in medEntityMesh  entity,
in medGeometryElement  geomElement 
) raises (SALOME::SALOME_Exception)

Idem getConnectivity but return a Sender.


It could be used in a Client code using the MED Client classes.

SALOME::SenderInt SALOME_MED::MESH::getSenderForConnectivityIndex ( in medConnectivity  mode,
in medEntityMesh  entity,
in medGeometryElement  geomElement 
) raises (SALOME::SALOME_Exception)

Idem getConnectivityIndex but return a Sender.


It could be used in a Client code using the MED Client classes.

SALOME::SenderDouble SALOME_MED::MESH::getSenderForCoordinates ( in medModeSwitch  typeSwitch) raises (SALOME::SALOME_Exception)

Returns an array (Sender) of coordinates stored in any type.


It could be used in a Client code using the MED Client classes.

SUPPORT SALOME_MED::GMESH::getSkin ( in SUPPORT  mySupport3D) raises (SALOME::SALOME_Exception) [inherited]

Returns the SUPPORT containing the boundary elements of the support mySupport3D.

long SALOME_MED::GMESH::getSpaceDimension ( ) raises (SALOME::SALOME_Exception) [inherited]

Returns space dimension.

SUPPORT SALOME_MED::GMESH::getSupportOnAll ( in medEntityMesh  Entity) raises (SALOME::SALOME_Exception) [inherited]

Returns the SUPPORT defined on all the element of an Entity.

medGeometryElement_array SALOME_MED::GMESH::getTypes ( in medEntityMesh  entity) raises (SALOME::SALOME_Exception) [inherited]

Returns an array of all medGeometryElement types existing in the mesh.

Note:
Not implemented for MED_ALL_ENTITIES.

Here is the caller graph for this function:

FIELD SALOME_MED::GMESH::getVolume ( in SUPPORT  mySupport) raises (SALOME::SALOME_Exception) [inherited]

Returns a field on mySupport containing volume.

Note:
mySupport must be on MED_CELL entity and MeshDimension must be 3D.
void SALOME_MED::GMESH::read ( in long  i) raises (SALOME::SALOME_Exception) [inherited]
void SALOME_MED::GMESH::rmDriver ( in long  i) raises (SALOME::SALOME_Exception) [inherited]
void SALOME_MED::GMESH::write ( in long  i,
in string  driverMeshName 
) raises (SALOME::SALOME_Exception) [inherited]

The documentation for this interface was generated from the following files: