Aller à la documentation de ce fichier.
30 int main (
int argc,
char **argv) {
32 const char meshname[
MED_NAME_SIZE+1] =
"3D Unstructured Mesh With 2 polyhedrons";
60 const med_int connectivity[26+32] = {
63 1, 12 , 5 , 6 , 11, 2,
69 3, 13 , 7 , 8 , 15, 4,
71 4, 15 , 8 , 16 , 5, 10,
73 5, 16 , 8 , 7 , 14, 6,
80 const med_int nodeindex[6+7+1] = { 1, 6, 12, 17, 20, 23,
81 27, 33, 36, 42, 47, 53, 56, 59};
84 const med_int nodeindexSize = 6+7+1;
88 const med_int faceindex[3] = {1,7,14};
89 const med_int faceindexSize = 3;
96 MESSAGE(
"ERROR : file creation ...");
102 "A 3D unstructured mesh : 2 polyhedrons") < 0) {
103 MESSAGE(
"ERROR : write file description ...");
108 if (
MEDmeshCr(fid, meshname, spacedim, meshdim,
112 MESSAGE(
"ERROR : mesh creation ...");
122 MESSAGE(
"ERROR : nodes coordinates ...");
130 faceindexSize, faceindex,
131 nodeindexSize, nodeindex,
133 MESSAGE(
"ERROR : polyhedron connectivity ...");
138 if (
MEDfamilyCr(fid, meshname,
"", 0, 0,
"") < 0) {
139 MESSAGE(
"ERROR : family 0 creation ...");
145 MESSAGE(
"ERROR : close file ...");
MEDC_EXPORT med_err MEDmeshPolyhedronWr(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_connectivity_mode cmode, const med_int faceindexsize, const med_int *const faceindex, const med_int nodeindexsize, const med_int *const nodeindex, const med_int *const connectivity)
Cette routine permet l'écriture dans un maillage des connectivités de polyèdres.
MEDC_EXPORT med_err MEDfileClose(med_idt fid)
Fermeture d'un fichier MED.
MEDC_EXPORT med_err MEDfamilyCr(const med_idt fid, const char *const meshname, const char *const familyname, const med_int familynumber, const med_int ngroup, const char *const groupname)
Cette routine permet la création d'une famille portant sur les entités d'un maillage.
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.
int main(int argc, char **argv)
MEDC_EXPORT med_err MEDfileCommentWr(const med_idt fid, const char *const comment)
Ecriture d'un descripteur dans un fichier MED.
MEDC_EXPORT med_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture d'un fichier MED.
MEDC_EXPORT med_err MEDmeshNodeCoordinateWr(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_float dt, const med_switch_mode switchmode, const med_int nentity, const med_float *const coordinates)
Cette routine permet d'écrire dans un maillage le tableau des coordonnées des noeuds,...