medmesh.h

Aller à la documentation de ce fichier.
00001 /*  This file is part of MED.
00002  *
00003  *  COPYRIGHT (C) 1999 - 2015  EDF R&D, CEA/DEN
00004  *  MED is free software: you can redistribute it and/or modify
00005  *  it under the terms of the GNU Lesser General Public License as published by
00006  *  the Free Software Foundation, either version 3 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  MED is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Lesser General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Lesser General Public License
00015  *  along with MED.  If not, see <http://www.gnu.org/licenses/>.
00016  */
00017 
00018 #ifndef MED_MEDMESH_H
00019 #define MED_MEDMESH_H
00020 
00021 #include "medC_win_dll.h"
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00027 /* Interface de l'API MED */
00028 
00029 MEDC_EXPORT med_err
00030 MEDmeshCr(const med_idt fid,
00031           const char * const meshname, const med_int spacedim,
00032           const med_int meshdim, const med_mesh_type meshtype,
00033           const char * const description, const char * const dtunit,
00034           const med_sorting_type sortingtype,
00035           const med_axis_type axistype, const char * const axisname,
00036           const char * const axisunit);
00037 
00038 
00039 MEDC_EXPORT med_err
00040 MEDmeshInfoByName(const med_idt fid,const char * const meshname,
00041                   med_int * const spacedim, med_int * const meshdim,  med_mesh_type * const meshtype,
00042                   char * const description,  char * const dtunit,
00043                   med_sorting_type * const sortingtype,
00044                   med_int * const nstep,  med_axis_type * const axistype,  char * const axisname,
00045                   char * const axisunit);
00046 
00047 MEDC_EXPORT med_err
00048 MEDmeshInfo(const med_idt            fid,
00049             const int                meshit,
00050             char   *           const meshname,
00051             med_int *          const spacedim,
00052             med_int *          const meshdim,
00053             med_mesh_type *    const meshtype,
00054             char *             const description,
00055             char *             const dtunit,
00056             med_sorting_type * const sortingtype,
00057             med_int *          const nstep,
00058             med_axis_type *    const axistype,
00059             char *             const axisname,
00060             char *             const axisunit);
00061 
00062 MEDC_EXPORT med_int
00063 MEDnMesh(const med_idt fid);
00064 
00065 MEDC_EXPORT med_int
00066 MEDmeshnAxis(const med_idt fid, const int meshit);
00067 
00068 MEDC_EXPORT med_int
00069 MEDmeshnAxisByName(const med_idt fid, const char * const meshname);
00070 
00071 MEDC_EXPORT med_err
00072 MEDmeshGridTypeWr(const med_idt fid,const char * const meshname, const med_grid_type gridtype);
00073 
00074 MEDC_EXPORT med_err
00075 MEDmeshGridTypeRd(const med_idt fid,const char * const meshname, med_grid_type * const gridtype);
00076 
00077 MEDC_EXPORT med_err
00078 MEDmeshGridIndexCoordinateWr(const med_idt               fid,
00079                              const char*  const          meshname,
00080                              const med_int               numdt,
00081                              const med_int               numit,
00082                              const med_float             dt,
00083                              const med_int               axis,
00084                              const med_int               indexsize,
00085                              const med_float * const     gridindex);
00086 MEDC_EXPORT med_err
00087 MEDmeshGridIndexCoordinateRd(const med_idt               fid,
00088                              const char*  const          meshname,
00089                              const med_int               numdt,
00090                              const med_int               numit,
00091                              const med_int               axis,
00092                              med_float * const     gridindex);
00093 
00094 MEDC_EXPORT med_err
00095 MEDmeshGridStructWr(const med_idt               fid,
00096                     const char*  const          meshname,
00097                     const med_int               numdt,
00098                     const med_int               numit,
00099                     const med_float             dt,
00100                     const med_int * const       gridstruct);
00101 
00102 MEDC_EXPORT med_err
00103 MEDmeshGridStructRd(const med_idt               fid,
00104                     const char*  const          meshname,
00105                     const med_int               numdt,
00106                     const med_int               numit,
00107                     med_int * const       gridstruct);
00108 
00109 MEDC_EXPORT med_err
00110 MEDmeshUniversalNameWr(const med_idt fid, const char * const meshname);
00111 
00112 MEDC_EXPORT med_err
00113 MEDmeshUniversalNameRd(const med_idt fid, const char * const meshname,char * const univname);
00114 
00115 MEDC_EXPORT med_err
00116 MEDmeshComputationStepCr(const med_idt fid,const char * const meshname,
00117                          const med_int numdt1, const med_int numit1,
00118                          const med_int numdt2, const med_int numit2,
00119                          const med_float dt2 );
00120 
00121 MEDC_EXPORT med_err
00122 MEDmeshAttributeRd(const med_idt fid,
00123                    const char * const meshname,
00124                    med_int    * const isolatednodes,
00125                    med_int    * const verticesnodes,
00126                    med_int    * const cellmaxnodes);
00127 
00128 MEDC_EXPORT med_err
00129 MEDmeshAttributeWr(const med_idt fid, const char * const meshname,
00130                    const med_int isolatednodes,const med_int verticesnodes,const med_int cellmaxnodes);
00131 
00132 MEDC_EXPORT med_err
00133 MEDmeshComputationStepDtRd(const med_idt fid,const char * const meshname,
00134                            const med_int numdt, const med_int umit, med_float * const dt );
00135 
00136 MEDC_EXPORT med_err
00137 MEDmeshComputationStepInfo(const med_idt fid,
00138                            const char * const meshname,
00139                            const int csit,
00140                            med_int   * const numdt,
00141                            med_int   * const numit,
00142                            med_float * const  dt );
00143 
00144 MEDC_EXPORT med_err
00145 MEDmeshSortingTypeRd(const med_idt               fid,
00146                      const char*  const          meshname,
00147                      med_sorting_type * const    sortingtype );
00148 
00149 
00150 MEDC_EXPORT med_err
00151 MEDmeshNodeCoordinateAdvancedWr(const med_idt               fid,
00152                                 const char*  const          meshname,
00153                                 const med_int               numdt,
00154                                 const med_int               numit,
00155                                 const med_float             dt,
00156                                 const med_filter * const    filter,
00157                                 const med_float* const  value);
00158 MEDC_EXPORT med_err
00159 MEDmeshNodeCoordinateWithProfileWr(const med_idt               fid,
00160                                    const char*  const          meshname,
00161                                    const med_int               numdt,
00162                                    const med_int               numit,
00163                                    const med_float             dt,
00164                                    const med_storage_mode      storagemode,
00165                                    const char * const          profilename,
00166                                    const med_switch_mode       switchmode,
00167                                    const med_int               dimselect,
00168                                    const med_int               nentity,
00169                                    const med_float* const      coordinates);
00170 MEDC_EXPORT med_err
00171 MEDmeshNodeCoordinateWr(const med_idt               fid,
00172                                    const char*  const          meshname,
00173                                    const med_int               numdt,
00174                                    const med_int               numit,
00175                                    const med_float             dt,
00176                                    const med_switch_mode       switchmode,
00177                                    const med_int               nentity,
00178                                    const med_float* const  coordinates);
00179 
00180 MEDC_EXPORT med_err
00181 MEDmeshNodeCoordinateTrsfWr(const med_idt               fid,
00182                             const char*  const          meshname,
00183                             const med_int               numdt,
00184                             const med_int               numit,
00185                             const med_float             dt,
00186                             const med_float* const      coordinatetrsf);
00187 MEDC_EXPORT med_err
00188 MEDmeshNodeCoordinateTrsfRd(const med_idt               fid,
00189                                     const char*  const          meshname,
00190                                     const med_int               numdt,
00191                                     const med_int               numit,
00192                                     const med_float* const      coordinatetrsf);
00193 MEDC_EXPORT med_err
00194 MEDmeshElementConnectivityWr(const med_idt               fid,
00195                              const char*  const          meshname,
00196                              const med_int               numdt,
00197                              const med_int               numit,
00198                              const med_float             dt,
00199                              const med_entity_type       entitype,
00200                              const med_geometry_type     geotype,
00201                              const med_connectivity_mode cmode,
00202                              const med_switch_mode       switchmode,
00203                              const med_int               nentity,
00204                              const med_int* const  connectivity);
00205 
00206 MEDC_EXPORT med_err
00207 MEDmeshElementConnectivityAdvancedWr(const med_idt               fid,
00208                                      const char*  const          meshname,
00209                                      const med_int               numdt,
00210                                      const med_int               numit,
00211                                      const med_float             dt,
00212                                      const med_entity_type       entitype,
00213                                      const med_geometry_type     geotype,
00214                                      const med_connectivity_mode cmode,
00215                                      const med_filter * const    filter,
00216                                      const med_int* const  connectivity);
00217 MEDC_EXPORT med_err
00218 MEDmeshElementConnectivityWithProfileWr(const med_idt               fid,
00219                                         const char*  const          meshname,
00220                                         const med_int               numdt,
00221                                         const med_int               numit,
00222                                         const med_float             dt,
00223                                         const med_entity_type       entitype,
00224                                         const med_geometry_type     geotype,
00225                                         const med_connectivity_mode cmode,
00226                                         const med_storage_mode      storagemode,
00227                                         const char * const          profilename,
00228                                         const med_switch_mode       switchmode,
00229                                         const med_int               dimselect,
00230                                         const med_int               nentity,
00231                                         const med_int* const  connectivity);
00232 
00233 MEDC_EXPORT med_err
00234 MEDmeshNodeCoordinateAdvancedRd(const med_idt               fid,
00235                                 const char*  const          meshname,
00236                                 const med_int               numdt,
00237                                 const med_int               numit,
00238                                 const med_filter * const    filter,
00239                                 med_float* const  value);
00240 MEDC_EXPORT med_err
00241 MEDmeshNodeCoordinateWithProfileRd(const med_idt               fid,
00242                                    const char*  const          meshname,
00243                                    const med_int               numdt,
00244                                    const med_int               numit,
00245                                    const med_storage_mode      storagemode,
00246                                    const char * const          profilename,
00247                                    const med_switch_mode       switchmode,
00248                                    const med_int               dimselect,
00249                                    med_float* const  coordinates);
00250 MEDC_EXPORT med_err
00251 MEDmeshNodeCoordinateRd(const med_idt               fid,
00252                         const char*  const          meshname,
00253                         const med_int               numdt,
00254                         const med_int               numit,
00255                         const med_switch_mode       switchmode,
00256                         med_float* const  coordinates);
00257 
00258 MEDC_EXPORT med_err
00259 MEDmeshElementConnectivityRd(const med_idt               fid,
00260                              const char*  const          meshname,
00261                              const med_int               numdt,
00262                              const med_int               numit,
00263                              const med_entity_type       entitype,
00264                              const med_geometry_type     geotype,
00265                              const med_connectivity_mode cmode,
00266                              const med_switch_mode       switchmode,
00267                              med_int* const  connectivity);
00268 MEDC_EXPORT med_err
00269 MEDmeshElementConnectivityAdvancedRd(const med_idt               fid,
00270                                      const char*  const          meshname,
00271                                      const med_int               numdt,
00272                                      const med_int               numit,
00273                                      const med_entity_type       entitype,
00274                                      const med_geometry_type     geotype,
00275                                      const med_connectivity_mode cmode,
00276                                      const med_filter * const    filter,
00277                                      med_int* const  connectivity);
00278 MEDC_EXPORT med_err
00279 MEDmeshElementConnectivityWithProfileRd(const med_idt               fid,
00280                                         const char*  const          meshname,
00281                                         const med_int               numdt,
00282                                         const med_int               numit,
00283                                         const med_entity_type       entitype,
00284                                         const med_geometry_type     geotype,
00285                                         const med_connectivity_mode cmode,
00286                                         const med_storage_mode      storagemode,
00287                                         const char * const          profilename,
00288                                         const med_switch_mode       switchmode,
00289                                         const med_int               dimselect,
00290                                         const med_int               nentity,
00291                                         med_int* const  connectivity);
00292 
00293 /*Cr~er une version sans aucun param~tre concernant les s~quences de calcul*/
00294 MEDC_EXPORT med_int
00295 MEDmeshnEntity(const med_idt fid,
00296                const char * const meshname,
00297                const med_int numdt,
00298                const med_int numit,
00299                const med_entity_type entitype,
00300                const med_geometry_type geotype,
00301                const med_data_type datatype,
00302                const med_connectivity_mode cmode,
00303                med_bool * const changement,
00304                med_bool * const transformation );
00305 
00306 MEDC_EXPORT med_int
00307 MEDmeshnEntityWithProfile(const med_idt fid,
00308                           const char * const meshname,
00309                           const med_int numdt,
00310                           const med_int numit,
00311                           const med_entity_type entitype,
00312                           const med_geometry_type geotype,
00313                           const med_data_type datatype,
00314                           const med_connectivity_mode cmode,
00315                           const med_storage_mode storagemode,
00316                           char * const profilename,
00317                           med_int * const profilesize,
00318                           med_bool * const changement,
00319                           med_bool * const transformation );
00320 
00321 MEDC_EXPORT med_err
00322 MEDmeshEntityInfo(const med_idt                   fid,
00323                   const char *              const meshname,
00324                   const med_int                   numdt,
00325                   const med_int                   numit,
00326                   const med_entity_type           entitype,
00327                   const int                       geotypeit,
00328                   char              *       const geotypename,
00329                         med_geometry_type * const geotype
00330                   );
00331 
00332 MEDC_EXPORT med_err
00333 MEDmeshEntityNameWr(const med_idt               fid,
00334                     const char*  const          meshname,
00335                     const med_int               numdt,
00336                     const med_int               numit,
00337                     const med_entity_type       entitype,
00338                     const med_geometry_type     geotype,
00339                     const med_int               nentity,
00340                     const char* const           name);
00341 
00342 MEDC_EXPORT med_err
00343 MEDmeshEntityNameRd(const med_idt              fid,
00344                     const char*  const         meshname,
00345                     const med_int              numdt,
00346                     const med_int              numit,
00347                     const med_entity_type      entitype,
00348                     const med_geometry_type    geotype,
00349                     char* const                name);
00350 
00351 MEDC_EXPORT med_err
00352 MEDmeshEntityNumberWr(const med_idt               fid,
00353                       const char*  const          meshname,
00354                       const med_int               numdt,
00355                       const med_int               numit,
00356                       const med_entity_type       entitype,
00357                       const med_geometry_type     geotype,
00358                       const med_int               nentity,
00359                       const med_int * const       number);
00360 
00361 MEDC_EXPORT med_err
00362 MEDmeshEntityNumberRd(const med_idt               fid,
00363                       const char*  const          meshname,
00364                       const med_int               numdt,
00365                       const med_int               numit,
00366                       const med_entity_type       entitype,
00367                       const med_geometry_type     geotype,
00368                       med_int * const             number);
00369 
00370 MEDC_EXPORT med_err
00371 MEDmeshEntityFamilyNumberWr(const med_idt               fid,
00372                             const char*  const          meshname,
00373                             const med_int               numdt,
00374                             const med_int               numit,
00375                             const med_entity_type       entitype,
00376                             const med_geometry_type     geotype,
00377                             const med_int               nentity,
00378                             const med_int * const       number);
00379 MEDC_EXPORT med_err
00380 MEDmeshEntityFamilyNumberRd(const med_idt               fid,
00381                             const char*  const          meshname,
00382                             const med_int               numdt,
00383                             const med_int               numit,
00384                             const med_entity_type       entitype,
00385                             const med_geometry_type     geotype,
00386                             med_int * const             number);
00387 
00388 MEDC_EXPORT med_err
00389 MEDmeshEntityAttributeAdvancedRd(const med_idt               fid,
00390                                  const char*  const          meshname,
00391                                  const med_data_type         datatype,
00392                                  const med_int               numdt,
00393                                  const med_int               numit,
00394                                  const med_entity_type       entitype,
00395                                  const med_geometry_type     geotype,
00396                                  const med_filter * const    filter,
00397                                  void * const                attval);
00398 
00399 MEDC_EXPORT med_err
00400 MEDmeshEntityAttributeAdvancedWr(const med_idt               fid,
00401                                  const char*  const          meshname,
00402                                  const med_data_type         datatype,
00403                                  const med_int               numdt,
00404                                  const med_int               numit,
00405                                  const med_entity_type       entitype,
00406                                  const med_geometry_type     geotype,
00407                                  const med_filter * const    filter,
00408                                  const void * const          attval);
00409 
00410 MEDC_EXPORT med_err
00411 MEDmeshPolygonWr(const med_idt               fid,
00412                  const char*  const          meshname,
00413                  const med_int               numdt,
00414                  const med_int               numit,
00415                  const med_float             dt,
00416                  const med_entity_type       entitype,
00417                  const med_connectivity_mode cmode,
00418                  const med_int               indexsize,
00419                  const med_int * const       polyindex,
00420                  const med_int * const       connectivity );
00421 
00422 MEDC_EXPORT med_err
00423 MEDmeshPolygon2Wr(const med_idt               fid,
00424                   const char*  const          meshname,
00425                   const med_int               numdt,
00426                   const med_int               numit,
00427                   const med_float             dt,
00428                   const med_entity_type       entitype,
00429                   const med_geometry_type     polytype,
00430                   const med_connectivity_mode cmode,
00431                   const med_int               indexsize,
00432                   const med_int * const       polyindex,
00433                   const med_int * const       connectivity );
00434 
00435 MEDC_EXPORT med_err
00436 MEDmeshPolygonRd(const med_idt               fid,
00437                  const char*  const          meshname,
00438                  const med_int               numdt,
00439                  const med_int               numit,
00440                  const med_entity_type       entitype,
00441                  const med_connectivity_mode cmode,
00442                  med_int * const             polyindex,
00443                  med_int * const             connectivity );
00444 
00445 MEDC_EXPORT med_err
00446 MEDmeshPolygon2Rd(const med_idt               fid,
00447                   const char*  const          meshname,
00448                   const med_int               numdt,
00449                   const med_int               numit,
00450                   const med_entity_type       entitype,
00451                   const med_geometry_type     polytype,
00452                   const med_connectivity_mode cmode,
00453                   med_int * const             polyindex,
00454                   med_int * const             connectivity );
00455 
00456 MEDC_EXPORT med_err
00457 MEDmeshPolyhedronRd(const med_idt               fid,
00458                     const char*  const          meshname,
00459                     const med_int               numdt,
00460                     const med_int               numit,
00461                     const med_entity_type       entitype,
00462                     const med_connectivity_mode cmode,
00463                     med_int * const             faceindex,
00464                     med_int * const             nodeindex,
00465                     med_int * const             connectivity );
00466 
00467 MEDC_EXPORT med_err
00468 MEDmeshPolyhedronWr(const med_idt               fid,
00469                     const char*  const          meshname,
00470                     const med_int               numdt,
00471                     const med_int               numit,
00472                     const med_float             dt,
00473                     const med_entity_type       entitype,
00474                     const med_connectivity_mode cmode,
00475                     const med_int               faceindexsize,
00476                     const med_int * const       faceindex,
00477                     const med_int               nodeindexsize,
00478                     const med_int * const       nodeindex,
00479                     const med_int * const       connectivity );
00480 
00481 MEDC_EXPORT med_err
00482 MEDmeshGeotypeName(const med_idt                 fid,
00483                    const med_geometry_type       geotype,
00484                    char *                  const geotypename);
00485 MEDC_EXPORT med_err
00486 MEDmeshGeotypeParameter(const med_idt                 fid,
00487                         const med_geometry_type       geotype,
00488                         med_int *               const geodim,
00489                         med_int *               const nnodes);
00490 
00491 MEDC_EXPORT
00492 med_err MEDmeshGlobalNumberWr(const med_idt               fid,
00493                               const char*  const          meshname,
00494                               const med_int               numdt,
00495                               const med_int               numit,
00496                               const med_entity_type       entitytype,
00497                               const med_geometry_type     geotype,
00498                               const med_int               nentity,
00499                               const med_int * const       number);
00500 MEDC_EXPORT
00501 med_err MEDmeshGlobalNumberRd(const med_idt               fid,
00502                               const char*  const          meshname,
00503                               const med_int               numdt,
00504                               const med_int               numit,
00505                               const med_entity_type       entitytype,
00506                               const med_geometry_type     geotype,
00507                               med_int * const             number);
00508 
00509 /* Routines de niveau intermediaire */
00510 MEDC_EXPORT
00511 med_err MEDmeshNodeWr(const med_idt                  fid,
00512                       const char            * const  meshname,
00513                       const med_int                  numdt,
00514                       const med_int                  numit,
00515                       const med_float                dt,
00516                       const med_switch_mode          switchmode,
00517                       const med_int                  nentity,
00518                       const med_float       * const  coordinate,
00519                       const med_bool                 withnodename,
00520                       const char            * const  nodename,
00521                       const med_bool                 withnodenumber,
00522                       const med_int         * const  nodenumber,
00523                       const med_bool                 withfamnumber,
00524                       const med_int         * const  famnumber);
00525 
00526 MEDC_EXPORT
00527 med_err MEDmeshNodeRd(const med_idt                  fid,
00528                       const char            * const  meshname,
00529                       const med_int                  numdt,
00530                       const med_int                  numit,
00531                       const med_switch_mode          switchmode,
00532                       med_float             * const  coordinate,
00533                       med_bool              * const  withnodename,
00534                       char                  * const  nodename,
00535                       med_bool              * const  withnodenumber,
00536                       med_int               * const  nodenumber,
00537                       med_bool              * const  withfamnumber,
00538                       med_int               * const  famnumber);
00539 
00540 MEDC_EXPORT
00541 med_err MEDmeshElementWr(const med_idt                  fid,
00542                          const char            * const  meshname,
00543                          const med_int                  numdt,
00544                          const med_int                  numit,
00545                          const med_float                dt,
00546                          const med_entity_type          entitype,
00547                          const med_geometry_type        geotype,
00548                          const med_connectivity_mode    cmode,
00549                          const med_switch_mode          switchmode,
00550                          const med_int                  nentity,
00551                          const med_int         * const  connectivity,
00552                          const med_bool                 withelementname,
00553                          const char            * const  elementname,
00554                          const med_bool                 withelementnumber,
00555                          const med_int         * const  elementnumber,
00556                          const med_bool                 withfamnumber,
00557                          const med_int         * const  famnumber);
00558 MEDC_EXPORT
00559 med_err MEDmeshElementRd(const med_idt                  fid,
00560                          const char            * const  meshname,
00561                          const med_int                  numdt,
00562                          const med_int                  numit,
00563                          const med_entity_type          entitype,
00564                          const med_geometry_type        geotype,
00565                          const med_connectivity_mode    cmode,
00566                          const med_switch_mode          switchmode,
00567                          med_int               * const  connectivity,
00568                          med_bool              * const  withelementname,
00569                          char                  * const  elementname,
00570                          med_bool              * const  withelementnumber,
00571                          med_int               * const  elementnumber,
00572                          med_bool              * const  withfamnumber,
00573                          med_int               * const  famnumber);
00574 
00575 #ifdef __cplusplus
00576 }
00577 #endif
00578 
00579 #endif /* MED_MEDMESH_H */
00580 

Généré le Thu Oct 8 14:26:16 2015 pour MED fichier par  doxygen 1.6.1