MED fichier
medfield.h
Aller à la documentation de ce fichier.
1/* This file is part of MED.
2 *
3 * COPYRIGHT (C) 1999 - 2020 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_MEDFIELD_H
19#define MED_MEDFIELD_H
20
21#include "medC_win_dll.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27/* Interface de l'API MED */
29MEDfieldCr( const med_idt fid,
30 const char * const fieldname,
31 const med_field_type fieldtype,
32 const med_int ncomponent,
33 const char * const componentname,
34 const char * const componentunit,
35 const char * const dtunit,
36 const char * const meshname);
37
40 const char * const fieldname,
41 const med_int numdt,
42 const med_int numit,
43 const med_float dt,
44 const med_entity_type entitype,
45 const med_geometry_type geotype,
46 const char * const localizationname,
47 const med_filter * const filter,
48 const unsigned char * const value);
49
52 const char * const fieldname,
53 const med_int numdt,
54 const med_int numit,
55 const med_float dt,
56 const med_entity_type entitype,
57 const med_geometry_type geotype,
58 const med_storage_mode storagemode,
59 const char * const profilename,
60 const char * const localizationname,
61 const med_switch_mode switchmode,
62 const med_int componentselect,
63 const med_int nentity,
64 const unsigned char * const value);
65
67MEDfieldValueWr(const med_idt fid,
68 const char * const fieldname,
69 const med_int numdt,
70 const med_int numit,
71 const med_float dt,
72 const med_entity_type entitype,
73 const med_geometry_type geotype,
74 const med_switch_mode switchmode,
75 const med_int componentselect,
76 const med_int nentity,
77 const unsigned char * const value);
78
81 const char * const fieldname,
82 const med_int numdt,
83 const med_int numit,
84 const med_entity_type entitype,
85 const med_geometry_type geotype,
86 const med_filter * const filter,
87 unsigned char * const value);
90 const char * const fieldname,
91 const med_int numdt,
92 const med_int numit,
93 const med_entity_type entitype,
94 const med_geometry_type geotype,
95 const med_storage_mode storagemode,
96 const char * const profilename,
97 const med_switch_mode switchmode,
98 const med_int componentselect,
99 unsigned char * const value);
100
103 const char * const fieldname,
104 const med_int numdt,
105 const med_int numit,
106 const med_entity_type entitype,
107 const med_geometry_type geotype,
108 const char * const meshname,
109 const med_storage_mode storagemode,
110 const char * const profilename,
111 const med_switch_mode switchmode,
112 const med_int componentselect,
113 unsigned char * const value);
115MEDfieldValueRd(const med_idt fid,
116 const char * const fieldname,
117 const med_int numdt,
118 const med_int numit,
119 const med_entity_type entitype,
120 const med_geometry_type geotype,
121 const med_switch_mode switchmode,
122 const med_int componentselect,
123 unsigned char * const value);
124
127 const char * const fieldname);
128
131 const int ind);
132
134MEDnField(const med_idt fid);
135
137MEDfieldInfo(const med_idt fid,
138 const int ind,
139 char * const fieldname,
140 char * const meshname,
141 med_bool * const localmesh,
142 med_field_type * const fieldtype,
143 char * const componentname,
144 char * const componentunit,
145 char * const dtunit,
146 med_int * const ncstp);
147
150 const char * const fieldname,
151 const int csit,
152 med_int * const numdt,
153 med_int * const numit,
154 med_float * const dt);
155
158 const char * const fieldname,
159 const int csit,
160 med_int * const numdt,
161 med_int * const numit,
162 med_float * const dt,
163 med_int * const meshnumdt,
164 med_int * const meshnumit);
165
168 const char * const fieldname,
169 const int csit,
170 med_int * const numdt,
171 med_int * const numit,
172 med_float * const dt,
173 med_int * const nmesh,
174 char * const meshname,
175 med_bool * const localmesh,
176 med_int * const meshnumdt,
177 med_int * const meshnumit);
178
181 const char * const fieldname,
182 const med_int numdt,
183 const med_int numit,
184 const med_int meshnumdt,
185 const med_int meshnumit);
186
189 const char * const fieldname,
190 char * const meshname,
191 med_bool * const localmesh,
192 med_field_type * const fieldtype,
193 char * const componentname,
194 char * const componentunit,
195 char * const dtunit,
196 med_int * const ncstp);
197
200 const char * const fieldname,
201 const med_int numdt,
202 const med_int numit,
203 const med_entity_type entitype,
204 const med_geometry_type geotype,
205 const char * const profilename,
206 const med_storage_mode storagemode,
207 med_int * const profilesize,
208 char * const localizationname,
209 med_int * const nintegrationpoint);
210
213 const char * const fieldname,
214 const med_int numdt,
215 const med_int numit,
216 const med_entity_type entitype,
217 const med_geometry_type geotype,
218 const int profileit,
219 const med_storage_mode storagemode,
220 char * const profilename ,
221 med_int * const profilesize,
222 char * const localizationname,
223 med_int * const nintegrationpoint);
224
226MEDfieldnValue(const med_idt fid,
227 const char * const fieldname,
228 const med_int numdt,const med_int numit,
229 const med_entity_type entitype,
230 const med_geometry_type geotype);
231
234 const char * const fieldname,
235 const med_int numdt,
236 const med_int numit,
237 const med_entity_type entitype,
238 const med_geometry_type geotype,
239 const char * const meshname,
240 const int profileit,
241 const med_storage_mode storagemode,
242 char * const profilename,
243 med_int * const profilesize,
244 char * const localizationname,
245 med_int * const nintegrationpoint);
246
248MEDfieldnProfile(const med_idt fid,
249 const char * const fieldname,
250 const med_int numdt,
251 const med_int numit,
252 const med_entity_type enttype,
253 const med_geometry_type geotype,
254 char * const defaultprofilename,
255 char * const defaultlocalizationname);
256
259 const char * const fieldname,
260 const med_int numdt,
261 const med_int numit,
262 const med_entity_type entitype,
263 const med_geometry_type geotype,
264 const int meshit,
265 char * const meshname,
266 char * const defaultprofilename,
267 char * const defaultlocalizationname);
268
269
271MEDfieldInterpWr(const med_idt fid,
272 const char * const fieldname,
273 const char * const interpname);
274
276MEDfieldnInterp(const med_idt fid,
277 const char * const fieldname);
278
279
282 const char * const fieldname,
283 const int interpit,
284 char * const interpname
285 );
286
289 const char * const fieldname,
290 const med_int numdt,
291 const med_int numit );
292
295 const char * const fieldname,
296 const med_int numdt,
297 const med_int numit,
298 med_entity_type * const entitytypes,
299 med_int * const usedbyncs );
300
303 const char * const fieldname,
304 const med_int numdt,
305 const med_int numit ,
306 const med_entity_type entitytype);
307
308
311 const char * const fieldname,
312 const med_int numdt,
313 const med_int numit,
314 const med_entity_type entitytype,
315 med_geometry_type * const geometrytypes,
316 med_int * const usedbyncs );
317
318
319#ifdef __cplusplus
320}
321#endif
322
323#endif /* MED_MEDFIELD_H */
324
MEDC_EXPORT med_int MEDfieldnComponentByName(const med_idt fid, const char *const fieldname)
Cette fonction lit le nombre de composantes d'un champ (accès direct à partir du nom du champ).
MEDC_EXPORT med_err MEDfieldGeometryType(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, const med_entity_type entitytype, med_geometry_type *const geometrytypes, med_int *const usedbyncs)
Cette fonction retourne la liste des types géométrique présents dans un champ (med_geometry_type) pou...
MEDC_EXPORT med_int MEDnField(const med_idt fid)
Cette fonction permet de lire le nombre de champs dans un fichier.
Definition: MEDnField.c:35
MEDC_EXPORT med_err MEDfieldEntityType(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, med_entity_type *const entitytypes, med_int *const usedbyncs)
Cette fonction retourne la liste des types d'entité présents dans un champ (med_entity_type).
MEDC_EXPORT med_err MEDfieldInterpInfo(const med_idt fid, const char *const fieldname, const int interpit, char *const interpname)
Cette routine indique le nom interpname de la interpit ème fonction d'interpolation associées au cham...
MEDC_EXPORT med_err MEDfieldValueRd(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 med_switch_mode switchmode, const med_int componentselect, unsigned char *const value)
Cette fonction permet de lire les valeurs d'un champ définies sur des entités d'un maillage pour une ...
MEDC_EXPORT med_err MEDfieldComputingStepMeshInfo(const med_idt fid, const char *const fieldname, const int csit, med_int *const numdt, med_int *const numit, med_float *const dt, med_int *const meshnumdt, med_int *const meshnumit)
Cette fonction permet de lire les informations caractérisant une étape de calcul : numéro de pas de t...
MEDC_EXPORT med_int MEDfieldnEntityType(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit)
Cette fonction indique le nombre de types d'entité présents dans un champ (med_entity_type).
MEDC_EXPORT med_err MEDfieldValueAdvancedRd(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 med_filter *const filter, unsigned char *const value)
Cette fonction permet de lire les valeurs d'un champ définies sur des entités d'un maillage pour une ...
MEDC_EXPORT med_err MEDfieldComputingStepInfo(const med_idt fid, const char *const fieldname, const int csit, med_int *const numdt, med_int *const numit, med_float *const dt)
Cette fonction permet de lire les informations caractérisant une étape de calcul : numéro de pas de t...
MEDC_EXPORT med_err MEDfieldInterpWr(const med_idt fid, const char *const fieldname, const char *const interpname)
Cette routine associe une fonction d'interpolation interpname au champ résultat fieldname.
MEDC_EXPORT med_err MEDfieldValueWithProfileRd(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 med_storage_mode storagemode, const char *const profilename, const med_switch_mode switchmode, const med_int componentselect, unsigned char *const value)
Cette fonction permet de lire les valeurs d'un champ définies sur des entités d'un maillage pour une ...
MEDC_EXPORT med_err MEDfieldCr(const med_idt fid, const char *const fieldname, const med_field_type fieldtype, const med_int ncomponent, const char *const componentname, const char *const componentunit, const char *const dtunit, const char *const meshname)
Cette fonction crée un champ dans un fichier.
Definition: MEDfieldCr.c:44
MEDC_EXPORT med_err MEDfieldInfoByName(const med_idt fid, const char *const fieldname, char *const meshname, med_bool *const localmesh, med_field_type *const fieldtype, char *const componentname, char *const componentunit, char *const dtunit, med_int *const ncstp)
Cette fonction permet de lire les informations concernant le champ de nom fieldname.
MEDC_EXPORT med_err MEDfieldValueAdvancedWr(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, const med_float dt, const med_entity_type entitype, const med_geometry_type geotype, const char *const localizationname, const med_filter *const filter, const unsigned char *const value)
Cette fonction permet d'écire les valeurs d'un champ définies sur des entités d'un maillage pour une ...
MEDC_EXPORT med_int MEDfieldnValueWithProfile(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 int profileit, const med_storage_mode storagemode, char *const profilename, med_int *const profilesize, char *const localizationname, med_int *const nintegrationpoint)
Cette fonction permet de lire le nombre de valeurs à lire dans un champ pour une étape de calcul,...
MEDC_EXPORT med_err MEDfieldComputingStepMeshWr(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, const med_int meshnumdt, const med_int meshnumit)
Cette fonction permet de définir l'étape de calcul ( meshnumdit , meshnumit ) à utiliser pour le mail...
MEDC_EXPORT med_int MEDfield23nProfile(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 int meshit, char *const meshname, char *const defaultprofilename, char *const defaultlocalizationname)
Cette fonction permet de lire le nombre de profils référencés dans un champ pour une étape de calcul,...
MEDC_EXPORT med_int MEDfield23nValueWithProfile(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, const int profileit, const med_storage_mode storagemode, char *const profilename, med_int *const profilesize, char *const localizationname, med_int *const nintegrationpoint)
Cette fonction permet de lire le nombre de valeurs à lire dans un champ pour une étape de calcul,...
MEDC_EXPORT med_err MEDfield23ValueWithProfileRd(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, const med_storage_mode storagemode, const char *const profilename, const med_switch_mode switchmode, const med_int componentselect, unsigned char *const value)
Cette fonction permet de lire les valeurs d'un champ définies sur des entités d'un maillage pour une ...
MEDC_EXPORT med_int MEDfieldnProfile(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, const med_entity_type enttype, const med_geometry_type geotype, char *const defaultprofilename, char *const defaultlocalizationname)
Cette fonction permet de lire le nombre de profils référencés dans un champ pour une étape de calcul,...
MEDC_EXPORT med_int MEDfieldnComponent(const med_idt fid, const int ind)
Cette fonction lit le nombre de composantes d'un champ.
MEDC_EXPORT med_err MEDfield23ComputingStepMeshInfo(const med_idt fid, const char *const fieldname, const int csit, med_int *const numdt, med_int *const numit, med_float *const dt, med_int *const nmesh, char *const meshname, med_bool *const localmesh, med_int *const meshnumdt, med_int *const meshnumit)
Cette fonction permet de lire les informations caractérisant une étape de calcul : numéro de pas de t...
MEDC_EXPORT med_err MEDfieldValueWithProfileWr(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, const med_float dt, const med_entity_type entitype, const med_geometry_type geotype, const med_storage_mode storagemode, const char *const profilename, const char *const localizationname, const med_switch_mode switchmode, const med_int componentselect, const med_int nentity, const unsigned char *const value)
Cette fonction permet d'écrire les valeurs d'un champ définies sur des entités d'un maillage pour une...
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)
Cette fonction permet de lire le nombre de valeurs dans un champ pour une étape de calcul,...
MEDC_EXPORT med_int MEDfieldnValueWithProfileByName(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 profilename, const med_storage_mode storagemode, med_int *const profilesize, char *const localizationname, med_int *const nintegrationpoint)
Cette fonction permet de lire le nombre de valeurs à lire dans un champ pour une étape de calcul,...
MEDC_EXPORT med_int MEDfieldnGeometryType(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, const med_entity_type entitytype)
Cette fonction indique le nombre de types géométriques (med_geometry_type) présents dans le champ fie...
MEDC_EXPORT med_err MEDfieldInfo(const med_idt fid, const int ind, char *const fieldname, char *const meshname, med_bool *const localmesh, med_field_type *const fieldtype, char *const componentname, char *const componentunit, char *const dtunit, med_int *const ncstp)
Cette fonction permet de lire les informations concernant le champ d'indice ind .
Definition: MEDfieldInfo.c:42
MEDC_EXPORT med_err MEDfieldValueWr(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, const med_float dt, const med_entity_type entitype, const med_geometry_type geotype, const med_switch_mode switchmode, const med_int componentselect, const med_int nentity, const unsigned char *const value)
Cette fonction permet d'écrire les valeurs d'un champ définies sur des entités d'un maillage pour une...
MEDC_EXPORT med_int MEDfieldnInterp(const med_idt fid, const char *const fieldname)
Cette routine renvoie le nombre de fonctions d'interpolation associées au champ résultat fieldname.
#define MEDC_EXPORT
Definition: medC_win_dll.h:29
med_switch_mode
Definition: med.h:96
int med_geometry_type
Definition: med.h:194
med_bool
Definition: med.h:260
med_storage_mode
Definition: med.h:108
med_field_type
Definition: med.h:165
int med_int
Definition: med.h:333
med_entity_type
Definition: med.h:143
double med_float
Definition: med.h:327
herr_t med_err
Definition: med.h:323
hid_t med_idt
Definition: med.h:322
Filtre de sélection.
Definition: med.h:346