Aller à la documentation de ce fichier.
28 int main (
int argc,
char **argv) {
41 med_int nconstatt, *nvaratt=NULL;
71 MESSAGE(
"ERROR : file creation ...");
80 if (
MEDmeshInfoByName(fid, computmeshname, &spacedim, &meshdim, &meshtype, description,
81 dtunit, &sortingtype, &nstep, &axistype, axisname, unitname) < 0) {
82 MESSAGE(
"ERROR : mesh info ...");
89 &geotransformation)) < 0) {
90 MESSAGE(
"ERROR : number of nodes ...");
101 for (i=0;i<nmodels;i++) {
105 MESSAGE(
"ERROR : name and type of MED_STRUCT_ELEMENT ...");
112 &geotransformation)) < 0) {
113 MESSAGE(
"ERROR : number of MED_STRUCT_ELEMENT ...");
119 supportmeshname, &entitype, &nnode, &ncell,
120 &geocelltype, &nconstatt, &anyprofile, nvaratt+i) < 0) {
121 MESSAGE(
"ERROR : struct element models information ...");
127 if (strcmp(supportmeshname,
"")) {
129 &axistype, axisname, axisunit) < 0 ) {
130 MESSAGE(
"ERROR : read information about mesh support ...");
139 &geotransformation)) < 0) {
140 MESSAGE(
"ERROR : read number of nodes ...");
151 MESSAGE(
"ERROR : read nodes coordinates ...");
163 &geotransformation)) < 0) {
164 MESSAGE(
"ERROR : number of MED_SEG2 ...");
175 MESSAGE(
"ERROR : MED_SEG2 connectivity ...");
176 free(seg2connectivity);
179 free(seg2connectivity);
185 for (j=0; j<nconstatt; j++) {
187 attname, &atttype, &nattcomp, &attentitype,
188 profilename, &profilesize) < 0) {
189 MESSAGE(
"ERROR : const attribute information ...");
196 if (profilesize != 0)
210 MESSAGE(
"ERROR : const attribute value ...");
220 for (j=0; j<*(nvaratt+i); j++) {
224 attname, &atttype, &nattcomp) < 0) {
225 MESSAGE(
"ERROR : var attribute information ...");
233 value = (
med_float *) malloc((size)*
sizeof(char));
237 *(geotype+i), attname, value ) < 0) {
238 MESSAGE(
"ERROR : read variable attributes values ...");
259 MESSAGE(
"ERROR : file closing ...");
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'...
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 MEDmeshEntityInfo(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_entity_type entitype, const int geotypeit, char *const geotypename, med_geometry_type *const geotype)
Cette routine indique de façon itérative les types géométriques disponibles dans un maillage.
int main(int argc, char **argv)
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 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 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 int MEDstructElementAttSizeof(const med_attribute_type atttype)
Cette routine renvoie la taille en octets du type élémentaire atttype.
MEDC_EXPORT med_err MEDfileClose(med_idt fid)
Fermeture d'un fichier MED.
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 MEDstructElementInfoByName(const med_idt fid, const 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 nconstantatribute, med_bool *const anyprofile, med_int *const nvariableattribute)
Cette routine décrit les caractéristiques d'un modèle d'élément de structure à partir de son nom.
MEDC_EXPORT med_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture d'un fichier MED.
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 MEDsupportMeshInfoByName(const med_idt fid, const 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 en précisant son nom.
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...