3 // Copyright : CEA/DEN/DMSS/LGLS
7 This file contains the main IDL definitions of the %MED component in %SALOME application.
14 \defgroup MED SALOME MED component
16 This component is dedicated to the mounting in memory of a .med file. some
17 services of that component store CORBA objects (MED, MESH, FIELD) in the
18 study and/or give a direct access to those objects.
21 #include "SALOME_GenericObj.idl"
22 #include "SALOME_Exception.idl"
23 #include "SALOME_Component.idl"
24 #include "SALOMEDS.idl"
25 #include "SALOME_Comm.idl"
31 typedef sequence<long> long_array;
35 typedef sequence<double> double_array;
39 typedef sequence<string> string_array;
43 typedef sequence<boolean> boolean_array;
46 This package contains a set of interfaces used for %SALOME %MED component.
57 This enumeration contains a set of elements defining the type of geometrical elements which constitue
60 typedef long medGeometryElement;
61 const medGeometryElement MED_NONE = 0;
62 const medGeometryElement MED_POINT1 = 1;
63 const medGeometryElement MED_SEG2 = 102;
64 const medGeometryElement MED_SEG3 = 103;
65 const medGeometryElement MED_TRIA3 = 203;
66 const medGeometryElement MED_QUAD4 = 204;
67 const medGeometryElement MED_TRIA6 = 206;
68 const medGeometryElement MED_QUAD8 = 208;
69 const medGeometryElement MED_TETRA4 = 304;
70 const medGeometryElement MED_PYRA5 = 305;
71 const medGeometryElement MED_PENTA6 = 306;
72 const medGeometryElement MED_HEXA8 = 308;
73 const medGeometryElement MED_TETRA10 = 310;
74 const medGeometryElement MED_PYRA13 = 313;
75 const medGeometryElement MED_PENTA15 = 315;
76 const medGeometryElement MED_HEXA20 = 320;
77 const medGeometryElement MED_POLYGON = 400;
78 const medGeometryElement MED_POLYHEDRA = 500;
79 const medGeometryElement MED_ALL_ELEMENTS = 999;
83 This enumeration contains a set of elements defining the structural elements (entities) which constitue
86 typedef long medEntityMesh;
87 const medEntityMesh MED_CELL = 0;
88 const medEntityMesh MED_FACE = 1;
89 const medEntityMesh MED_EDGE = 2;
90 const medEntityMesh MED_NODE = 3;
91 const medEntityMesh MED_ALL_ENTITIES = 4;
94 This enumeration contains a set of modes to store data in an array.
95 For example an array of coordinates in 3D; tow storage may be considered:
97 - X1,Y1,Z1,X2,Y2,Z2,...,Xn,Yn,Zn if MED_FULL_INTERLACE
98 - X1,X2,...,Xn,Y1,Y2,...,Yn,Z1,Z2,...,Zn if MED_NO_INTERLACE
100 typedef long medModeSwitch;
101 const medModeSwitch MED_FULL_INTERLACE = 0;
102 const medModeSwitch MED_NO_INTERLACE = 1;
105 This enumeration contains a set of elements defining the type of connectivity.
107 typedef long medConnectivity;
108 const medConnectivity MED_NODAL = 0;
109 const medConnectivity MED_DESCENDING = 1;
113 enumeration contains a set of elements defining the type of driver.
115 typedef long medDriverTypes;
116 /*!<This driver is used for reading into memory of the mesh from %MED file.*/
117 const medDriverTypes MED_DRIVER = 0;
118 const medDriverTypes VTK_DRIVER = 1;
119 const medDriverTypes NO_DRIVER = 2;
122 An array of %medGeometryElement
124 typedef sequence<medGeometryElement> medGeometryElement_array;
129 typedef sequence<FAMILY> Family_array;
134 typedef sequence<GROUP> Group_array;
136 // ----------------------
138 // ----------------------
140 interface MESH : SALOME::MultiCommClass, SALOME::GenericObj {
141 // Index range begins from 1
143 // General Informations
144 //---------------------
147 Returns the name of the mesh .
149 string getName() raises (SALOME::SALOME_Exception);
152 Returns space dimension.
154 long getSpaceDimension() raises (SALOME::SALOME_Exception);
157 Returns mesh dimension.
160 - we have only MED_TETRA4 in MED_CELL : MeshDimension = 3D
161 - we have only MED_QUAD4 in MED_CELL : MeshDimension = 2D
162 - we have both MED_SEG2 and MED_TRIA3 in MED_CELL : MeshDimension = 2D
164 long getMeshDimension() raises (SALOME::SALOME_Exception);
169 boolean getIsAGrid() raises (SALOME::SALOME_Exception);
174 boolean existConnectivity (in medConnectivity mode,
175 in medEntityMesh entity)
176 raises (SALOME::SALOME_Exception);
182 Returns coordinate system :
187 string getCoordinatesSystem() raises (SALOME::SALOME_Exception);
190 Returns the number of nodes defined in the mesh.
192 long getNumberOfNodes() raises (SALOME::SALOME_Exception);
195 Returns an array of coordinates stored in any type
197 SALOME_MED::double_array getCoordinates(in medModeSwitch typeSwitch)
198 raises (SALOME::SALOME_Exception);
201 Returns an array (Sender) of coordinates stored in any type.\n
202 It could be used in a Client code using the MED Client classes.
204 SALOME::SenderDouble getSenderForCoordinates(in medModeSwitch typeSwitch)
205 raises (SALOME::SALOME_Exception);
207 Returns coordinate n° Number on axis n° Axis
209 double getCoordinate(in long Number, in long Axis)
210 raises (SALOME::SALOME_Exception);
214 Returns an array containing the names of coordinates.
223 SALOME_MED::string_array getCoordinatesNames()
224 raises (SALOME::SALOME_Exception);
227 Returns an array containing the units of coordinates (cm, m, mm, ...)
229 It could be empty. By defult IS is used (meter).
231 SALOME_MED::string_array getCoordinatesUnits()
232 raises (SALOME::SALOME_Exception);
235 Returns the %SUPPORT containing the boundary elements
239 SUPPORT getBoundaryElements(in medEntityMesh Entity)
240 raises (SALOME::SALOME_Exception);
243 Returns the %SUPPORT containing the boundary elements
244 of the support mySupport3D.
246 SUPPORT getSkin(in SUPPORT mySupport3D ) raises (SALOME::SALOME_Exception);
248 SALOME_MED::long_array getGlobalNumberingIndex(in medEntityMesh entity) ;
250 struct coordinateInfos
253 SALOME_MED::string_array coordNames;
254 SALOME_MED::string_array coordUnits;
256 coordinateInfos getCoordGlobal() raises (SALOME::SALOME_Exception);
264 Returns the number of defferent %medGeometryElement types existing
265 in the specified entity.
268 Not implemented for MED_ALL_ENTITIES.
270 long getNumberOfTypes(in medEntityMesh entity)
271 raises (SALOME::SALOME_Exception);
274 Returns an array of all %medGeometryElement types existing
278 Not implemented for MED_ALL_ENTITIES.
280 medGeometryElement_array getTypes(in medEntityMesh entity)
281 raises (SALOME::SALOME_Exception);
284 Returns the number of elements of type %medGeometryElement.
287 - Implemented for MED_ALL_ELEMENTS
288 - Not implemented for MED_ALL_ENTITIES
290 long getNumberOfElements(in medEntityMesh entity,
291 in medGeometryElement geomElement)
292 raises (SALOME::SALOME_Exception);
295 Give, in full or no interlace mode (for nodal connectivity),
296 descending or nodal connectivity.
298 You must give a %medEntityMesh (ie:MED_EDGE) and a
299 %medGeometryElement (ie:MED_SEG3).
301 SALOME_MED::long_array getConnectivity(in medModeSwitch typeSwitch,
302 in medConnectivity mode,
303 in medEntityMesh entity,
304 in medGeometryElement geomElement)
305 raises (SALOME::SALOME_Exception);
308 Idem getConnectivity but return a Sender.\n
309 It could be used in a Client code using the MED Client classes.
311 SALOME::SenderInt getSenderForConnectivity(in medModeSwitch typeSwitch,
312 in medConnectivity mode,
313 in medEntityMesh entity,
314 in medGeometryElement geomElement)
315 raises (SALOME::SALOME_Exception);
318 Idem getConnectivity but return a Sender.\n
319 It could be used in a Client code using the MED Client classes.
321 SALOME::SenderInt getSenderForPolygonsConnectivity(in medConnectivity mode,
322 in medEntityMesh entity)
323 raises (SALOME::SALOME_Exception);
326 Idem getConnectivityIndex but return a Sender.\n
327 It could be used in a Client code using the MED Client classes.
329 SALOME::SenderInt getSenderForPolygonsConnectivityIndex(in medConnectivity mode,
330 in medEntityMesh entity)
331 raises (SALOME::SALOME_Exception);
334 Idem getConnectivity but return a Sender.\n
335 It could be used in a Client code using the MED Client classes.
337 SALOME::SenderInt getSenderForPolyhedronConnectivity(in medConnectivity mode)
338 raises (SALOME::SALOME_Exception);
341 Idem getConnectivityIndex but return a Sender.\n
342 It could be used in a Client code using the MED Client classes.
344 SALOME::SenderInt getSenderForPolyhedronIndex(in medConnectivity mode)
345 raises (SALOME::SALOME_Exception);
348 Idem getConnectivityIndex but return a Sender.\n
349 It could be used in a Client code using the MED Client classes.
351 SALOME::SenderInt getSenderForPolyhedronFacesIndex()
352 raises (SALOME::SALOME_Exception);
355 Give morse index array to use with
356 getConnectivity(MED_FULL_INTERLACE,mode,entity,MED_ALL_ELEMENTS).
358 Each value give start index for corresponding entity in
361 Example : i-th element, j-th node of it :
362 - In C mode : Connectivity[ConnectivityIndex[i]-1+j-1]
363 - In fortran mode : Connectivity[ConnectivityIndex[i]+j]
365 SALOME_MED::long_array getConnectivityIndex(in medConnectivity mode,
366 in medEntityMesh entity)
367 raises (SALOME::SALOME_Exception);
370 Gets a global number of the element which have the same connectivity as the
371 connectivity argument.
373 long getElementNumber(in medConnectivity mode,
374 in medEntityMesh entity,
375 in medGeometryElement type,
376 in SALOME_MED::long_array connectivity)
377 raises (SALOME::SALOME_Exception);
379 medGeometryElement getElementType (in medEntityMesh entity,
381 raises (SALOME::SALOME_Exception);
384 Returns a reverse connectivity to MED_CELL.
386 If mode=MED_NODAL, the array contains, for each node, all cells
389 If mode=MED_DESCENDING, the array contains, for each face (or edge),
390 the 2 cells of each side. First is cell which face normal is outgoing.
392 SALOME_MED::long_array getReverseConnectivity(in medConnectivity mode)
393 raises (SALOME::SALOME_Exception);
396 Give index array to use with getReverseConnectivity(MED_NODAL).
398 This method is not used with MED_DESCENDING mode,
399 because we have allways two cells.
401 See getConnectivityIndex for details.
403 SALOME_MED::long_array getReverseConnectivityIndex(in medConnectivity mode)
404 raises (SALOME::SALOME_Exception);
406 struct connectivityInfos
409 medGeometryElement_array meshTypes;
410 SALOME_MED::long_array numberOfElements;
411 long entityDimension;
413 connectivityInfos getConnectGlobal(in medEntityMesh entity)
414 raises (SALOME::SALOME_Exception);
416 // Families and Groups
417 // -------------------
420 Returns the number of all families.
422 long getNumberOfFamilies(in medEntityMesh entity)
423 raises (SALOME::SALOME_Exception);
426 Returns the number of all groups.
428 long getNumberOfGroups(in medEntityMesh entity)
429 raises (SALOME::SALOME_Exception);
432 Returns an array of all families.
434 Family_array getFamilies(in medEntityMesh entity)
435 raises (SALOME::SALOME_Exception);
438 Returns the reference to i-th family.
441 i is bounded by 1 and NumberOfFamilies.
443 FAMILY getFamily(in medEntityMesh entity,in long familyNumber)
444 raises (SALOME::SALOME_Exception);
447 Returns an array of all groups.
449 Group_array getGroups(in medEntityMesh entity)
450 raises (SALOME::SALOME_Exception);
453 Returns the reference to i-th group.
456 i is bounded by 1 and NumberOfGroups.
458 GROUP getGroup(in medEntityMesh entity,in long groupNumber)
459 raises (SALOME::SALOME_Exception);
465 Returns a field on mySupport containing volume.
468 mySupport must be on MED_CELL entity and MeshDimension must be 3D.
470 FIELD getVolume(in SUPPORT mySupport)
471 raises (SALOME::SALOME_Exception);
474 Returns a field on mySupport containing area.
477 mySupport must be on MED_FACE entity.
479 FIELD getArea(in SUPPORT mySupport)
480 raises (SALOME::SALOME_Exception);
483 Returns a field on mySupport containing length.
486 mySupport must be on MED_EDGE entity.
488 FIELD getLength(in SUPPORT mySupport)
489 raises (SALOME::SALOME_Exception);
492 Returns a field on mySupport containing normal.
495 mySupport must be on MED_FACE entity if MeshDimension and
496 SpaceDimension=3D and on MED_EDGE if MeshDimension and SpaceDimension=2D.
498 FIELD getNormal(in SUPPORT mySupport)
499 raises (SALOME::SALOME_Exception);
502 Returns a field on mySupport containing barycenter.
504 FIELD getBarycenter(in SUPPORT mySupport)
505 raises (SALOME::SALOME_Exception);
508 Returns a field on mySupport containing neighbourhood.
510 // FIELD getNeighbourhood(in SUPPORT mySupport)
511 // raises (SALOME::SALOME_Exception);
517 Adds the Mesh in the StudyManager.
519 void addInStudy(in SALOMEDS::Study myStudy, in MESH myIor )
520 raises (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection);
522 // Add a MED/VTK/... driver
523 // Multiple drivers can be added whatever the type
524 long addDriver (in medDriverTypes driverType, in string fileName, in string meshName)
525 raises (SALOME::SALOME_Exception);
527 void rmDriver (in long i) raises (SALOME::SALOME_Exception);
530 void read (in long i) raises (SALOME::SALOME_Exception);
531 void write (in long i, in string driverMeshName)
532 raises (SALOME::SALOME_Exception);
535 Internal Corba method.
537 long getCorbaIndex() raises (SALOME::SALOME_Exception);
541 long spaceDimension ;
545 Family_array famNode;
546 Family_array famEdge;
547 Family_array famFace;
548 Family_array famCell;
549 Group_array groupNode;
550 Group_array groupEdge;
551 Group_array groupFace;
552 Group_array groupCell;
554 meshInfos getMeshGlobal() raises (SALOME::SALOME_Exception);
555 boolean areEquals(in MESH other);
559 // ----------------------
561 // ----------------------
563 interface SUPPORT : SALOME::MultiCommClass, SALOME::GenericObj {
566 Returns the name of the support.
568 string getName() raises (SALOME::SALOME_Exception);
571 Returns the description of the support.
573 string getDescription() raises (SALOME::SALOME_Exception);
576 Returns a reference to the mesh.
578 MESH getMesh() raises (SALOME::SALOME_Exception);
581 Returns the type of %medEntityMesh used by the support.
584 A support deals only with one entity's type
585 (for example : MED_FACE or MED_NODE)
587 medEntityMesh getEntity() raises (SALOME::SALOME_Exception);
590 Returns True if all elements of this entity are
591 engaged, False otherwise.
593 If True, you must use mesh reference (getMesh) to get more information.
595 boolean isOnAllElements() raises (SALOME::SALOME_Exception);
598 If the method %isOnAllElements() returns False, this method
599 returns the number of elements in the support.
601 Example : number of MED_TRIA3 or MED_ALL_ELEMETNS elements
602 in entity of support.
605 If %SUPPORT is defined on MED_NODE, use MED_NONE %medGeometryElement
608 long getNumberOfElements(in medGeometryElement geomElement)
609 raises (SALOME::SALOME_Exception);
611 long getNumberOfTypes() raises (SALOME::SALOME_Exception);
613 If isOnAllElements is False, returns an array of %medGeometryElement
614 types used by the support.
616 %medEntityMesh is given by getEntity.
618 medGeometryElement_array getTypes() raises (SALOME::SALOME_Exception);
622 If the method %isOnAllElements() returns False, this method returns an array which
623 contains all numbers of given %medGeometryElement.
625 Numbering is global, ie numbers are bounded by 1 and
626 MESH::getNumberOfElement(entity,MED_ALL_ELEMENTS) and not by 1 and
627 MESH::getNumberOfElement(entity,geomElement).
630 If %SUPPORT is defined on MED_NODE, use MED_NONE %medGeometryElement type.
632 SALOME_MED::long_array getNumber(in medGeometryElement geomElement)
633 raises (SALOME::SALOME_Exception);
636 Idem SALOME::Sender getNumber(in medGeometryElement geomElement) but returning Sender.\n
637 It could be used in a Client code using the MED Client classes.
640 SALOME::SenderInt getSenderForNumber(in medGeometryElement geomElement)
641 raises (SALOME::SALOME_Exception);
644 If the method %isOnAllElements() returns False, this method returns the index
647 Use it with getNumber(MED_ALL_ELEMENTS).
650 See the method %getConnectivityIndex for more details.
652 SALOME_MED::long_array getNumberIndex()
653 raises (SALOME::SALOME_Exception);
656 Idem SALOME_MED::long_array getNumberIndex() but return a Sender.\n
657 It could be used in a Client code using the MED Client classes.
659 SALOME::SenderInt getSenderForNumberIndex()
660 raises (SALOME::SALOME_Exception);
663 Returns the number of Gauss points for this %medGeometryElement.
666 - Not defined if %SUPPORT is on MED_NODE.
667 - Not defined for MED_ALL_ELEMENTS %medGeometryElement type.
669 long getNumberOfGaussPoint(in medGeometryElement geomElement)
670 raises (SALOME::SALOME_Exception);
672 SALOME_MED::long_array getNumbersOfGaussPoint()
673 raises (SALOME::SALOME_Exception);
675 void getBoundaryElements()
676 raises (SALOME::SALOME_Exception);
678 Internal Corba method.
680 long getCorbaIndex() raises (SALOME::SALOME_Exception);
685 boolean isOnAllElements;
686 medEntityMesh entity;
687 long numberOfGeometricType;
688 medGeometryElement_array types;
689 SALOME_MED::long_array nbEltTypes;
691 supportInfos getSupportGlobal() raises (SALOME::SALOME_Exception);
700 interface FAMILY : SUPPORT
704 Returns Family identifier (Identifier
705 of the family in the mesh).
708 There is precisely only one indentifier for each family.
710 long getIdentifier() raises (SALOME::SALOME_Exception);
713 Returns number of attributes.
715 long getNumberOfAttributes() raises (SALOME::SALOME_Exception);
718 Returns an array of all attributes' identifiers.
719 There is one for each attribute.
721 SALOME_MED::long_array getAttributesIdentifiers()
722 raises (SALOME::SALOME_Exception);
725 Returns identifier of i-th attribute.
728 i is bounded by 1 and NumberOfAttributes.
730 long getAttributeIdentifier(in long i) raises (SALOME::SALOME_Exception);
733 Returns an array of all values of the attributes .
734 There is one value for each attribute.
736 SALOME_MED::long_array getAttributesValues()
737 raises (SALOME::SALOME_Exception);
740 Returns the value of i-th attribute.
743 i is bounded by 1 and NumberOfAttributes.
745 long getAttributeValue(in long i) raises (SALOME::SALOME_Exception);
748 Returns an array of all descriptions of the attributes .
749 There is one description for each attribute.
751 SALOME_MED::string_array getAttributesDescriptions()
752 raises (SALOME::SALOME_Exception);
755 Returns the description of i-th attribute.
758 i is bounded by 1 and NumberOfAttributes.
760 string getAttributeDescription(in long i)
761 raises (SALOME::SALOME_Exception);
764 Returns the number of groups the family belongs to.
766 long getNumberOfGroups()
767 raises (SALOME::SALOME_Exception);
770 Returns an array of names of groups the family belongs to .
771 There is one name for each group.
773 SALOME_MED::string_array getGroupsNames()
774 raises (SALOME::SALOME_Exception);
777 Returns the name of i-th group.
780 i is bounded by 1 and NumberOfAttributes.
782 string getGroupName(in long i)
783 raises (SALOME::SALOME_Exception);
792 interface GROUP : SUPPORT
796 Returns the number of families in this group.
798 long getNumberOfFamilies() raises (SALOME::SALOME_Exception);
801 Returns an array of all families.
803 Family_array getFamilies() raises (SALOME::SALOME_Exception);
806 Returns a reference to the i-th family.
809 i is bounded by 1 and NumberOfFamilies.
811 FAMILY getFamily(in long i) raises (SALOME::SALOME_Exception);
820 interface FIELD : SALOME::GenericObj
824 Returns the field name.
826 string getName() raises (SALOME::SALOME_Exception);
829 Returns the field description.
831 string getDescription() raises (SALOME::SALOME_Exception);
834 Returns a reference to the support
835 on which the field is defined.
837 SUPPORT getSupport() raises (SALOME::SALOME_Exception);
840 Returns the number of field's components.
842 long getNumberOfComponents() raises (SALOME::SALOME_Exception);
845 Returns an array containing components names.
847 SALOME_MED::string_array getComponentsNames()
848 raises (SALOME::SALOME_Exception);
851 Returns the name of i-th component.
854 - i is bounded by 1 and NumberOfComponents.
855 - Name is mandatory for each field's component.
857 string getComponentName(in long i) raises (SALOME::SALOME_Exception);
860 Returns an array containing components units.
862 SALOME_MED::string_array getComponentsUnits()
863 raises (SALOME::SALOME_Exception);
866 Returns the unit of i-th component.
869 i is bounded by 1 and NumberOfComponents.
871 string getComponentUnit(in long i) raises (SALOME::SALOME_Exception);
874 Returns an array containing components descriptions.
876 SALOME_MED::string_array getComponentsDescriptions()
877 raises (SALOME::SALOME_Exception);
880 Returns the description of i-th component.
883 - i is bounded by 1 and NumberOfComponents.
884 - Name is mandatory for each field's component.
886 string getComponentDescription(in long i) raises (SALOME::SALOME_Exception);
889 Returns the iteration number.
891 long getIterationNumber() raises (SALOME::SALOME_Exception);
894 Returns time for this iteration.
896 double getTime() raises (SALOME::SALOME_Exception);
899 Returns order number use for
900 internal step in this iteration.
902 long getOrderNumber() raises (SALOME::SALOME_Exception);
907 long addDriver (in medDriverTypes driverType, in string fileName, in string fieldName)
908 raises (SALOME::SALOME_Exception);
913 void rmDriver (in long i)
914 raises (SALOME::SALOME_Exception);
917 void read (in long i)
918 raises (SALOME::SALOME_Exception);
923 void write (in long i, in string driverFieldName)
924 raises (SALOME::SALOME_Exception);
927 Adds the Field in the StudyManager.
929 void addInStudy(in SALOMEDS::Study myStudy, in FIELD myIor )
930 raises (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection);
933 Internal Corba method.
936 raises (SALOME::SALOME_Exception);
941 interface FIELDDOUBLE : FIELD , SALOME::MultiCommClass {
944 Returns an array of values of the field
946 SALOME_MED::double_array getValue(in medModeSwitch mode)
947 raises (SALOME::SALOME_Exception);
950 Idem as getValue but it could be used in a Client code using the
953 SALOME::SenderDouble getSenderForValue(in medModeSwitch mode)
954 raises (SALOME::SALOME_Exception);
957 interface FIELDINT : FIELD , SALOME::MultiCommClass {
960 Returns an array of values of the field
962 SALOME_MED::long_array getValue(in medModeSwitch mode)
963 raises (SALOME::SALOME_Exception);
966 Idem as getValue but it could be used in a Client code using the
969 SALOME::SenderInt getSenderForValue(in medModeSwitch mode)
970 raises (SALOME::SALOME_Exception);
975 interface MED : SALOME::GenericObj {
977 returns the number of meshes in the %MED object.
979 long getNumberOfMeshes () raises (SALOME::SALOME_Exception);
981 returns the number of fields in the %MED object.
983 long getNumberOfFields () raises (SALOME::SALOME_Exception);
985 returns an array which contains the name of each meshes in the %MED object.
987 SALOME_MED::string_array getMeshNames () raises (SALOME::SALOME_Exception);
989 returns an array which contains the name of each fields in the %MED object.
991 SALOME_MED::string_array getFieldNames () raises (SALOME::SALOME_Exception);
993 giving a mesh name, it returns the corresponding %MESH pointer.
995 MESH getMeshByName ( in string meshName) raises (SALOME::SALOME_Exception);
997 giving a %FIELD pointer, it returns the corresponding %MESH pointer of the mesh
998 on which the field lies.
1000 MESH getMesh ( in FIELD fieldPtr) raises (SALOME::SALOME_Exception);
1002 giving a field name, it returns the number of iteration in the corresponding %FIELD object.
1004 long getFieldNumberOfIteration(in string fieldName) raises (SALOME::SALOME_Exception);
1006 giving a field name and an integer %i, it returns a couple of integers: the time iteration and
1007 the order number of the %i^th iteration of the corresponding %FIELD object.
1009 SALOME_MED::long_array getFieldIteration(in string fieldName, in long i) raises (SALOME::SALOME_Exception);
1011 giving a field name, it returns an array of integers: the list of the time iteration and
1012 the order number couple of all iterations of the corresponding %FIELD object.
1014 (DT1, IT1, DT2, IT2, ... , DTn, ITn) when n is the number of the %FIELD iterations.
1016 SALOME_MED::long_array getFieldIterations(in string fieldName) raises (SALOME::SALOME_Exception);
1018 giving a field name, a time iteration and an order number, it returns the corresponding %FIELD oject.
1020 FIELD getField ( in string fieldName,
1022 in long numOrdre ) raises (SALOME::SALOME_Exception);
1025 // Add a MED/VTK/... driver to a MED'GEN' object to
1026 // be able to read/write files preserving meshes<-->fields association
1027 // Multiple drivers can be added whatever the type.
1028 // The access point in the <long> returned
1029 long addDriver (in medDriverTypes driverType, in string fileName)
1030 raises (SALOME::SALOME_Exception);
1034 void rmDriver (in long i) raises (SALOME::SALOME_Exception);
1036 Reads the structure of the %MED file
1038 void readFileStruct(in long i) raises (SALOME::SALOME_Exception);
1039 void writeFrom (in long i) raises (SALOME::SALOME_Exception);
1040 void write (in long i) raises (SALOME::SALOME_Exception);
1042 void addMesh (in MESH ptrMesh ) raises (SALOME::SALOME_Exception);
1043 void addField (in FIELD ptrField ) raises (SALOME::SALOME_Exception);
1045 void addInStudy (in SALOMEDS::Study myStudy, in MED medPtr) raises (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection);
1049 #endif /* MED_IDL */