Aller à la documentation de ce fichier.
25 #define MODE_ACCES MED_ACC_RDWR
27 #define MODE_ACCES MED_ACC_RDEXT
29 #define MODE_ACCES MED_ACC_CREAT
32 int main (
int argc,
char **argv)
39 const char _elementname1[]=
"MED_BILLE";
50 const med_int _varatrvalue1_1[3]={ 22 , 24, 25 };
61 {
"*--------------------------------1-----------------------------*"
62 "*--------------------------------2-----------------------------*"
63 "*--------------------------------3-----------------------------*"
66 const char _meshname[]=
"maa1";
70 strcat(_axisname,
"x ");
71 strcat(_axisname,
"y ");
72 strcat(_axisname,
"z ");
73 strcat(_axisunit,
"cm ");
74 strcat(_axisunit,
"cm ");
75 strcat(_axisunit,
"cm ");
78 const med_int _con[3]={ 2, 4 ,5};
84 MESSAGE(
"Erreur à l'ouverture du fichier current.med");
92 MESSAGE(
"Erreur a la creation du maillage maa1");
102 MESSAGE(
"Impossible d'ecrire la connectivité des billes: ");
132 fprintf(stderr,
"Erreur a la creation du pas de temps du maillage %s\n",_meshname);
MEDC_EXPORT med_err MEDmeshCr(const med_idt fid, 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)
Cette routine permet de créer un maillage dans un fichier.
MEDC_EXPORT med_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture d'un fichier MED.
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 MEDmeshComputationStepCr(const med_idt fid, const char *const meshname, const med_int numdt1, const med_int numit1, const med_int numdt2, const med_int numit2, const med_float dt2)
Cette routine permet de créer une nouvelle étape de calcul dans un maillage.
int main(int argc, char **argv)
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 MEDmeshElementConnectivityWr(const med_idt fid, const char *const meshname, 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_switch_mode switchmode, const med_int nentity, const med_int *const connectivity)
Cette routine permet d'écrire dans un maillage le tableau des connectivités pour un type géométrique ...