medfield.h
Aller à la documentation de ce fichier.
/* This file is part of MED.
*
* COPYRIGHT (C) 1999 - 2020 EDF R&D, CEA/DEN
* MED is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* MED is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with MED. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MED_MEDFIELD_H
#define MED_MEDFIELD_H
#include "medC_win_dll.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Interface de l'API MED */
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);
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);
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);
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);
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);
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);
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);
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);
MEDC_EXPORT med_int
MEDfieldnComponentByName(const med_idt fid,
const char * const fieldname);
MEDC_EXPORT med_int
MEDfieldnComponent(const med_idt fid,
const int ind);
MEDC_EXPORT med_int
MEDnField(const med_idt fid);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
MEDC_EXPORT med_err
MEDfieldInterpWr(const med_idt fid,
const char * const fieldname,
const char * const interpname);
MEDC_EXPORT med_int
MEDfieldnInterp(const med_idt fid,
const char * const fieldname);
MEDC_EXPORT med_err
MEDfieldInterpInfo(const med_idt fid,
const char * const fieldname,
const int interpit,
char * const interpname
);
MEDC_EXPORT med_int
MEDfieldnEntityType(const med_idt fid,
const char * const fieldname,
const med_int numdt,
const med_int numit );
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 );
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);
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 );
#ifdef __cplusplus
}
#endif
#endif /* MED_MEDFIELD_H */
med_switch_mode
med_switch_mode
Definition build.python3.12/include/med.h:96
med_geometry_type
int med_geometry_type
Definition build.python3.12/include/med.h:194
med_bool
med_bool
Definition build.python3.12/include/med.h:260
med_storage_mode
med_storage_mode
Definition build.python3.12/include/med.h:108
med_field_type
med_field_type
Definition build.python3.12/include/med.h:165
med_int
int med_int
Definition build.python3.12/include/med.h:333
med_entity_type
med_entity_type
Definition build.python3.12/include/med.h:143
med_float
double med_float
Definition build.python3.12/include/med.h:327
med_err
herr_t med_err
Definition build.python3.12/include/med.h:323
med_idt
hid_t med_idt
Definition build.python3.12/include/med.h:322
MEDfieldnComponentByName
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).
Definition MEDfieldnComponentByName.c:34
MEDfieldGeometryType
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...
Definition MEDfieldGeometryType.c:45
MEDnField
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
MEDfieldEntityType
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).
Definition MEDfieldEntityType.c:44
MEDfieldInterpInfo
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...
Definition MEDfieldInterpInfo.c:37
MEDfieldValueRd
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 ...
Definition MEDfieldValueRd.c:44
MEDfieldComputingStepMeshInfo
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...
Definition MEDfieldComputingStepMeshInfo.c:39
MEDfieldnEntityType
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).
Definition MEDfieldnEntityType.c:42
MEDfieldValueAdvancedRd
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 ...
Definition MEDfieldValueAdvancedRd.c:43
MEDfieldComputingStepInfo
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...
Definition MEDfieldComputingStepInfo.c:39
MEDfieldInterpWr
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.
Definition MEDfieldInterpWr.c:36
MEDfieldValueWithProfileRd
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 ...
Definition MEDfieldValueWithProfileRd.c:42
MEDfieldCr
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
MEDfieldInfoByName
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.
Definition MEDfieldInfoByName.c:39
MEDfieldValueAdvancedWr
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 ...
Definition MEDfieldValueAdvancedWr.c:46
MEDfieldnValueWithProfile
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,...
Definition MEDfieldnValueWithProfile.c:45
MEDfieldComputingStepMeshWr
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...
Definition MEDfieldComputingStepMeshWr.c:36
MEDfield23nProfile
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,...
Definition MEDfield23nProfile.c:41
MEDfield23nValueWithProfile
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,...
Definition MEDfield23nValueWithProfile.c:46
MEDfield23ValueWithProfileRd
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 ...
Definition MEDfield23ValueWithProfileRd.c:43
MEDfieldnProfile
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,...
Definition MEDfieldnProfile.c:40
MEDfieldnComponent
MEDC_EXPORT med_int MEDfieldnComponent(const med_idt fid, const int ind)
Cette fonction lit le nombre de composantes d'un champ.
Definition MEDfieldnComponent.c:34
MEDfield23ComputingStepMeshInfo
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...
Definition MEDfield23ComputingStepMeshInfo.c:43
MEDfieldValueWithProfileWr
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...
Definition MEDfieldValueWithProfileWr.c:48
MEDfieldnValue
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,...
Definition MEDfieldnValue.c:38
MEDfieldnValueWithProfileByName
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,...
Definition MEDfieldnValueWithProfileByName.c:44
MEDfieldnGeometryType
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...
Definition MEDfieldnGeometryType.c:43
MEDfieldInfo
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
MEDfieldValueWr
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...
Definition MEDfieldValueWr.c:44
MEDfieldnInterp
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.
Definition MEDfieldnInterp.c:35
MEDC_EXPORT
#define MEDC_EXPORT
Definition medC_win_dll.h:29
medC_win_dll.h
med_filter
Filtre de sélection.
Definition build.python3.12/include/med.h:346