Aller à la documentation de ce fichier.
33 int main (
int argc,
char **argv) {
61 med_bool coordinatechangement, geotransformation;
62 med_int nseg2, *seg2connectivity;
75 MESSAGE(
"ERROR : file creation ...");
83 MESSAGE(
"ERROR : read number of support mesh ...");
88 for (i=0; i<nsmesh; i++) {
90 &axistype, axisname, axisunit) < 0 ) {
91 MESSAGE(
"ERROR : read information about mesh support ...");
98 &geotransformation)) < 0) {
99 MESSAGE(
"ERROR : read number of nodes ...");
108 MESSAGE(
"ERROR : read nodes coordinates ...");
121 &geotransformation)) < 0) {
122 MESSAGE(
"ERROR : number of MED_SEG2 ...");
132 MESSAGE(
"ERROR : MED_SEG2 connectivity ...");
133 free(seg2connectivity);
137 free(seg2connectivity);
144 MESSAGE(
"ERROR : read number of struct element models ...");
153 for (i=0; i<nmodels; i++) {
155 supportmeshname, &entitype, &nnode, &ncell,
156 &geocelltype, &nconstatt, &anyprofile, nvaratt+i) < 0) {
157 MESSAGE(
"ERROR : struct element models information ...");
162 for (j=0; j<nconstatt; j++) {
164 attname, &atttype, &nattcomp, &attentitype,
165 profilename, &profilesize) < 0) {
166 MESSAGE(
"ERROR : const attribute information ...");
171 if (profilesize != 0)
179 value = (
unsigned char *) malloc(size);
183 MESSAGE(
"ERROR : const attribute value ...");
203 if (
MEDmeshInfoByName(fid, computmeshname, &spacedim, &meshdim, &meshtype, description,
204 dtunit, &sortingtype, &nstep, &axistype, axisname, unitname) < 0) {
205 MESSAGE(
"ERROR : mesh info ...");
213 for (i=0;i<nmodels;i++) {
218 &geotransformation)) < 0) {
219 MESSAGE(
"ERROR : number of MED_STRUCT_ELEMENT ...");
224 MESSAGE(
"ERROR : get element name ...");
228 for (j=0; j<*(nvaratt+i); j++) {
232 attname, &atttype, &nattcomp) < 0) {
233 MESSAGE(
"ERROR : var attribute information ...");
243 value = (
unsigned char *) malloc(size);
247 *(geotype+i), attname, value ) < 0) {
248 MESSAGE(
"ERROR : read variable attributes values ...");
268 MESSAGE(
"ERROR : file closing ...");
MEDC_EXPORT med_err MEDsupportMeshInfo(const med_idt fid, const int meshit, char *const supportmeshname, med_int *const spacedim, med_int *const meshdim, char *const description, med_axis_type *const axistype, char *const axisname, char *const axisunit)
Cette routine permet de lire les informations relatives à un maillage support dans un fichier.
MEDC_EXPORT med_int MEDmeshnEntity(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const med_data_type datatype, const med_connectivity_mode cmode, med_bool *const changement, med_bool *const transformation)
Cette routine permet de lire le nombre d'entités dans un maillage pour une étape de calcul donnée.
MEDC_EXPORT med_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture d'un fichier MED.
int main(int argc, char **argv)
MEDC_EXPORT med_err MEDstructElementName(const med_idt fid, const med_geometry_type mgeotype, char *const modelname)
Cette routine renvoie le nom du modèle d'éléments de structure associé au type mgeotype.
MEDC_EXPORT med_err MEDmeshElementConnectivityRd(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const med_connectivity_mode cmode, const med_switch_mode switchmode, med_int *const connectivity)
Cette routine permet de lire dans un maillage le tableau des connectivités pour un type géométrique d...
MEDC_EXPORT med_err MEDstructElementConstAttRd(const med_idt fid, const char *const modelname, const char *const constattname, void *const value)
Cette routine lit la valeur d'un attribut caractéristique constant d'un modèle d'éléments de structur...
MEDC_EXPORT med_int MEDnStructElement(const med_idt fid)
Cette routine renvoie le nombre de modèles d'éléments de structure.
MEDC_EXPORT med_err MEDmeshNodeCoordinateRd(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_switch_mode switchmode, med_float *const coordinates)
Cette routine permet de lire dans un maillage le tableau des coordonnées des noeuds,...
MEDC_EXPORT med_err MEDfileClose(med_idt fid)
Fermeture d'un fichier MED.
MEDC_EXPORT med_int MEDnSupportMesh(const med_idt fid)
Cette routine permet de lire le nombre de maillages support dans un fichier.
MEDC_EXPORT med_err MEDstructElementConstAttInfo(const med_idt fid, const char *const modelname, const int attit, char *const constattname, med_attribute_type *const constatttype, med_int *const ncomponent, med_entity_type *const sentitytype, char *const profilename, med_int *const profilesize)
Cette routine décrit les caractéristiques d'un attribut constant de modèle d'élément de structure par...
MEDC_EXPORT med_err MEDmeshInfoByName(const med_idt fid, const char *const meshname, med_int *const spacedim, med_int *const meshdim, med_mesh_type *const meshtype, char *const description, char *const dtunit, med_sorting_type *const sortingtype, med_int *const nstep, med_axis_type *const axistype, char *const axisname, char *const axisunit)
Cette routine permet de lire les informations relatives à un maillage en précisant son nom.
MEDC_EXPORT med_err MEDstructElementInfo(const med_idt fid, const int mit, char *const modelname, med_geometry_type *const mgeotype, med_int *const modeldim, char *const supportmeshname, med_entity_type *const sentitytype, med_int *const snnode, med_int *const sncell, med_geometry_type *const sgeotype, med_int *const nconstantattribute, med_bool *const anyprofile, med_int *const nvariableattribute)
Cette routine décrit les caractéristiques d'un modèle d'élément de structure par itération.
MEDC_EXPORT int MEDstructElementAttSizeof(const med_attribute_type atttype)
Cette routine renvoie la taille en octets du type élémentaire atttype.
MEDC_EXPORT med_err MEDstructElementVarAttInfo(const med_idt fid, const char *const modelname, const int attit, char *const varattname, med_attribute_type *const varatttype, med_int *const ncomponent)
Cette routine décrit les caractéristiques d'un attribut variable de modèle d'élément de structure par...
MEDC_EXPORT med_err MEDmeshStructElementVarAttRd(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, void *const value)
Cette routine lit les valeurs d'un attribut caractéristique variable sur les éléments de structure d'...