Aller à la documentation de ce fichier.
31 int main (
int argc,
char **argv) {
43 const med_float tempvalue[3*1*4] = { 1.1, 2.2, 3.3, 4.4,
45 9.9, 10.1,11.11, 12.12};
46 const char localization[
MED_NAME_SIZE+1] =
"BEAM_INTEGRATION_POINTS";
47 const char localization2[
MED_NAME_SIZE+1] =
"BEAM_INTEGRATION_TRANSF";
48 const med_float elementcoordinate[3*3] = { 0.0,0.0,0.0,
51 const med_float ipointcoordinate[3*3] = { 0.0,0.0,2.5,
54 const med_float weight[4] = {1.0/4, 1.0/4, 1.0/4, 1.0/4};
55 const char beamsectionname[
MED_NAME_SIZE+1]=
"BEAM_SECTION_MESH";
57 char interpname[
MED_NAME_SIZE+1] =
"geometrical transformation";
60 const med_int nmaxcoefficient=3;
61 const med_int ncoefficient1_1 = 3;
62 const med_int const power1_1[] = {0,0,1,0,0,1};
63 const med_float const coefficient1_1[] = {1,-1,-1};
64 const med_int ncoefficient1_2 = 1;
65 const med_int const power1_2[] = {1,0};
66 const med_float const coefficient1_2[] = {1};
67 const med_int ncoefficient1_3 = 1;
68 const med_int const power1_3[] = {0,1};
69 const med_float const coefficient1_3[] = {1};
76 MESSAGE(
"ERROR : file creation ...");
81 MESSAGE(
"ERROR : file mounting ...");
86 MESSAGE(
"ERROR : file mounting ...");
91 if (
MEDlinkWr(fid,meshname,
"./UsesCase_MEDstructElement_1.med") < 0) {
92 MESSAGE(
"ERROR : create mesh link ...");
104 if (
MEDinterpCr(fid, interpname, geotype,
MED_FALSE, nvariable, maxdegree, nmaxcoefficient) < 0) {
105 MESSAGE(
"ERROR : interpolation family creation ...");
110 MESSAGE(
"ERROR : first base function creation ...");
115 MESSAGE(
"ERROR : second base function creation ...");
120 MESSAGE(
"ERROR : third base function creation ...");
129 nipoint, ipointcoordinate, weight,
131 MESSAGE(
"ERROR : create famlily of integration points ...");
137 nipoint, ipointcoordinate, weight,
138 interpname, beamsectionname) < 0) {
139 MESSAGE(
"ERROR : create famlily of integration points ...");
150 ncomponent, componentname, componentunit,
151 "ms", meshname) < 0) {
152 MESSAGE(
"ERROR : create field");
160 nbeam, (
unsigned char*) tempvalue) < 0) {
161 MESSAGE(
"ERROR : write field values on MED_BEAM ");
169 nbeam, (
unsigned char*) tempvalue) < 0) {
170 MESSAGE(
"ERROR : write field values on MED_BEAM ");
178 MESSAGE(
"ERROR : file unmounting ...");
183 MESSAGE(
"ERROR : file unmounting ...");
192 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.
MEDC_EXPORT med_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture d'un fichier MED.
MEDC_EXPORT med_err MEDinterpBaseFunctionWr(const med_idt fid, const char *const interpname, const med_int basisfuncit, const med_int ncoef, const med_int *const power, const med_float *const coefficient)
Cette routine permet l'écriture d'une fonction de base/forme de l'interpolation interpname.
MEDC_EXPORT med_err MEDinterpCr(const med_idt fid, const char *const interpname, const med_geometry_type geotype, const med_bool cellnodes, const med_int nvariable, const med_int maxdegree, const med_int nmaxcoef)
Cette routine permet de créer une nouvelle fonction d'interpolation polynômiale nommée interpname.
int main(int argc, char **argv)
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.
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...
#define MED_NO_INTERPOLATION
MEDC_EXPORT med_err MEDlocalizationWr(const med_idt fid, const char *const localizationname, const med_geometry_type geotype, const med_int spacedimension, const med_float *const elementcoordinate, const med_switch_mode switchmode, const med_int nipoint, const med_float *const ipointcoordinate, const med_float *const weight, const char *const geointerpname, const char *const ipointstructmeshname)
Cette routine permet l'écriture d'une localisation localizationname de points d'intégration dans/auto...