Aller à la documentation de ce fichier.
30 int main (
int argc,
char **argv) {
41 const med_float part_speed1[3*3] = { 1.1, 2.2, 3.3,
50 MESSAGE(
"ERROR : file creation ...");
55 if (
MEDlinkWr(fid,meshname,
"./UsesCase_MEDstructElement_1.med") < 0) {
56 MESSAGE(
"ERROR : create mesh link ...");
64 MESSAGE(
"ERROR : file mounting ...");
80 ncomponent, componentname, componentunit,
81 "ms", meshname) < 0) {
82 MESSAGE(
"ERROR : create field");
89 npart, (
unsigned char*) part_speed1) < 0) {
90 MESSAGE(
"ERROR : write field values on MED_PARTICLE ");
95 MESSAGE(
"ERROR : file unmounting ...");
104 MESSAGE(
"ERROR : close file ...");
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.
int main(int argc, char **argv)
MEDC_EXPORT med_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture d'un fichier MED.
#define MED_PARTICLE_NAME
MEDC_EXPORT med_err MEDfileObjectsUnmount(const med_idt fid, const med_idt mid, const med_class medclass)
Une fois le démontage effectué, les données précédemment montées ne sont plus accessibles.
#define MED_NO_LOCALIZATION
MEDC_EXPORT med_err MEDlinkWr(const med_idt fid, const char *const meshname, const char *const link)
Cette routine permet d'écrire un lien dans un fichier MED.
MEDC_EXPORT med_idt MEDfileObjectsMount(const med_idt fid, const char *const filename, const med_class medclass)
Cette routine permet de monter dans le fichier courant un type de données (exemples les maillages,...
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...
MEDC_EXPORT med_err MEDfileClose(med_idt fid)
Fermeture d'un fichier MED.
#define MED_ALL_CONSTITUENT
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...