1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
27 This file contains the main IDL definitions of the %MED component in %SALOME application.
34 \defgroup MED SALOME MED component
36 This component is dedicated to the mounting in memory of a .med file. some
37 services of that component store CORBA objects (MED, MESH, FIELD) in the
38 study and/or give a direct access to those objects.
41 #include "SALOME_GenericObj.idl"
42 #include "SALOME_Exception.idl"
43 #include "SALOME_Component.idl"
44 #include "SALOME_Types.idl"
45 #include "SALOMEDS.idl"
46 #include "SALOME_Comm.idl"
51 This package contains a set of interfaces used for %SALOME %MED component.
63 This enumeration contains a set of elements defining the type of geometrical elements which constitue
66 typedef long medGeometryElement;
67 const medGeometryElement MED_NONE = 0;
68 const medGeometryElement MED_POINT1 = 1;
69 const medGeometryElement MED_SEG2 = 102;
70 const medGeometryElement MED_SEG3 = 103;
71 const medGeometryElement MED_TRIA3 = 203;
72 const medGeometryElement MED_QUAD4 = 204;
73 const medGeometryElement MED_TRIA6 = 206;
74 const medGeometryElement MED_QUAD8 = 208;
75 const medGeometryElement MED_TETRA4 = 304;
76 const medGeometryElement MED_PYRA5 = 305;
77 const medGeometryElement MED_PENTA6 = 306;
78 const medGeometryElement MED_HEXA8 = 308;
79 const medGeometryElement MED_TETRA10 = 310;
80 const medGeometryElement MED_PYRA13 = 313;
81 const medGeometryElement MED_PENTA15 = 315;
82 const medGeometryElement MED_HEXA20 = 320;
83 const medGeometryElement MED_POLYGON = 400;
84 const medGeometryElement MED_POLYHEDRA = 500;
85 const medGeometryElement MED_ALL_ELEMENTS = 999;
89 This enumeration contains a set of elements defining the structural elements (entities) which constitue
92 typedef long medEntityMesh;
93 const medEntityMesh MED_CELL = 0;
94 const medEntityMesh MED_FACE = 1;
95 const medEntityMesh MED_EDGE = 2;
96 const medEntityMesh MED_NODE = 3;
97 const medEntityMesh MED_ALL_ENTITIES = 4;
100 This enumeration contains a set of modes to store data in an array.
101 For example an array of coordinates in 3D; tow storage may be considered:
103 - X1,Y1,Z1,X2,Y2,Z2,...,Xn,Yn,Zn if MED_FULL_INTERLACE
104 - X1,X2,...,Xn,Y1,Y2,...,Yn,Z1,Z2,...,Zn if MED_NO_INTERLACE
106 typedef long medModeSwitch;
107 const medModeSwitch MED_FULL_INTERLACE = 0;
108 const medModeSwitch MED_NO_INTERLACE = 1;
109 const medModeSwitch MED_NO_INTERLACE_BY_TYPE = 2;
112 This enumeration contains a set of elements defining the type of connectivity.
114 typedef long medConnectivity;
115 const medConnectivity MED_NODAL = 0;
116 const medConnectivity MED_DESCENDING = 1;
120 enumeration contains a set of elements defining the type of driver.
122 typedef long medDriverTypes;
123 /*!<This driver is used for reading into memory of the mesh from %MED file.*/
124 const medDriverTypes MED_DRIVER = 0;
125 const medDriverTypes VTK_DRIVER = 1;
126 const medDriverTypes NO_DRIVER = 2;
129 An array of %medGeometryElement
131 typedef sequence<medGeometryElement> medGeometryElement_array;
136 typedef sequence<FAMILY> Family_array;
141 typedef sequence<GROUP> Group_array;
143 // ----------------------
144 // base mesh interface
145 // ----------------------
147 interface GMESH : SALOME::MultiCommClass, SALOME::GenericObj
149 // Index range begins from 1
151 // General Informations
152 //---------------------
155 Returns the name of the mesh .
157 string getName() raises (SALOME::SALOME_Exception);
160 Returns space dimension.
162 long getSpaceDimension() raises (SALOME::SALOME_Exception);
165 Returns mesh dimension.
168 - we have only MED_TETRA4 in MED_CELL : MeshDimension = 3D
169 - we have only MED_QUAD4 in MED_CELL : MeshDimension = 2D
170 - we have both MED_SEG2 and MED_TRIA3 in MED_CELL : MeshDimension = 2D
172 long getMeshDimension() raises (SALOME::SALOME_Exception);
177 boolean getIsAGrid() raises (SALOME::SALOME_Exception);
180 Returns coordinate system :
185 string getCoordinatesSystem() raises (SALOME::SALOME_Exception);
188 Returns the number of nodes defined in the mesh.
190 long getNumberOfNodes() raises (SALOME::SALOME_Exception);
193 Returns an array containing the names of coordinates.
202 SALOME_TYPES::ListOfString getCoordinatesNames()
203 raises (SALOME::SALOME_Exception);
206 Returns an array containing the units of coordinates (cm, m, mm, ...)
208 It could be empty. By defult IS is used (meter).
210 SALOME_TYPES::ListOfString getCoordinatesUnits()
211 raises (SALOME::SALOME_Exception);
214 Returns the %SUPPORT containing the boundary elements
218 SUPPORT getBoundaryElements(in medEntityMesh Entity)
219 raises (SALOME::SALOME_Exception);
222 Returns the %SUPPORT defined on all the element of an Entity.
224 SUPPORT getSupportOnAll(in medEntityMesh Entity)
225 raises (SALOME::SALOME_Exception);
228 Returns the %SUPPORT containing the boundary elements
229 of the support mySupport3D.
231 SUPPORT getSkin(in SUPPORT mySupport3D ) raises (SALOME::SALOME_Exception);
233 struct coordinateInfos
236 SALOME_TYPES::ListOfString coordNames;
237 SALOME_TYPES::ListOfString coordUnits;
239 coordinateInfos getCoordGlobal() raises (SALOME::SALOME_Exception);
247 Returns the number of defferent %medGeometryElement types existing
248 in the specified entity.
251 Not implemented for MED_ALL_ENTITIES.
253 long getNumberOfTypes(in medEntityMesh entity)
254 raises (SALOME::SALOME_Exception);
257 Returns an array of all %medGeometryElement types existing
261 Not implemented for MED_ALL_ENTITIES.
263 medGeometryElement_array getTypes(in medEntityMesh entity)
264 raises (SALOME::SALOME_Exception);
267 Returns the number of elements of type %medGeometryElement.
270 - Implemented for MED_ALL_ELEMENTS
271 - Not implemented for MED_ALL_ENTITIES
273 long getNumberOfElements(in medEntityMesh entity,
274 in medGeometryElement geomElement)
275 raises (SALOME::SALOME_Exception);
277 medGeometryElement getElementType (in medEntityMesh entity,
279 raises (SALOME::SALOME_Exception);
281 // Families and Groups
282 // -------------------
285 Returns the number of all families.
287 long getNumberOfFamilies(in medEntityMesh entity)
288 raises (SALOME::SALOME_Exception);
291 Returns the number of all groups.
293 long getNumberOfGroups(in medEntityMesh entity)
294 raises (SALOME::SALOME_Exception);
297 Returns an array of all families.
299 Family_array getFamilies(in medEntityMesh entity)
300 raises (SALOME::SALOME_Exception);
303 Returns the reference to i-th family.
306 i is bounded by 1 and NumberOfFamilies.
308 FAMILY getFamily(in medEntityMesh entity,in long familyNumber)
309 raises (SALOME::SALOME_Exception);
312 Returns an array of all groups.
314 Group_array getGroups(in medEntityMesh entity)
315 raises (SALOME::SALOME_Exception);
318 Returns the reference to i-th group.
321 i is bounded by 1 and NumberOfGroups.
323 GROUP getGroup(in medEntityMesh entity,in long groupNumber)
324 raises (SALOME::SALOME_Exception);
330 Returns a field on mySupport containing volume.
333 mySupport must be on MED_CELL entity and MeshDimension must be 3D.
335 FIELD getVolume(in SUPPORT mySupport)
336 raises (SALOME::SALOME_Exception);
339 Returns a field on mySupport containing area.
342 mySupport must be on MED_FACE entity.
344 FIELD getArea(in SUPPORT mySupport)
345 raises (SALOME::SALOME_Exception);
348 Returns a field on mySupport containing length.
351 mySupport must be on MED_EDGE entity.
353 FIELD getLength(in SUPPORT mySupport)
354 raises (SALOME::SALOME_Exception);
357 Returns a field on mySupport containing normal.
360 mySupport must be on MED_FACE entity if MeshDimension and
361 SpaceDimension=3D and on MED_EDGE if MeshDimension and SpaceDimension=2D.
363 FIELD getNormal(in SUPPORT mySupport)
364 raises (SALOME::SALOME_Exception);
367 Returns a field on mySupport containing barycenter.
369 FIELD getBarycenter(in SUPPORT mySupport)
370 raises (SALOME::SALOME_Exception);
373 Returns a field on mySupport containing neighbourhood.
375 // FIELD getNeighbourhood(in SUPPORT mySupport)
376 // raises (SALOME::SALOME_Exception);
382 Adds the Mesh in the StudyManager.
384 void addInStudy(in SALOMEDS::Study myStudy, in GMESH myIor )
385 raises (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection);
387 // Add a MED/VTK/... driver
388 // Multiple drivers can be added whatever the type
389 long addDriver (in medDriverTypes driverType, in string fileName, in string meshName)
390 raises (SALOME::SALOME_Exception);
392 void rmDriver (in long i) raises (SALOME::SALOME_Exception);
395 void read (in long i) raises (SALOME::SALOME_Exception);
396 void write (in long i, in string driverMeshName)
397 raises (SALOME::SALOME_Exception);
400 Internal Corba method.
402 long getCorbaIndex() raises (SALOME::SALOME_Exception);
406 long spaceDimension ;
410 Family_array famNode;
411 Family_array famEdge;
412 Family_array famFace;
413 Family_array famCell;
414 Group_array groupNode;
415 Group_array groupEdge;
416 Group_array groupFace;
417 Group_array groupCell;
419 meshInfos getMeshGlobal() raises (SALOME::SALOME_Exception);
420 boolean areEquals(in GMESH other);
422 MESH convertInMESH();
425 // ----------------------
427 // ----------------------
429 interface MESH : GMESH {
434 boolean existConnectivity (in medConnectivity mode,
435 in medEntityMesh entity)
436 raises (SALOME::SALOME_Exception);
442 Returns an array of coordinates stored in any type
444 SALOME_TYPES::ListOfDouble getCoordinates(in medModeSwitch typeSwitch)
445 raises (SALOME::SALOME_Exception);
448 Returns an array (Sender) of coordinates stored in any type.\n
449 It could be used in a Client code using the MED Client classes.
451 SALOME::SenderDouble getSenderForCoordinates(in medModeSwitch typeSwitch)
452 raises (SALOME::SALOME_Exception);
454 Returns coordinate n° Number on axis n° Axis
456 double getCoordinate(in long Number, in long Axis)
457 raises (SALOME::SALOME_Exception);
460 Returns the %SUPPORT containing the boundary elements
464 SALOME_TYPES::ListOfLong getGlobalNumberingIndex(in medEntityMesh entity) ;
471 Give, in full or no interlace mode (for nodal connectivity),
472 descending or nodal connectivity.
474 You must give a %medEntityMesh (ie:MED_EDGE) and a
475 %medGeometryElement (ie:MED_SEG3).
477 SALOME_TYPES::ListOfLong getConnectivity(in medConnectivity mode,
478 in medEntityMesh entity,
479 in medGeometryElement geomElement)
480 raises (SALOME::SALOME_Exception);
483 Idem getConnectivity but return a Sender.\n
484 It could be used in a Client code using the MED Client classes.
486 SALOME::SenderInt getSenderForConnectivity(in medConnectivity mode,
487 in medEntityMesh entity,
488 in medGeometryElement geomElement)
489 raises (SALOME::SALOME_Exception);
492 Give morse index array to use with
493 getConnectivity(mode,entity,MED_ALL_ELEMENTS).
495 Each value give start index for corresponding entity in
498 Example : i-th element, j-th node of it :
499 - In C mode : Connectivity[ConnectivityIndex[i]-1+j-1]
500 - In fortran mode : Connectivity[ConnectivityIndex[i]+j]
502 SALOME_TYPES::ListOfLong getConnectivityIndex(in medConnectivity mode,
503 in medEntityMesh entity)
504 raises (SALOME::SALOME_Exception);
507 Idem getConnectivityIndex but return a Sender.\n
508 It could be used in a Client code using the MED Client classes.
510 SALOME::SenderInt getSenderForConnectivityIndex(in medConnectivity mode,
511 in medEntityMesh entity,
512 in medGeometryElement geomElement)
513 raises (SALOME::SALOME_Exception);
516 Gets a global number of the element which have the same connectivity as the
517 connectivity argument.
519 long getElementNumber(in medConnectivity mode,
520 in medEntityMesh entity,
521 in medGeometryElement type,
522 in SALOME_TYPES::ListOfLong connectivity)
523 raises (SALOME::SALOME_Exception);
526 Returns a reverse connectivity to MED_CELL.
528 If mode=MED_NODAL, the array contains, for each node, all cells
531 If mode=MED_DESCENDING, the array contains, for each face (or edge),
532 the 2 cells of each side. First is cell which face normal is outgoing.
534 SALOME_TYPES::ListOfLong getReverseConnectivity(in medConnectivity mode)
535 raises (SALOME::SALOME_Exception);
538 Give index array to use with getReverseConnectivity(MED_NODAL).
540 This method is not used with MED_DESCENDING mode,
541 because we have allways two cells.
543 See getConnectivityIndex for details.
545 SALOME_TYPES::ListOfLong getReverseConnectivityIndex(in medConnectivity mode)
546 raises (SALOME::SALOME_Exception);
548 struct connectivityInfos
551 medGeometryElement_array meshTypes;
552 SALOME_TYPES::ListOfLong numberOfElements;
553 SALOME_TYPES::ListOfLong nodalConnectivityLength;
554 long entityDimension;
556 connectivityInfos getConnectGlobal(in medEntityMesh entity)
557 raises (SALOME::SALOME_Exception);
562 // ----------------------
564 // ----------------------
566 interface SUPPORT : SALOME::MultiCommClass, SALOME::GenericObj {
569 Returns the name of the support.
571 string getName() raises (SALOME::SALOME_Exception);
574 Returns the description of the support.
576 string getDescription() raises (SALOME::SALOME_Exception);
579 Returns a reference to the mesh.
581 GMESH getMesh() raises (SALOME::SALOME_Exception);
584 Returns the type of %medEntityMesh used by the support.
587 A support deals only with one entity's type
588 (for example : MED_FACE or MED_NODE)
590 medEntityMesh getEntity() raises (SALOME::SALOME_Exception);
593 Returns True if all elements of this entity are
594 engaged, False otherwise.
596 If True, you must use mesh reference (getMesh) to get more information.
598 boolean isOnAllElements() raises (SALOME::SALOME_Exception);
601 If the method %isOnAllElements() returns False, this method
602 returns the number of elements in the support.
604 Example : number of MED_TRIA3 or MED_ALL_ELEMETNS elements
605 in entity of support.
608 If %SUPPORT is defined on MED_NODE, use MED_NONE %medGeometryElement
611 long getNumberOfElements(in medGeometryElement geomElement)
612 raises (SALOME::SALOME_Exception);
614 long getNumberOfTypes() raises (SALOME::SALOME_Exception);
616 If isOnAllElements is False, returns an array of %medGeometryElement
617 types used by the support.
619 %medEntityMesh is given by getEntity.
621 medGeometryElement_array getTypes() raises (SALOME::SALOME_Exception);
625 If the method %isOnAllElements() returns False, this method returns an array which
626 contains all numbers of given %medGeometryElement.
628 Numbering is global, ie numbers are bounded by 1 and
629 MESH::getNumberOfElement(entity,MED_ALL_ELEMENTS) and not by 1 and
630 MESH::getNumberOfElement(entity,geomElement).
633 If %SUPPORT is defined on MED_NODE, use MED_NONE %medGeometryElement type.
635 SALOME_TYPES::ListOfLong getNumber(in medGeometryElement geomElement)
636 raises (SALOME::SALOME_Exception);
639 If the method %isOnAllElements() returns False, this method returns an array which
640 contains all numbers of given %medGeometryElement.
642 Numbering is from file, ie numbers are bounded by 1 and
643 MESH::getNumberOfElement(entity,MED_ALL_ELEMENTS) and not by 1 and
644 MESH::getNumberOfElement(entity,geomElement).
647 If %SUPPORT is defined on MED_NODE, use MED_NONE %medGeometryElement type.
649 SALOME_TYPES::ListOfLong getNumberFromFile(in medGeometryElement geomElement)
650 raises (SALOME::SALOME_Exception);
653 Idem SALOME::Sender getNumber(in medGeometryElement geomElement) but returning Sender.\n
654 It could be used in a Client code using the MED Client classes.
657 SALOME::SenderInt getSenderForNumber(in medGeometryElement geomElement)
658 raises (SALOME::SALOME_Exception);
661 If the method %isOnAllElements() returns False, this method returns the index
664 Use it with getNumber(MED_ALL_ELEMENTS).
667 See the method %getConnectivityIndex for more details.
669 SALOME_TYPES::ListOfLong getNumberIndex()
670 raises (SALOME::SALOME_Exception);
673 Idem SALOME_TYPES::ListOfLong getNumberIndex() but return a Sender.\n
674 It could be used in a Client code using the MED Client classes.
676 SALOME::SenderInt getSenderForNumberIndex()
677 raises (SALOME::SALOME_Exception);
679 void getBoundaryElements()
680 raises (SALOME::SALOME_Exception);
682 Internal Corba method.
684 long getCorbaIndex() raises (SALOME::SALOME_Exception);
689 boolean isOnAllElements;
690 medEntityMesh entity;
691 long numberOfGeometricType;
692 medGeometryElement_array types;
693 SALOME_TYPES::ListOfLong nbEltTypes;
694 SALOME_TYPES::ListOfLong nodalConnectivityLength;
696 supportInfos getSupportGlobal() raises (SALOME::SALOME_Exception);
705 interface FAMILY : SUPPORT
709 Returns Family identifier (Identifier
710 of the family in the mesh).
713 There is precisely only one indentifier for each family.
715 long getIdentifier() raises (SALOME::SALOME_Exception);
718 Returns number of attributes.
720 long getNumberOfAttributes() raises (SALOME::SALOME_Exception);
723 Returns an array of all attributes' identifiers.
724 There is one for each attribute.
726 SALOME_TYPES::ListOfLong getAttributesIdentifiers()
727 raises (SALOME::SALOME_Exception);
730 Returns identifier of i-th attribute.
733 i is bounded by 1 and NumberOfAttributes.
735 long getAttributeIdentifier(in long i) raises (SALOME::SALOME_Exception);
738 Returns an array of all values of the attributes .
739 There is one value for each attribute.
741 SALOME_TYPES::ListOfLong getAttributesValues()
742 raises (SALOME::SALOME_Exception);
745 Returns the value of i-th attribute.
748 i is bounded by 1 and NumberOfAttributes.
750 long getAttributeValue(in long i) raises (SALOME::SALOME_Exception);
753 Returns an array of all descriptions of the attributes .
754 There is one description for each attribute.
756 SALOME_TYPES::ListOfString getAttributesDescriptions()
757 raises (SALOME::SALOME_Exception);
760 Returns the description of i-th attribute.
763 i is bounded by 1 and NumberOfAttributes.
765 string getAttributeDescription(in long i)
766 raises (SALOME::SALOME_Exception);
769 Returns the number of groups the family belongs to.
771 long getNumberOfGroups()
772 raises (SALOME::SALOME_Exception);
775 Returns an array of names of groups the family belongs to .
776 There is one name for each group.
778 SALOME_TYPES::ListOfString getGroupsNames()
779 raises (SALOME::SALOME_Exception);
782 Returns the name of i-th group.
785 i is bounded by 1 and NumberOfAttributes.
787 string getGroupName(in long i)
788 raises (SALOME::SALOME_Exception);
797 interface GROUP : SUPPORT
801 Returns the number of families in this group.
803 long getNumberOfFamilies() raises (SALOME::SALOME_Exception);
806 Returns an array of all families.
808 Family_array getFamilies() raises (SALOME::SALOME_Exception);
811 Returns a reference to the i-th family.
814 i is bounded by 1 and NumberOfFamilies.
816 FAMILY getFamily(in long i) raises (SALOME::SALOME_Exception);
825 interface FIELD : SALOME::GenericObj
829 * Returns the field name.
831 string getName() raises (SALOME::SALOME_Exception);
834 * Changes the field name.
836 * \param theName The new name for this field.
838 void setName (in string theName) raises (SALOME::SALOME_Exception);
841 Returns the field description.
843 string getDescription() raises (SALOME::SALOME_Exception);
846 Returns a reference to the support
847 on which the field is defined.
849 SUPPORT getSupport() raises (SALOME::SALOME_Exception);
852 Returns the number of field's components.
854 long getNumberOfComponents() raises (SALOME::SALOME_Exception);
857 Returns an array containing components names.
859 SALOME_TYPES::ListOfString getComponentsNames()
860 raises (SALOME::SALOME_Exception);
863 Returns the name of i-th component.
866 - i is bounded by 1 and NumberOfComponents.
867 - Name is mandatory for each field's component.
869 string getComponentName(in long i) raises (SALOME::SALOME_Exception);
872 Returns an array containing components units.
874 SALOME_TYPES::ListOfString getComponentsUnits()
875 raises (SALOME::SALOME_Exception);
878 * Returns the unit of i-th component.
880 * \note i is bounded by 1 and NumberOfComponents.
882 string getComponentUnit(in long i) raises (SALOME::SALOME_Exception);
885 Returns an array containing components descriptions.
887 SALOME_TYPES::ListOfString getComponentsDescriptions()
888 raises (SALOME::SALOME_Exception);
891 Returns the description of i-th component.
894 - i is bounded by 1 and NumberOfComponents.
895 - Name is mandatory for each field's component.
897 string getComponentDescription(in long i) raises (SALOME::SALOME_Exception);
900 Returns the iteration number.
902 long getIterationNumber() raises (SALOME::SALOME_Exception);
905 Returns time for this iteration.
907 double getTime() raises (SALOME::SALOME_Exception);
910 Returns order number use for
911 internal step in this iteration.
913 long getOrderNumber() raises (SALOME::SALOME_Exception);
916 Returns if gauss points are present.
918 boolean getGaussPresence();
923 long addDriver (in medDriverTypes driverType, in string fileName, in string fieldName)
924 raises (SALOME::SALOME_Exception);
929 void rmDriver (in long i)
930 raises (SALOME::SALOME_Exception);
933 void read (in long i)
934 raises (SALOME::SALOME_Exception);
939 void write (in long i, in string driverFieldName)
940 raises (SALOME::SALOME_Exception);
943 Adds the Field in the StudyManager.
945 void addInStudy(in SALOMEDS::Study myStudy, in FIELD myIor)
946 raises (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection);
947 void addInStudyToComponent(in SALOMEDS::SComponent myComponent, in FIELD myIor)
948 raises (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection);
951 Internal Corba method.
954 raises (SALOME::SALOME_Exception);
959 interface FIELDDOUBLE : FIELD , SALOME::MultiCommClass {
962 Returns an array of values of the field
964 SALOME_TYPES::ListOfDouble getValue(in medModeSwitch mode)
965 raises (SALOME::SALOME_Exception);
968 Idem as getValue but it could be used in a Client code using the
971 SALOME::SenderDouble getSenderForValue(in medModeSwitch mode)
972 raises (SALOME::SALOME_Exception);
975 interface FIELDDOUBLENO : FIELDDOUBLE {
978 interface FIELDDOUBLENOBYTYPE : FIELDDOUBLE {
981 interface FIELDDOUBLEFULL : FIELDDOUBLE {
984 interface FIELDINT : FIELD , SALOME::MultiCommClass {
987 Returns an array of values of the field
989 SALOME_TYPES::ListOfLong getValue(in medModeSwitch mode)
990 raises (SALOME::SALOME_Exception);
993 Idem as getValue but it could be used in a Client code using the
996 SALOME::SenderInt getSenderForValue(in medModeSwitch mode)
997 raises (SALOME::SALOME_Exception);
1000 interface FIELDINTNO : FIELDINT {
1003 interface FIELDINTNOBYTYPE : FIELDINT {
1006 interface FIELDINTFULL : FIELDINT {
1011 interface MED : SALOME::GenericObj {
1013 returns the number of meshes in the %MED object.
1015 long getNumberOfMeshes () raises (SALOME::SALOME_Exception);
1017 returns the number of fields in the %MED object.
1019 long getNumberOfFields () raises (SALOME::SALOME_Exception);
1021 returns an array which contains the name of each meshes in the %MED object.
1023 SALOME_TYPES::ListOfString getMeshNames () raises (SALOME::SALOME_Exception);
1025 returns an array which contains the name of each fields in the %MED object.
1027 SALOME_TYPES::ListOfString getFieldNames () raises (SALOME::SALOME_Exception);
1029 giving a mesh name, it returns the corresponding %MESH pointer.
1031 GMESH getMeshByName ( in string meshName) raises (SALOME::SALOME_Exception);
1033 giving a %FIELD pointer, it returns the corresponding %MESH pointer of the mesh
1034 on which the field lies.
1036 GMESH getMesh ( in FIELD fieldPtr) raises (SALOME::SALOME_Exception);
1038 giving a field name, it returns the number of iteration in the corresponding %FIELD object.
1040 long getFieldNumberOfIteration(in string fieldName) raises (SALOME::SALOME_Exception);
1042 giving a field name and an integer %i, it returns a couple of integers: the time iteration and
1043 the order number of the %i^th iteration of the corresponding %FIELD object.
1045 SALOME_TYPES::ListOfLong getFieldIteration(in string fieldName, in long i) raises (SALOME::SALOME_Exception);
1047 giving a field name, it returns an array of integers: the list of the order number and
1048 the time iteration couple of all iterations of the corresponding %FIELD object.
1050 (IT1, DT1, IT2, DT2, ... , ITn, DTn) when n is the number of the %FIELD iterations.
1052 SALOME_TYPES::ListOfLong getFieldIterations(in string fieldName) raises (SALOME::SALOME_Exception);
1054 giving a field name, a time iteration and an order number, it returns the corresponding %FIELD oject.
1056 FIELD getField ( in string fieldName,
1058 in long numOrdre ) raises (SALOME::SALOME_Exception);
1061 // Add a MED/VTK/... driver to a MED'GEN' object to
1062 // be able to read/write files preserving meshes<-->fields association
1063 // Multiple drivers can be added whatever the type.
1064 // The access point in the <long> returned
1065 long addDriver (in medDriverTypes driverType, in string fileName)
1066 raises (SALOME::SALOME_Exception);
1070 void rmDriver (in long i) raises (SALOME::SALOME_Exception);
1072 Reads the structure of the %MED file
1074 void readFileStruct(in long i) raises (SALOME::SALOME_Exception);
1075 void writeFrom (in long i) raises (SALOME::SALOME_Exception);
1076 void write (in long i) raises (SALOME::SALOME_Exception);
1078 void addMesh (in GMESH ptrMesh ) raises (SALOME::SALOME_Exception);
1079 void addField (in FIELD ptrField ) raises (SALOME::SALOME_Exception);
1081 void addInStudy (in SALOMEDS::Study myStudy, in MED medPtr) raises (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection);
1084 /*! \brief A structure containing information about MED file
1088 string fileName; //!< name of file
1089 long fileSize; //!< size of file
1090 long major, minor, release; //!< MED file version
1094 #endif /* MED_IDL */