MED fichier
med_proto.h
Aller à la documentation de ce fichier.
1 /* This file is part of MED.
2  *
3  * COPYRIGHT (C) 1999 - 2016 EDF R&D, CEA/DEN
4  * MED is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * MED is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with MED. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef MED_PROTO_H
19 #define MED_PROTO_H
20 
21 #include "medC_win_dll.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 /* Interface de l'API MED */
28 
29 /* Library */
30 #include "medlibrary.h"
31 
32 /* File */
33 #include "medfile.h"
34 
35 /* Mesh */
36 #include "medmesh.h"
37 
38 /*routine interne*/
40 _MEDmeshCr(const med_idt fid, const char * const root,
41  const char * const meshname, const med_int spacedim,
42  const med_int meshdim, const med_mesh_type meshtype,
43  const char * const description, const char * const dtunit,
44  const med_sorting_type sortingtype,
45  const med_axis_type axistype, const char * const axisname,
46  const char * const axisunit);
47 
49 _MEDmeshInfoByName(const med_idt fid, const char * const root,const char * const meshname,
50  med_int * const spacedim,med_int * const meshdim, med_mesh_type * const meshtype,
51  char * const description, char * const dtunit,
52  med_sorting_type *const sortingtype,
53  med_int * const nstep, med_axis_type * const axistype, char * const axisname,
54  char * const axisunit);
55 
58  const char* const rootname,
59  const char* const meshname,
60  const med_int numdt,
61  const med_int numit,
62  const med_float dt,
63  const med_bool justopen,
64  const char* const datagroupname );
65 
67 _MEDmeshAdvancedWr(const med_idt fid,
68  const char* const meshname,
69  const med_data_type meddatatype,
70  const char* const datasetname,
71  const med_internal_type datatype,
72  const med_int numdt,
73  const med_int numit,
74  const med_float dt,
75  const med_entity_type entitype,
76  const med_geometry_type geotype,
77  const med_connectivity_mode cmode,
78  const med_storage_mode storagemode,
79  const char * const profilename,
80  const med_switch_mode switchmode,
81  const med_int dimselect,
82  const med_filter * const filter,
83  const med_int nentity,
84  const void * const value);
85 
87 _MEDmeshAdvancedRd(const med_idt fid,
88  const char* const meshname,
89  const med_data_type meddatatype,
90  const char* const datasetname,
91  const med_internal_type datatype,
92  const med_int numdt,
93  const med_int numit,
94  const med_entity_type entitype,
95  const med_geometry_type geotype,
96  const med_connectivity_mode cmode,
97  const med_storage_mode storagemode,
98  const char * const profilename,
99  const med_switch_mode switchmode,
100  const med_int dimselect,
101  const med_filter * const filter,
102  unsigned char* const value);
103 
105 _MEDmeshnEntity(const med_idt fid,
106  const char * const meshname,
107  const med_int numdt,
108  const med_int numit,
109  const med_entity_type entitype,
110  const med_geometry_type geotype,
111  const med_data_type datatype,
112  const med_connectivity_mode cmode,
113  const med_storage_mode storagemode,
114  char * const profilename,
115  med_int * const profilesize,
116  med_bool * const changement,
117  med_bool * const transformation );
118 
119 /*fin routines internes */
120 
121 /*FIELD*/
122 
123 #include "medfield.h"
124 
125 /*routines internes*/
126 
129  const char * const fieldname,
130  med_size * const ncpst,
131  med_bool checkmultiplemesh, med_bool * const multiplemesh,
132  med_bool checkmeshname, med_bool * const samedefaultmeshname);
133 
135 _MEDfieldnValue(const med_idt fid, const char * const fieldname,const med_int numdt,const med_int numit,
136  const med_entity_type entitype, const med_geometry_type geotype,
137  char * const profilename, const int profileit,
138  const med_storage_mode storagemode,med_int * const profilesize,
139  char * const localizationname, med_int * const nintegrationpoint);
140 
142 _MEDfield23nValue(const med_idt fid, const char * const fieldname,const med_int numdt,const med_int numit,
143  const med_entity_type entitype, const med_geometry_type geotype, const char * const meshname,
144  char * const profilename, const int profileit,
145  const med_storage_mode storagemode,med_int * const profilesize,
146  char * const localizationname, med_int * const nintegrationpoint);
147 
148 /*fin routines internes */
149 
150 /* Family */
151 #include "medfamily.h"
152 
153 /* Equivalence */
154 #include "medequivalence.h"
155 
156 /* Joints */
157 #include "medsubdomain.h"
158 
159 /* Profile */
160 
161 #include "medprofile.h"
162 
163 /* Filter */
164 #include "medfilter.h"
165 
166 /* Localization */
167 #include "medlocalization.h"
168 
169 /* Link */
170 #include "medlink.h"
171 
172 /* Struct Elements */
173 
175 MEDstructElementCr(const med_idt fid,
176  const char* const modelname,
177  const med_int modeldim,
178  const char* const supportmeshname,
179  const med_entity_type sentitytype,
180  const med_geometry_type sgeotype
181  );
182 
184 MEDnStructElement(const med_idt fid);
185 
188  const char* const modelname,
189  const char* const constattname,
190  const med_attribute_type constatttype,
191  const med_int ncomponent,
192  const med_entity_type sentitytype,
193  const char* const profilename,
194  const void* const value
195  );
196 
199  const char* const modelname,
200  const char* const constattname,
201  const med_attribute_type constatttype,
202  const med_int ncomponent,
203  const med_entity_type sentitytype,
204  const void* const value
205  );
206 
209  const char * const modelname,
210  med_geometry_type * const mgeotype,
211  med_int* const modeldim,
212  char* const supportmeshname,
213  med_entity_type* const sentitytype,
214  med_int* const snnode,
215  med_int* const sncell,
216  med_geometry_type* const sgeotype,
217  med_int* const nconstantatribute,
218  med_bool* const anyprofile,
219  med_int* const nvariableattribute
220  );
221 
223 MEDstructElementInfo(const med_idt fid,
224  const int mit,
225  char * const modelname,
226  med_geometry_type * const mgeotype,
227  med_int* const modeldim,
228  char* const supportmeshname,
229  med_entity_type* const sentitytype,
230  med_int* const snnode,
231  med_int* const sncell,
232  med_geometry_type* const sgeotype,
233  med_int* const nconstantattribute,
234  med_bool* const anyprofile,
235  med_int* const nvariableattribute
236  );
237 
240  const char* const modelname,
241  const char* const constattname,
242  med_attribute_type* const constatttype,
243  med_int* const ncomponent,
244  med_entity_type* const sentitytype,
245  char* const profilename,
246  med_int* const profilesize
247  );
250  const char* const modelname,
251  const int attit,
252  char* const constattname,
253  med_attribute_type* const constatttype,
254  med_int* const ncomponent,
255  med_entity_type* const sentitytype,
256  char* const profilename,
257  med_int* const profilesize
258  );
259 
262  const char* const modelname,
263  const char* const constattname,
264  void* const value
265  );
266 
267 MEDC_EXPORT int
269 
272  const char* const modelname,
273  const char* const varattname,
274  const med_attribute_type varatttype,
275  const med_int ncomponent
276  );
277 
280  const char* const modelname,
281  const char* const varattname,
282  med_attribute_type* const varatttype,
283  med_int* const ncomponent
284  );
285 
288  const char* const modelname,
289  const int attit,
290  char* const varattname,
291  med_attribute_type* const varatttype,
292  med_int* const ncomponent
293  );
294 
297  const char* const meshname,
298  const med_int numdt,
299  const med_int numit,
300  const med_geometry_type mgeotype,
301  const char* const varattname,
302  const med_int nentity,
303  const void* const value
304  );
307  const char* const meshname,
308  const med_int numdt,
309  const med_int numit,
310  const med_geometry_type mgeotype,
311  const char* const varattname,
312  void* const value
313  );
314 
316 MEDstructElementName(const med_idt fid,
317  const med_geometry_type mgeotype,
318  char * const modelname);
319 
320 
323  const char * const modelname);
324 
325 /* Maillages support aux modèles d'éléments de structure */
326 
328 MEDsupportMeshCr(const med_idt fid,
329  const char* const supportmeshname,
330  const med_int spacedim,
331  const med_int meshdim,
332  const char* const description,
333  const med_axis_type axistype,
334  const char* const axisname,
335  const char* const axisunit
336  );
337 
338 
339 
342  const char * const supportmeshname,
343  med_int * const spacedim,
344  med_int * const meshdim,
345  char * const description,
346  med_axis_type * const axistype,
347  char * const axisname,
348  char * const axisunit);
349 
351 MEDsupportMeshInfo(const med_idt fid,
352  const int meshit,
353  char * const supportmeshname,
354  med_int * const spacedim,
355  med_int * const meshdim,
356  char * const description,
357  med_axis_type * const axistype,
358  char * const axisname,
359  char * const axisunit);
360 
362 MEDnSupportMesh(const med_idt fid);
363 
365 MEDsupportMeshnAxis(const med_idt fid, const int meshit);
366 
368 MEDsupportMeshnAxisByName(const med_idt fid, const char * const meshname);
369 
370 
373  const char* const meshname,
374  char * const usedpath,
375  med_bool * const isasupportmesh
376  );
377 
378 
379 /* Variables scalaires */
380 
381 #include "medparameter.h"
382 
383 /* Fonctions d'interpolation */
384 
385 #include "medinterp.h"
386 
387 
388 #ifdef __cplusplus
389 }
390 #endif
391 
392 #endif /* MED_PROTO_H */
393 
394 
395 
396 
MEDC_EXPORT med_err _MEDmeshCr(const med_idt fid, const char *const root, const char *const meshname, const med_int spacedim, const med_int meshdim, const med_mesh_type meshtype, const char *const description, const char *const dtunit, const med_sorting_type sortingtype, const med_axis_type axistype, const char *const axisname, const char *const axisunit)
med_connectivity_mode
Definition: med.h:235
MEDC_EXPORT med_int _MEDmeshnEntity(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const med_data_type datatype, const med_connectivity_mode cmode, const med_storage_mode storagemode, char *const profilename, med_int *const profilesize, med_bool *const changement, med_bool *const transformation)
herr_t med_err
Definition: med.h:310
MEDC_EXPORT med_err MEDstructElementVarAttInfoByName(const med_idt fid, const char *const modelname, const char *const varattname, med_attribute_type *const varatttype, med_int *const ncomponent)
Cette routine décrit les caractéristiques d'un attribut variable de modèle d'élément de structure à p...
MEDC_EXPORT med_int MEDnStructElement(const med_idt fid)
Cette routine renvoie le nombre de modèles d'éléments de structure.
MEDC_EXPORT med_geometry_type MEDstructElementGeotype(const med_idt fid, const char *const modelname)
Cette routine renvoie le type géométrique mgeotype associé au modèle d'éléments de structure de nom m...
#define MEDC_EXPORT
Definition: medC_win_dll.h:29
MEDC_EXPORT med_err MEDstructElementInfo(const med_idt fid, const int mit, char *const modelname, med_geometry_type *const mgeotype, med_int *const modeldim, char *const supportmeshname, med_entity_type *const sentitytype, med_int *const snnode, med_int *const sncell, med_geometry_type *const sgeotype, med_int *const nconstantattribute, med_bool *const anyprofile, med_int *const nvariableattribute)
Cette routine décrit les caractéristiques d'un modèle d'élément de structure par itération.
Filtre de sélection.
Definition: med.h:326
MEDC_EXPORT med_err MEDsupportMeshInfo(const med_idt fid, const int meshit, char *const supportmeshname, med_int *const spacedim, med_int *const meshdim, char *const description, med_axis_type *const axistype, char *const axisname, char *const axisunit)
Cette routine permet de lire les informations relatives à un maillage support dans un fichier...
MEDC_EXPORT med_int MEDsupportMeshnAxisByName(const med_idt fid, const char *const meshname)
Cette routine permet de lire dans un maillage support le nombre d'axes du repère des coordonnées des ...
med_switch_mode
Definition: med.h:89
med_data_type
Definition: med.h:142
MEDC_EXPORT med_err MEDstructElementConstAttInfo(const med_idt fid, const char *const modelname, const int attit, char *const constattname, med_attribute_type *const constatttype, med_int *const ncomponent, med_entity_type *const sentitytype, char *const profilename, med_int *const profilesize)
Cette routine décrit les caractéristiques d'un attribut constant de modèle d'élément de structure par...
MEDC_EXPORT med_idt _MEDmeshAssociatedGroupCr(const med_idt id, const char *const rootname, const char *const meshname, const med_int numdt, const med_int numit, const med_float dt, const med_bool justopen, const char *const datagroupname)
hsize_t med_size
Definition: med.h:307
double med_float
Definition: med.h:314
med_mesh_type
Definition: med.h:124
MEDC_EXPORT med_err MEDstructElementVarAttInfo(const med_idt fid, const char *const modelname, const int attit, char *const varattname, med_attribute_type *const varatttype, med_int *const ncomponent)
Cette routine décrit les caractéristiques d'un attribut variable de modèle d'élément de structure par...
MEDC_EXPORT med_err MEDsupportMeshInfoByName(const med_idt fid, const char *const supportmeshname, med_int *const spacedim, med_int *const meshdim, char *const description, med_axis_type *const axistype, char *const axisname, char *const axisunit)
Cette routine permet de lire les informations relatives à un maillage support en précisant son nom...
MEDC_EXPORT med_err MEDstructElementInfoByName(const med_idt fid, const char *const modelname, med_geometry_type *const mgeotype, med_int *const modeldim, char *const supportmeshname, med_entity_type *const sentitytype, med_int *const snnode, med_int *const sncell, med_geometry_type *const sgeotype, med_int *const nconstantatribute, med_bool *const anyprofile, med_int *const nvariableattribute)
Cette routine décrit les caractéristiques d'un modèle d'élément de structure à partir de son nom...
MEDC_EXPORT med_idt _MEDmeshDatagroupOpen(const med_idt fid, const char *const meshname, char *const usedpath, med_bool *const isasupportmesh)
MEDC_EXPORT med_err _MEDmeshAdvancedRd(const med_idt fid, const char *const meshname, const med_data_type meddatatype, const char *const datasetname, const med_internal_type datatype, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const med_connectivity_mode cmode, const med_storage_mode storagemode, const char *const profilename, const med_switch_mode switchmode, const med_int dimselect, const med_filter *const filter, unsigned char *const value)
med_sorting_type
Definition: med.h:289
MEDC_EXPORT med_err _MEDfieldComputingStepCheck236(med_idt fid, const char *const fieldname, med_size *const ncpst, med_bool checkmultiplemesh, med_bool *const multiplemesh, med_bool checkmeshname, med_bool *const samedefaultmeshname)
med_entity_type
Definition: med.h:136
MEDC_EXPORT med_err MEDstructElementConstAttInfoByName(const med_idt fid, const char *const modelname, const char *const constattname, med_attribute_type *const constatttype, med_int *const ncomponent, med_entity_type *const sentitytype, char *const profilename, med_int *const profilesize)
Cette routine décrit les caractéristiques d'un attribut constant de modèle d'élément de structure à p...
int med_int
Definition: med.h:316
med_axis_type
Definition: med.h:238
MEDC_EXPORT med_err MEDstructElementConstAttWithProfileWr(const med_idt fid, const char *const modelname, const char *const constattname, const med_attribute_type constatttype, const med_int ncomponent, const med_entity_type sentitytype, const char *const profilename, const void *const value)
Cette routine définit un attribut caractéristique constant d'un modèle d'éléments de structure...
MEDC_EXPORT med_err MEDmeshStructElementVarAttRd(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_geometry_type mgeotype, const char *const varattname, void *const value)
Cette routine lit les valeurs d'un attribut caractéristique variable sur les éléments de structure d'...
MEDC_EXPORT int MEDstructElementAttSizeof(med_attribute_type atttype)
Cette routine renvoie la taille en octets du type élémentaire atttype.
MEDC_EXPORT med_err _MEDmeshInfoByName(const med_idt fid, const char *const root, const char *const meshname, med_int *const spacedim, med_int *const meshdim, med_mesh_type *const meshtype, char *const description, char *const dtunit, med_sorting_type *const sortingtype, med_int *const nstep, med_axis_type *const axistype, char *const axisname, char *const axisunit)
MEDC_EXPORT med_geometry_type MEDstructElementCr(const med_idt fid, const char *const modelname, const med_int modeldim, const char *const supportmeshname, const med_entity_type sentitytype, const med_geometry_type sgeotype)
Cette routine permet de créer un nouveau modèle d'éléments de structure dans un fichier MED...
MEDC_EXPORT med_int MEDnSupportMesh(const med_idt fid)
Cette routine permet de lire le nombre de maillages support dans un fichier.
MEDC_EXPORT med_err MEDstructElementConstAttWr(const med_idt fid, const char *const modelname, const char *const constattname, const med_attribute_type constatttype, const med_int ncomponent, const med_entity_type sentitytype, const void *const value)
Cette routine définit un attribut caractéristique constant d'un modèle d'éléments de structure...
med_storage_mode
Definition: med.h:101
MEDC_EXPORT med_err MEDmeshStructElementVarAttWr(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_geometry_type mgeotype, const char *const varattname, const med_int nentity, const void *const value)
Cette routine écrit les valeurs d'un attribut caractéristique variable sur les éléments de structure ...
MEDC_EXPORT med_err MEDstructElementConstAttRd(const med_idt fid, const char *const modelname, const char *const constattname, void *const value)
Cette routine lit la valeur d'un attribut caractéristique constant d'un modèle d'éléments de structur...
MEDC_EXPORT med_int _MEDfieldnValue(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, char *const profilename, const int profileit, const med_storage_mode storagemode, med_int *const profilesize, char *const localizationname, med_int *const nintegrationpoint)
MEDC_EXPORT med_err MEDstructElementName(const med_idt fid, const med_geometry_type mgeotype, char *const modelname)
Cette routine renvoie le nom du modèle d'éléments de structure associé au type mgeotype.
MEDC_EXPORT med_err MEDsupportMeshCr(const med_idt fid, const char *const supportmeshname, const med_int spacedim, const med_int meshdim, const char *const description, const med_axis_type axistype, const char *const axisname, const char *const axisunit)
Cette routine permet de créer un maillage support.
hid_t med_idt
Definition: med.h:309
MEDC_EXPORT med_err _MEDmeshAdvancedWr(const med_idt fid, const char *const meshname, const med_data_type meddatatype, const char *const datasetname, const med_internal_type datatype, const med_int numdt, const med_int numit, const med_float dt, const med_entity_type entitype, const med_geometry_type geotype, const med_connectivity_mode cmode, const med_storage_mode storagemode, const char *const profilename, const med_switch_mode switchmode, const med_int dimselect, const med_filter *const filter, const med_int nentity, const void *const value)
med_internal_type
Definition: med.h:149
MEDC_EXPORT med_err MEDstructElementVarAttCr(const med_idt fid, const char *const modelname, const char *const varattname, const med_attribute_type varatttype, const med_int ncomponent)
Cette routine déclare la présence d'un attribut caractéristique variable attaché aux éléments de type...
med_bool
Definition: med.h:240
MEDC_EXPORT med_int _MEDfield23nValue(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const char *const meshname, char *const profilename, const int profileit, const med_storage_mode storagemode, med_int *const profilesize, char *const localizationname, med_int *const nintegrationpoint)
int med_geometry_type
Definition: med.h:179
med_attribute_type
Definition: med.h:158
MEDC_EXPORT med_int MEDsupportMeshnAxis(const med_idt fid, const int meshit)
Cette routine permet de lire dans un maillage support le nombre d'axes du repère des coordonnées des ...