med_proto.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_PROTO_H
00019 #define MED_PROTO_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 /* Library */
00030 #include "medlibrary.h"
00031 
00032 /* File */
00033 #include "medfile.h"
00034 
00035 /* Mesh */
00036 #include "medmesh.h"
00037 
00038 /*routine interne*/
00039 MEDC_EXPORT med_err
00040 _MEDmeshCr(const med_idt fid, const char * const root,
00041            const char * const meshname, const med_int spacedim,
00042            const med_int meshdim, const med_mesh_type meshtype,
00043            const char * const description, const char * const dtunit,
00044            const med_sorting_type sortingtype,
00045            const med_axis_type axistype, const char * const axisname,
00046            const char * const axisunit);
00047 
00048 MEDC_EXPORT med_err
00049 _MEDmeshInfoByName(const med_idt fid, const char * const root,const char * const meshname,
00050                    med_int * const spacedim,med_int * const meshdim,  med_mesh_type * const meshtype,
00051                    char * const description,  char * const dtunit,
00052                    med_sorting_type *const sortingtype,
00053                    med_int * const nstep,  med_axis_type * const axistype,  char * const axisname,
00054                    char * const axisunit);
00055 
00056 MEDC_EXPORT med_idt
00057 _MEDmeshAssociatedGroupCr(const med_idt               id,
00058                           const char*  const          rootname,
00059                           const char*  const          meshname,
00060                           const med_int               numdt,
00061                           const med_int               numit,
00062                           const med_float             dt,
00063                           const med_bool              justopen,
00064                           const char*  const          datagroupname );
00065 
00066 MEDC_EXPORT med_err
00067 _MEDmeshAdvancedWr(const med_idt               fid,
00068                    const char*  const          meshname,
00069                    const med_data_type         meddatatype,
00070                    const char*  const          datasetname,
00071                    const med_internal_type     datatype,
00072                    const med_int               numdt,
00073                    const med_int               numit,
00074                    const med_float             dt,
00075                    const med_entity_type       entitype,
00076                    const med_geometry_type     geotype,
00077                    const med_connectivity_mode cmode,
00078                    const med_storage_mode      storagemode,
00079                    const char * const          profilename,
00080                    const med_switch_mode       switchmode,
00081                    const med_int               dimselect,
00082                    const med_filter * const    filter,
00083                    const med_int               nentity,
00084                    const void * const          value);
00085 
00086 MEDC_EXPORT med_err
00087 _MEDmeshAdvancedRd(const med_idt               fid,
00088                    const char*  const          meshname,
00089                    const med_data_type         meddatatype,
00090                    const char*  const          datasetname,
00091                    const med_internal_type     datatype,
00092                    const med_int               numdt,
00093                    const med_int               numit,
00094                    const med_entity_type       entitype,
00095                    const med_geometry_type     geotype,
00096                    const med_connectivity_mode cmode,
00097                    const med_storage_mode      storagemode,
00098                    const char * const          profilename,
00099                    const med_switch_mode       switchmode,
00100                    const med_int               dimselect,
00101                    const med_filter * const    filter,
00102                    unsigned char* const  value);
00103 
00104 MEDC_EXPORT med_int
00105 _MEDmeshnEntity(const med_idt fid,
00106                 const char * const meshname,
00107                 const med_int numdt,
00108                 const med_int numit,
00109                 const med_entity_type entitype,
00110                 const med_geometry_type geotype,
00111                 const med_data_type datatype,
00112                 const med_connectivity_mode cmode,
00113                 const med_storage_mode storagemode,
00114                 char     * const profilename,
00115                 med_int  * const profilesize,
00116                 med_bool * const changement,
00117                 med_bool * const transformation );
00118 
00119 /*fin routines  internes */
00120 
00121 /*FIELD*/
00122 
00123 #include "medfield.h"
00124 
00125 /*routines internes*/
00126 
00127 MEDC_EXPORT med_err
00128 _MEDfieldComputingStepCheck236(med_idt fid,
00129                                const char * const fieldname,
00130                                med_size * const ncpst,
00131                                med_bool checkmultiplemesh, med_bool * const multiplemesh,
00132                                med_bool checkmeshname, med_bool * const samedefaultmeshname);
00133 
00134 MEDC_EXPORT med_int
00135 _MEDfieldnValue(const med_idt fid, const char * const fieldname,const med_int numdt,const med_int numit,
00136                 const med_entity_type entitype, const med_geometry_type geotype,
00137                 char * const profilename, const  int profileit,
00138                 const med_storage_mode storagemode,med_int * const profilesize,
00139                 char * const localizationname, med_int * const nintegrationpoint);
00140 
00141 MEDC_EXPORT med_int
00142 _MEDfield23nValue(const med_idt fid, const char * const fieldname,const med_int numdt,const med_int numit,
00143                 const med_entity_type entitype, const med_geometry_type geotype, const char * const meshname,
00144                 char * const profilename, const  int profileit,
00145                 const med_storage_mode storagemode,med_int * const profilesize,
00146                 char * const localizationname, med_int * const nintegrationpoint);
00147 
00148 /*fin routines  internes */
00149 
00150 /* Family  */
00151 #include "medfamily.h"
00152 
00153 /* Equivalence    */
00154 #include "medequivalence.h"
00155 
00156 /* Joints */
00157 #include "medsubdomain.h"
00158 
00159 /* Profile */
00160 
00161 #include "medprofile.h"
00162 
00163 /* Filter */
00164 #include "medfilter.h"
00165 
00166 /* Localization */
00167 #include "medlocalization.h"
00168 
00169 /* Link */
00170 #include "medlink.h"
00171 
00172 /* Struct Elements */
00173 
00174 MEDC_EXPORT med_geometry_type
00175 MEDstructElementCr(const med_idt                 fid,
00176                    const char*             const modelname,
00177                    const med_int                 modeldim,
00178                    const char*             const supportmeshname,
00179                    const med_entity_type         sentitytype,
00180                    const med_geometry_type       sgeotype
00181                    );
00182 
00183 MEDC_EXPORT med_int
00184 MEDnStructElement(const med_idt      fid);
00185 
00186 MEDC_EXPORT med_err
00187 MEDstructElementConstAttWithProfileWr(const med_idt                  fid,
00188                                       const char*              const modelname,
00189                                       const char*              const constattname,
00190                                       const med_attribute_type       constatttype,
00191                                       const med_int                  ncomponent,
00192                                       const med_entity_type          sentitytype,
00193                                       const char*              const profilename,
00194                                       const void*              const value
00195                                       );
00196 
00197 MEDC_EXPORT med_err
00198 MEDstructElementConstAttWr(const med_idt                  fid,
00199                            const char*              const modelname,
00200                            const char*              const constattname,
00201                            const med_attribute_type       constatttype,
00202                            const med_int                  ncomponent,
00203                            const med_entity_type          sentitytype,
00204                            const void*              const value
00205                            );
00206 
00207 MEDC_EXPORT med_err
00208 MEDstructElementInfoByName(const med_idt             fid,
00209                            const char *        const modelname,
00210                            med_geometry_type * const mgeotype,
00211                            med_int*            const modeldim,
00212                            char*               const supportmeshname,
00213                            med_entity_type*    const sentitytype,
00214                            med_int*            const snnode,
00215                            med_int*            const sncell,
00216                            med_geometry_type*  const sgeotype,
00217                            med_int*            const nconstantatribute,
00218                            med_bool*           const anyprofile,
00219                            med_int*            const nvariableattribute
00220                            );
00221 
00222 MEDC_EXPORT med_err
00223 MEDstructElementInfo(const med_idt             fid,
00224                      const int                 mit,
00225                      char *              const modelname,
00226                      med_geometry_type * const mgeotype,
00227                      med_int*            const modeldim,
00228                      char*               const supportmeshname,
00229                      med_entity_type*    const sentitytype,
00230                      med_int*            const snnode,
00231                      med_int*            const sncell,
00232                      med_geometry_type*  const sgeotype,
00233                      med_int*            const nconstantattribute,
00234                      med_bool*           const anyprofile,
00235                      med_int*            const nvariableattribute
00236                      );
00237 
00238 MEDC_EXPORT med_err
00239 MEDstructElementConstAttInfoByName(const med_idt             fid,
00240                                    const char*         const modelname,
00241                                    const char*         const constattname,
00242                                    med_attribute_type* const constatttype,
00243                                    med_int*            const ncomponent,
00244                                    med_entity_type*    const sentitytype,
00245                                    char*               const profilename,
00246                                    med_int*            const profilesize
00247                                    );
00248 MEDC_EXPORT med_err
00249 MEDstructElementConstAttInfo(const med_idt             fid,
00250                              const char*         const modelname,
00251                              const int                 attit,
00252                              char*               const constattname,
00253                              med_attribute_type* const constatttype,
00254                              med_int*            const ncomponent,
00255                              med_entity_type*    const sentitytype,
00256                              char*               const profilename,
00257                              med_int*            const profilesize
00258                              );
00259 
00260 MEDC_EXPORT med_err
00261 MEDstructElementConstAttRd(const med_idt                  fid,
00262                            const char*              const modelname,
00263                            const char*              const constattname,
00264                            void*                    const value
00265                            );
00266 
00267 MEDC_EXPORT int
00268 MEDstructElementAttSizeof( med_attribute_type atttype );
00269 
00270 MEDC_EXPORT med_err
00271 MEDstructElementVarAttCr(const med_idt                  fid,
00272                          const char*              const modelname,
00273                          const char*              const varattname,
00274                          const med_attribute_type       varatttype,
00275                          const med_int                  ncomponent
00276                          );
00277 
00278 MEDC_EXPORT med_err
00279 MEDstructElementVarAttInfoByName(const med_idt                   fid,
00280                                  const char*               const modelname,
00281                                  const char*               const varattname,
00282                                        med_attribute_type* const varatttype,
00283                                        med_int*            const ncomponent
00284                                  );
00285 
00286 MEDC_EXPORT med_err
00287 MEDstructElementVarAttInfo(const med_idt                   fid,
00288                            const char*               const modelname,
00289                            const int                       attit,
00290                                  char*               const varattname,
00291                                  med_attribute_type* const varatttype,
00292                                  med_int*            const ncomponent
00293                            );
00294 
00295 MEDC_EXPORT med_err
00296 MEDmeshStructElementVarAttWr(const med_idt                  fid,
00297                              const char*              const meshname,
00298                              const med_int                  numdt,
00299                              const med_int                  numit,
00300                              const med_geometry_type        mgeotype,
00301                              const char*              const varattname,
00302                              const med_int                  nentity,
00303                              const void*              const value
00304                              );
00305 MEDC_EXPORT med_err
00306 MEDmeshStructElementVarAttRd(const med_idt                  fid,
00307                              const char*              const meshname,
00308                              const med_int                  numdt,
00309                              const med_int                  numit,
00310                              const med_geometry_type        mgeotype,
00311                              const char*              const varattname,
00312                              void*                    const value
00313                              );
00314 
00315 MEDC_EXPORT med_err
00316 MEDstructElementName(const med_idt                 fid,
00317                      const med_geometry_type       mgeotype,
00318                      char *                  const modelname);
00319 
00320 
00321 MEDC_EXPORT med_geometry_type
00322 MEDstructElementGeotype(const med_idt                 fid,
00323                         const char *            const modelname);
00324 
00325 /* Maillages support aux modèles d'éléments de structure */
00326 
00327 MEDC_EXPORT med_err
00328 MEDsupportMeshCr(const med_idt       fid,
00329                  const char* const   supportmeshname,
00330                  const med_int       spacedim,
00331                  const med_int       meshdim,
00332                  const char* const   description,
00333                  const med_axis_type axistype,
00334                  const char* const   axisname,
00335                  const char* const   axisunit
00336                  );
00337 
00338 
00339 
00340 MEDC_EXPORT med_err
00341 MEDsupportMeshInfoByName(const med_idt         fid,
00342                          const char *    const supportmeshname,
00343                          med_int *       const spacedim,
00344                          med_int *       const meshdim,
00345                          char *          const description,
00346                          med_axis_type * const axistype,
00347                          char *          const axisname,
00348                          char *          const axisunit);
00349 
00350 MEDC_EXPORT med_err
00351 MEDsupportMeshInfo(const med_idt            fid,
00352                    const int                meshit,
00353                    char   *           const supportmeshname,
00354                    med_int *          const spacedim,
00355                    med_int *          const meshdim,
00356                    char *             const description,
00357                    med_axis_type *    const axistype,
00358                    char *             const axisname,
00359                    char *             const axisunit);
00360 
00361 MEDC_EXPORT med_int
00362 MEDnSupportMesh(const med_idt fid);
00363 
00364 MEDC_EXPORT med_int
00365 MEDsupportMeshnAxis(const med_idt fid, const int meshit);
00366 
00367 MEDC_EXPORT med_int
00368 MEDsupportMeshnAxisByName(const med_idt fid, const char * const meshname);
00369 
00370 
00371 MEDC_EXPORT med_idt
00372 _MEDmeshDatagroupOpen(const med_idt               fid,
00373                       const char*  const          meshname,
00374                       char *       const          usedpath,
00375                       med_bool *   const          isasupportmesh
00376                      );
00377 
00378 
00379 /* Variables scalaires */
00380 
00381 #include "medparameter.h"
00382 
00383 /* Fonctions d'interpolation */
00384 
00385 #include "medinterp.h"
00386 
00387 
00388 #ifdef __cplusplus
00389 }
00390 #endif
00391 
00392 #endif /* MED_PROTO_H */
00393 
00394 
00395 
00396 

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