ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/microstructure/src/mstruct_parametres.cpp
Revision: 974
Committed: Wed Sep 26 15:32:12 2018 UTC (6 years, 7 months ago) by couturad
File size: 234186 byte(s)
Log Message:
MICROSTRUCTURE :  Ajustement de parametres

File Contents

# User Rev Content
1 couturad 919 #include "mstruct_parametres.h"
2 couturad 968 #include "mstruct_definition.h"
3 couturad 919 #include "mstruct_generateur_rsa.h"
4 couturad 926 #include "mg_export.h"
5 couturad 919 #include <string.h>
6     #include <fstream>
7     #include <cstdlib>
8    
9    
10 couturad 951 void PARAMETRES::ini_param_generateur_rsa(OT_PARAMETRES* params, int type_inclusion)
11 couturad 919 {
12 couturad 951 params->ajouter("Type_generateur","0",OT_PARAMETRES::DOUBLE,"Type de generateur : RSA [0], DCR [1]");
13 couturad 919 params->ajouter("Nom_mgcg_modele","VES",OT_PARAMETRES::STRING,"Nom du MG_CG_MODELE");
14 couturad 951 params->ajouter("Nom_groupe_inclusion","Particule",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion (Ex: Particule)");
15 couturad 919 params->ajouter("Boite3D_distribution_Xmin","-0.1",OT_PARAMETRES::DOUBLE,"Xmin boite3D de distribution d'inclusion");
16     params->ajouter("Boite3D_distribution_Ymin","-0.1",OT_PARAMETRES::DOUBLE,"Ymin boite3D de distribution d'inclusion");
17     params->ajouter("Boite3D_distribution_Zmin","-0.1",OT_PARAMETRES::DOUBLE,"Zmin boite3D de distribution d'inclusion");
18     params->ajouter("Boite3D_distribution_Xmax","1.1",OT_PARAMETRES::DOUBLE,"Xmax boite3D de distribution d'inclusion");
19     params->ajouter("Boite3D_distribution_Ymax","1.1",OT_PARAMETRES::DOUBLE,"Ymax boite3D de distribution d'inclusion");
20     params->ajouter("Boite3D_distribution_Zmax","1.1",OT_PARAMETRES::DOUBLE,"Zmax boite3D de distribution d'inclusion");
21     params->ajouter("Nb_pas_X","20",OT_PARAMETRES::DOUBLE,"Nombre de pas selon X pout la creation d'un octree");
22     params->ajouter("Nb_pas_Y","20",OT_PARAMETRES::DOUBLE,"Nombre de pas selon Y pout la creation d'un octree");
23     params->ajouter("Nb_pas_Z","20",OT_PARAMETRES::DOUBLE,"Nombre de pas selon Z pout la creation d'un octree");
24 couturad 951 params->ajouter("Fraction_volumique_cible","0.1",OT_PARAMETRES::DOUBLE,"Fraction volumique cible d'inclusion [0.0, 1.0]");
25     params->ajouter("Eps_fraction_volumique","0.001",OT_PARAMETRES::DOUBLE,"Epsilon fraction volumique");
26     params->ajouter("Avec_intersections","1",OT_PARAMETRES::DOUBLE,"Avec ou sans intersections avec le bord du VES : Sans [0] Avec [1]");
27 couturad 968 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::SPHERE)
28 couturad 919 {
29     params->ajouter("Type_inclusion","0",OT_PARAMETRES::DOUBLE,"Type d'inclusion : Sphere [0], Cylindre [1]");
30 couturad 951 params->ajouter("Mu_rayon","0.09",OT_PARAMETRES::DOUBLE,"Moyenne du rayon de la sphere");
31 couturad 919 params->ajouter("Sigma_rayon","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du rayon de la sphere");
32 couturad 951 params->ajouter("Type_distribution_rayon","0",OT_PARAMETRES::DOUBLE,"Type de distribution du rayon : Fixe[0], Uniforme[1], Normale[2]");
33 couturad 919 }
34 couturad 968 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
35 couturad 919 {
36     params->ajouter("Type_inclusion","1",OT_PARAMETRES::DOUBLE,"Type d'inclusion : Sphere [0], Cylindre [1]");
37 couturad 926 params->ajouter("Mu_rayon","0.05",OT_PARAMETRES::DOUBLE,"Moyenne du rayon du cylindre");
38 couturad 919 params->ajouter("Sigma_rayon","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du rayon du cylindre");
39 couturad 951 params->ajouter("Type_distribution_rayon","0",OT_PARAMETRES::DOUBLE,"Type de distribution du rayon : Fixe[0], Uniforme[1], Normale[2]");
40 couturad 926 params->ajouter("Mu_longueur","0.4",OT_PARAMETRES::DOUBLE,"Moyenne de la longueur du cylindre");
41 couturad 919 params->ajouter("Sigma_longueur","0.0",OT_PARAMETRES::DOUBLE,"Ecart type de la longueur du cylindre");
42 couturad 951 params->ajouter("Type_distribution_longueur","0",OT_PARAMETRES::DOUBLE,"Type de distribution de la longueur : Fixe[0], Uniforme[1], Normale[2]");
43 couturad 929 params->ajouter("Mu_theta","0.0",OT_PARAMETRES::DOUBLE,"Moyenne de l'angle theta");
44 couturad 951 params->ajouter("Sigma_theta","1.0",OT_PARAMETRES::DOUBLE,"Ecart type de l'angle theta");
45     params->ajouter("Type_distribution_theta","1",OT_PARAMETRES::DOUBLE,"Type de distribution de l'angle theta : Fixe[0], Uniforme[1], Normale[2]");
46 couturad 929 params->ajouter("Mu_phi","0.0",OT_PARAMETRES::DOUBLE,"Moyenne de l'angle phi");
47 couturad 951 params->ajouter("Sigma_phi","1.0",OT_PARAMETRES::DOUBLE,"Ecart type de l'angle phi");
48     params->ajouter("Type_distribution_phi","1",OT_PARAMETRES::DOUBLE,"Type de distribution de l'angle phi : Fixe[0], Uniforme[1], Normale[2]");
49 couturad 919 }
50     params->ajouter("Porosite","0",OT_PARAMETRES::DOUBLE,"Considerer l'inclusion comme etant une porosite (vide) [1]");
51 couturad 951 params->ajouter("Multicouche","0,(0.01,0.01)",OT_PARAMETRES::DOUBLE,"Generer une inclusion avec une ou plusieurs couches [1,2,3,etc] et d'epaisseurs (0.01,0.02,etc)");
52 couturad 926 params->ajouter("Distance_min_inter_volume","0.04",OT_PARAMETRES::DOUBLE,"Distance minimale qui separe deux inclusions");
53     params->ajouter("Volume_min","0.0008",OT_PARAMETRES::DOUBLE,"Volume minimal admissible de l'inclusion");
54     params->ajouter("Aire_min","0.001963",OT_PARAMETRES::DOUBLE,"Aire minimal admissible d'une face de l'inclusion");
55 couturad 919 params->ajouter("Longueur_min","0.02",OT_PARAMETRES::DOUBLE,"Longueur minimal admissible d'une arete ");
56     params->ajouter("Angle_min","0.7854",OT_PARAMETRES::DOUBLE,"Angle minimal admissible entre deux faces");
57     params->ajouter("Nb_iteration_max","2000",OT_PARAMETRES::DOUBLE,"Nombre maximal d'iteration");
58     }
59    
60 couturad 951 void PARAMETRES::ini_param_generateur_dcr(OT_PARAMETRES* params, int type_inclusion)
61     {
62     params->ajouter("Type_generateur","1",OT_PARAMETRES::DOUBLE,"Type de generateur : RSA [0], DCR [1]");
63     params->ajouter("Nom_mgcg_modele","VES",OT_PARAMETRES::STRING,"Nom du MG_CG_MODELE");
64     params->ajouter("Nom_groupe_inclusion","Particule",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion (Ex: Particule)");
65     params->ajouter("Boite3D_distribution_Xmin","-0.25",OT_PARAMETRES::DOUBLE,"Xmin boite3D de distribution d'inclusion");
66     params->ajouter("Boite3D_distribution_Ymin","-0.25",OT_PARAMETRES::DOUBLE,"Ymin boite3D de distribution d'inclusion");
67     params->ajouter("Boite3D_distribution_Zmin","-0.25",OT_PARAMETRES::DOUBLE,"Zmin boite3D de distribution d'inclusion");
68     params->ajouter("Boite3D_distribution_Xmax","1.25",OT_PARAMETRES::DOUBLE,"Xmax boite3D de distribution d'inclusion");
69     params->ajouter("Boite3D_distribution_Ymax","1.25",OT_PARAMETRES::DOUBLE,"Ymax boite3D de distribution d'inclusion");
70     params->ajouter("Boite3D_distribution_Zmax","1.25",OT_PARAMETRES::DOUBLE,"Zmax boite3D de distribution d'inclusion");
71     params->ajouter("Nb_pas_X","20",OT_PARAMETRES::DOUBLE,"Nombre de pas selon X pout la creation d'un octree");
72     params->ajouter("Nb_pas_Y","20",OT_PARAMETRES::DOUBLE,"Nombre de pas selon Y pout la creation d'un octree");
73     params->ajouter("Nb_pas_Z","20",OT_PARAMETRES::DOUBLE,"Nombre de pas selon Z pout la creation d'un octree");
74     params->ajouter("Fraction_volumique_cible","0.1",OT_PARAMETRES::DOUBLE,"Fraction volumique cible d'inclusion [0.0, 1.0]");
75     params->ajouter("Eps_fraction_volumique","0.001",OT_PARAMETRES::DOUBLE,"Epsilon fraction volumique");
76     params->ajouter("Avec_intersections","1",OT_PARAMETRES::DOUBLE,"Avec ou sans intersections avec le bord du VES : Sans [0] Avec [1]");
77 couturad 960 params->ajouter("Avec_interface_graphique","0",OT_PARAMETRES::DOUBLE,"Avec l'interface graphique : Sans [0] Avec [1]");
78     params->ajouter("Facteur_reduction_vitesse","0.75",OT_PARAMETRES::DOUBLE,"Facteur de reduction de la vitesse des particules");
79     params->ajouter("Eps_vitesse","0.0001",OT_PARAMETRES::DOUBLE,"Eps vitesse");
80     params->ajouter("Friction","0.0",OT_PARAMETRES::DOUBLE,"Friction entre les particules");
81     params->ajouter("Pas_temps_sim","0.01",OT_PARAMETRES::DOUBLE,"Pas de temps pour la simulation");
82 couturad 964 params->ajouter("Temps_max_sim","60.0",OT_PARAMETRES::DOUBLE,"Temps maximal de la simulation");
83 couturad 966 params->ajouter("Avec_post_RSA","0",OT_PARAMETRES::DOUBLE,"Effectuer un RSA pour tenter de remplir les vides au bord du VES : Sans [0] Avec [1]");
84     params->ajouter("Nb_iteration_max","2000",OT_PARAMETRES::DOUBLE,"Nombre maximal d'iteration");
85 couturad 968 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::SPHERE)
86 couturad 951 {
87     params->ajouter("Type_inclusion","0",OT_PARAMETRES::DOUBLE,"Type d'inclusion : Sphere [0], Cylindre [1]");
88     params->ajouter("Mu_rayon","0.09",OT_PARAMETRES::DOUBLE,"Moyenne du rayon de la sphere");
89     params->ajouter("Sigma_rayon","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du rayon de la sphere");
90     params->ajouter("Type_distribution_rayon","0",OT_PARAMETRES::DOUBLE,"Type de distribution du rayon : Fixe[0], Uniforme[1], Normale[2]");
91     }
92 couturad 968 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
93 couturad 951 {
94     params->ajouter("Type_inclusion","1",OT_PARAMETRES::DOUBLE,"Type d'inclusion : Sphere [0], Cylindre [1]");
95     params->ajouter("Mu_rayon","0.05",OT_PARAMETRES::DOUBLE,"Moyenne du rayon du cylindre");
96     params->ajouter("Sigma_rayon","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du rayon du cylindre");
97     params->ajouter("Type_distribution_rayon","0",OT_PARAMETRES::DOUBLE,"Type de distribution du rayon : Fixe[0], Uniforme[1], Normale[2]");
98     params->ajouter("Mu_longueur","0.4",OT_PARAMETRES::DOUBLE,"Moyenne de la longueur du cylindre");
99     params->ajouter("Sigma_longueur","0.0",OT_PARAMETRES::DOUBLE,"Ecart type de la longueur du cylindre");
100     params->ajouter("Type_distribution_longueur","0",OT_PARAMETRES::DOUBLE,"Type de distribution de la longueur : Fixe[0], Uniforme[1], Normale[2]");
101     params->ajouter("Mu_theta","0.0",OT_PARAMETRES::DOUBLE,"Moyenne de l'angle theta");
102     params->ajouter("Sigma_theta","1.0",OT_PARAMETRES::DOUBLE,"Ecart type de l'angle theta");
103     params->ajouter("Type_distribution_theta","1",OT_PARAMETRES::DOUBLE,"Type de distribution de l'angle theta : Fixe[0], Uniforme[1], Normale[2]");
104     params->ajouter("Mu_phi","0.0",OT_PARAMETRES::DOUBLE,"Moyenne de l'angle phi");
105     params->ajouter("Sigma_phi","1.0",OT_PARAMETRES::DOUBLE,"Ecart type de l'angle phi");
106     params->ajouter("Type_distribution_phi","1",OT_PARAMETRES::DOUBLE,"Type de distribution de l'angle phi : Fixe[0], Uniforme[1], Normale[2]");
107     }
108     params->ajouter("Porosite","0",OT_PARAMETRES::DOUBLE,"Considerer l'inclusion comme etant une porosite (vide) [1]");
109     params->ajouter("Multicouche","0,(0.01,0.01)",OT_PARAMETRES::DOUBLE,"Generer une inclusion avec une ou plusieurs couches [1,2,3,etc] et d'epaisseurs (0.01,0.02,etc)");
110     params->ajouter("Distance_min_inter_volume","0.04",OT_PARAMETRES::DOUBLE,"Distance minimale qui separe deux inclusions");
111     params->ajouter("Volume_min","0.0008",OT_PARAMETRES::DOUBLE,"Volume minimal admissible de l'inclusion");
112     params->ajouter("Aire_min","0.001963",OT_PARAMETRES::DOUBLE,"Aire minimal admissible d'une face de l'inclusion");
113     params->ajouter("Longueur_min","0.02",OT_PARAMETRES::DOUBLE,"Longueur minimal admissible d'une arete ");
114     params->ajouter("Angle_min","0.7854",OT_PARAMETRES::DOUBLE,"Angle minimal admissible entre deux faces");
115     }
116    
117    
118 couturad 971 void PARAMETRES::ini_param_materiau(OT_PARAMETRES* params,char* nom_groupe_forme,bool etude_mecanique,bool etude_thermique)
119 couturad 919 {
120 couturad 951 params->ajouter("Nom_groupe_forme",nom_groupe_forme,OT_PARAMETRES::STRING,"Nom du groupe de forme (Ex: Particule, Matrice)");
121 couturad 971 if(etude_mecanique) params->ajouter("Etude_mecanique","1",OT_PARAMETRES::DOUBLE,"Etude mecanique");
122     else params->ajouter("Etude_mecanique","0",OT_PARAMETRES::DOUBLE,"Etude mecanique");
123 couturad 919 params->ajouter("Mu_E","69.0e9",OT_PARAMETRES::DOUBLE,"Moyenne du module d'elasticite");
124     params->ajouter("Sigma_E","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du module d'elasticite");
125 couturad 971 params->ajouter("Type_distribution_E","0",OT_PARAMETRES::DOUBLE,"Type de distribution du module d'elasticite : Fixe[0], Uniforme[1], Normale[2]");
126 couturad 919 params->ajouter("Mu_nu","0.3",OT_PARAMETRES::DOUBLE,"Moyenne du coefficient de Poisson");
127 couturad 971 params->ajouter("Sigma_nu","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du coefficient de Poisson");
128     params->ajouter("Type_distribution_nu","0",OT_PARAMETRES::DOUBLE,"Type de distribution du coefficient de Poisson : Fixe[0], Uniforme[1], Normale[2]");
129     if(etude_thermique) params->ajouter("Etude_thermique","1",OT_PARAMETRES::DOUBLE,"Etude thermique");
130     else params->ajouter("Etude_thermique","0",OT_PARAMETRES::DOUBLE,"Etude thermique");
131     params->ajouter("Mu_Lambda","0.14",OT_PARAMETRES::DOUBLE,"Moyenne de la conductivite thermique");
132     params->ajouter("Sigma_Lambda","0.0",OT_PARAMETRES::DOUBLE,"Ecart type de la conductivite thermique");
133     params->ajouter("Type_distribution_Lambda","0",OT_PARAMETRES::DOUBLE,"Type de distribution de la conductivite thermique : Fixe[0], Uniforme[1], Normale[2]");
134     params->ajouter("Mu_Ro","1.0",OT_PARAMETRES::DOUBLE,"Moyenne de la masse volumique");
135     params->ajouter("Sigma_Ro","0.0",OT_PARAMETRES::DOUBLE,"Ecart type de la masse volumique");
136     params->ajouter("Type_distribution_Ro","0",OT_PARAMETRES::DOUBLE,"Type de distribution de la masse volumique : Fixe[0], Uniforme[1], Normale[2]");
137     params->ajouter("Mu_Cp","1.0",OT_PARAMETRES::DOUBLE,"Moyenne de capacite thermique massique");
138     params->ajouter("Sigma_Cp","0.0",OT_PARAMETRES::DOUBLE,"Ecart type de la capacite thermique massique");
139     params->ajouter("Type_distribution_Cp","0",OT_PARAMETRES::DOUBLE,"Type de distribution de la capacite thermique massique : Fixe[0], Uniforme[1], Normale[2]");
140 couturad 919 }
141    
142     void PARAMETRES::ini_param_carte_taille(OT_PARAMETRES* params)
143     {
144 couturad 951 params->ajouter("Ecart_nodal","0.08",OT_PARAMETRES::DOUBLE,"Ecart nodal");
145 couturad 937 params->ajouter("Ecart_nodal_face_particule","0.04",OT_PARAMETRES::DOUBLE,"Ecart nodal des faces des particules");
146 couturad 974 params->ajouter("Nb_couche_min","2",OT_PARAMETRES::DOUBLE,"Nombre de couches entre chaque solide");
147 couturad 919 params->ajouter("Fechantillonnage","20",OT_PARAMETRES::DOUBLE,"Nombre d'échantillon par entité");
148 couturad 926 params->ajouter("Nb_cellule_direction","50",OT_PARAMETRES::DOUBLE,"Nombre de cellules de la FEM_SOLUTION dans les directions x,y,z");
149 couturad 974 params->ajouter("Nom_carte","carte",OT_PARAMETRES::STRING,"Nom de la carte de taille");
150     params->ajouter("Nom_fem_solution","solcarte",OT_PARAMETRES::STRING,"Nom de la FEM_SOLUTION");
151 couturad 919 params->ajouter("Nb_pas","32",OT_PARAMETRES::DOUBLE,"Nombre de pas de balayage");
152     params->ajouter("Facteur_augmentation","25",OT_PARAMETRES::DOUBLE,"Facteur d'augmentation de l'ecart nodal d'une cellule a l'autre");
153     }
154    
155     void PARAMETRES::ini_param_mailleur(OT_PARAMETRES* params)
156     {
157     params->ajouter("Niveau","3",OT_PARAMETRES::DOUBLE,"Niveau du maillage : 1D [1], 2D [2], 3D [3]");
158     params->ajouter("Niveau_opt_2d","5",OT_PARAMETRES::DOUBLE,"Limite supérieure des mailles à optimiser");
159 couturad 966 params->ajouter("Niveau_opt_3d","2",OT_PARAMETRES::DOUBLE,"Limite supérieure des mailles à optimiser");
160 couturad 919 params->ajouter("Priorite_metrique","0.65",OT_PARAMETRES::DOUBLE,"Valeur de la prise en compte de la métrique versus la qualité");
161     }
162    
163     void PARAMETRES::ini_param_mailleur_fem(OT_PARAMETRES* params)
164     {
165     params->ajouter("Degre","2",OT_PARAMETRES::DOUBLE,"Degre du maillage a creer");
166     params->ajouter("Analyse","0",OT_PARAMETRES::DOUBLE,"Analyse de la qualité du maillage après le maillage : Analyse [1]");
167     params->ajouter("Optimisation_num_noeud","0",OT_PARAMETRES::DOUBLE,"Optimisation de la numerotation des noeuds : Optimisation [1]");
168     }
169    
170     void PARAMETRES::ini_param_etude(OT_PARAMETRES* params, int type_etude)
171     {
172     params->ajouter("Fichier_param_aster","param_aster.txt",OT_PARAMETRES::STRING,"Nom du fichier de parametres aster");
173     params->ajouter("Type_etude",type_etude,OT_PARAMETRES::DOUBLE,"Type d'etude : Mecanique [0], Thermique [1]");
174     params->ajouter("Code_resu","11111111",OT_PARAMETRES::STRING,"Code de resolution");
175 couturad 968 if(type_etude==MSTRUCT::TYPE_ETUDE::MECANIQUE)
176 couturad 919 {
177     params->ajouter("Type_Chargement","0",OT_PARAMETRES::DOUBLE,"Type de chargement : Spherique [0], Deviatorique [1]");
178     params->ajouter("Type_CL","0",OT_PARAMETRES::DOUBLE,"Type de conditions aux limites : CLDH [0], CLCH[1]");
179     params->ajouter("Valeur_CL","0.0001",OT_PARAMETRES::DOUBLE,"Valeur de la condition aux limites");
180     }
181 couturad 971 else if(type_etude==MSTRUCT::TYPE_ETUDE::THERMIQUE)
182     {
183     params->ajouter("Type_CL","2",OT_PARAMETRES::DOUBLE,"Type de conditions aux limites : Gradient de temperature[2], Flux de chaleur[3]");
184     params->ajouter("Direction","0",OT_PARAMETRES::DOUBLE,"Direction du gradient ou flux : X[0], Y[1], Z[2]");
185     params->ajouter("Valeur_CL","1.0",OT_PARAMETRES::DOUBLE,"Valeur de la condition aux limites");
186     }
187 couturad 919 }
188    
189 couturad 971 void PARAMETRES::ini_param_post_traitement(OT_PARAMETRES* params, int type_post_traitement, int nb_couche_erosion, double epaisseur_couche_erosion)
190 couturad 919 {
191 couturad 968 bool erosion;
192 couturad 971 if(nb_couche_erosion>0) erosion=true;
193 couturad 968 else erosion=false;
194     if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP)
195 couturad 926 {
196     params->ajouter("Identifiant","Champ_SIGMA",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
197 couturad 968 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
198 couturad 926 params->ajouter("Num_solution",2,OT_PARAMETRES::DOUBLE,"Numero de la FEM_SOLUTION solution (0,1,2,...)");
199     params->ajouter("Nom_groupe_forme","ALL",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion. Si [ALL] prend le ves au complet");
200 couturad 968 params->ajouter("Largeur_colonne_distribution","0.1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
201     params->ajouter("Boite_analyse",0,OT_PARAMETRES::DOUBLE,"Calculer à partir des elements donc le centre de la boite englobante figure dans la boite d'analyse [1]");
202     params->ajouter("Boite3D_analyse_Xmin","0.1",OT_PARAMETRES::DOUBLE,"Xmin boite3D d'analyse");
203     params->ajouter("Boite3D_analyse_Ymin","0.1",OT_PARAMETRES::DOUBLE,"Ymin boite3D d'analyse");
204     params->ajouter("Boite3D_analyse_Zmin","0.1",OT_PARAMETRES::DOUBLE,"Zmin boite3D d'analyse");
205     params->ajouter("Boite3D_analyse_Xmax","0.9",OT_PARAMETRES::DOUBLE,"Xmax boite3D d'analyse");
206     params->ajouter("Boite3D_analyse_Ymax","0.9",OT_PARAMETRES::DOUBLE,"Ymax boite3D d'analyse");
207     params->ajouter("Boite3D_analyse_Zmax","0.9",OT_PARAMETRES::DOUBLE,"Zmax boite3D d'analyse");
208 couturad 926 }
209 couturad 968 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION)
210 couturad 926 {
211 couturad 951 params->ajouter("Identifiant","Orientation_Particule",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
212 couturad 968 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
213 couturad 951 params->ajouter("Nom_groupe_forme","Particule",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion.");
214     params->ajouter("Avec_fem_maillage","1",OT_PARAMETRES::DOUBLE,"Analyser le volume des particules avec le FEM_MAILLAGE");
215 couturad 968 params->ajouter("Boite_analyse",0,OT_PARAMETRES::DOUBLE,"Calculer à partir des elements donc le centre de la boite englobante figure dans la boite d'analyse [1]");
216     params->ajouter("Boite3D_analyse_Xmin","0.1",OT_PARAMETRES::DOUBLE,"Xmin boite3D d'analyse");
217     params->ajouter("Boite3D_analyse_Ymin","0.1",OT_PARAMETRES::DOUBLE,"Ymin boite3D d'analyse");
218     params->ajouter("Boite3D_analyse_Zmin","0.1",OT_PARAMETRES::DOUBLE,"Zmin boite3D d'analyse");
219     params->ajouter("Boite3D_analyse_Xmax","0.9",OT_PARAMETRES::DOUBLE,"Xmax boite3D d'analyse");
220     params->ajouter("Boite3D_analyse_Ymax","0.9",OT_PARAMETRES::DOUBLE,"Ymax boite3D d'analyse");
221     params->ajouter("Boite3D_analyse_Zmax","0.9",OT_PARAMETRES::DOUBLE,"Zmax boite3D d'analyse");
222 couturad 938 }
223 couturad 968 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_CAO)
224 couturad 926 {
225     params->ajouter("Identifiant","Cao",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
226 couturad 968 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_CAO,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
227 couturad 926 params->ajouter("Nom_groupe_forme","ALL",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion. Si [NULL] prend le ves au complet");
228     params->ajouter("Largeur_colonne_distribution_nb_volume","1.0",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
229     params->ajouter("Largeur_colonne_distribution_nb_forme","1.0",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
230 couturad 966 params->ajouter("Largeur_colonne_distribution_volume","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
231     params->ajouter("Largeur_colonne_distribution_fraction_volumique","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
232 couturad 926 params->ajouter("Largeur_colonne_distribution_volume_forme","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
233     }
234 couturad 971 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_PROPRIETE_MASSIQUE)
235     {
236     params->ajouter("Identifiant","Prop_mass",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
237     params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_PROPRIETE_MASSIQUE,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
238     params->ajouter("Nom_groupe_forme","Particule",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion. Si [NULL] prend le ves au complet");
239     }
240 couturad 968 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_MG)
241 couturad 926 {
242     params->ajouter("Identifiant","Maillage_MG",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
243 couturad 968 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_MG,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
244 couturad 926 params->ajouter("Nom_groupe_forme","ALL",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion. Si [ALL] prend le ves au complet");
245     params->ajouter("Largeur_colonne_distribution_nb_element_2D","100",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
246     params->ajouter("Largeur_colonne_distribution_nb_element_3D","100",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
247     params->ajouter("Largeur_colonne_distribution_qualite_2D","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
248     params->ajouter("Largeur_colonne_distribution_qualite_3D","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
249     params->ajouter("Largeur_colonne_distribution_taille_2D","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
250     params->ajouter("Largeur_colonne_distribution_taille_3D","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
251 couturad 968 params->ajouter("Largeur_colonne_distribution_volume","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
252     params->ajouter("Largeur_colonne_distribution_fraction_volumique","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
253     params->ajouter("Boite_analyse",0,OT_PARAMETRES::DOUBLE,"Calculer à partir des elements donc le centre de la boite englobante figure dans la boite d'analyse [1]");
254     params->ajouter("Boite3D_analyse_Xmin","0.1",OT_PARAMETRES::DOUBLE,"Xmin boite3D d'analyse");
255     params->ajouter("Boite3D_analyse_Ymin","0.1",OT_PARAMETRES::DOUBLE,"Ymin boite3D d'analyse");
256     params->ajouter("Boite3D_analyse_Zmin","0.1",OT_PARAMETRES::DOUBLE,"Zmin boite3D d'analyse");
257     params->ajouter("Boite3D_analyse_Xmax","0.9",OT_PARAMETRES::DOUBLE,"Xmax boite3D d'analyse");
258     params->ajouter("Boite3D_analyse_Ymax","0.9",OT_PARAMETRES::DOUBLE,"Ymax boite3D d'analyse");
259     params->ajouter("Boite3D_analyse_Zmax","0.9",OT_PARAMETRES::DOUBLE,"Zmax boite3D d'analyse");
260 couturad 926 }
261 couturad 968 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_FEM)
262 couturad 926 {
263     params->ajouter("Identifiant","Maillage_FEM",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
264 couturad 968 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_FEM,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
265 couturad 926 params->ajouter("Nom_groupe_forme","ALL",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion. Si [ALL] prend le ves au complet");
266     params->ajouter("Largeur_colonne_distribution_nb_element_2D","100",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
267     params->ajouter("Largeur_colonne_distribution_nb_element_3D","100",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
268     params->ajouter("Largeur_colonne_distribution_jacobien_2D_min","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
269     params->ajouter("Largeur_colonne_distribution_jacobien_2D_max","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
270     params->ajouter("Largeur_colonne_distribution_jacobien_3D_min","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
271     params->ajouter("Largeur_colonne_distribution_jacobien_3D_max","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
272     params->ajouter("Largeur_colonne_distribution_distortion_2D","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
273     params->ajouter("Largeur_colonne_distribution_distortion_3D","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
274 couturad 968 params->ajouter("Largeur_colonne_distribution_volume","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
275     params->ajouter("Largeur_colonne_distribution_fraction_volumique","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
276     params->ajouter("Boite_analyse",0,OT_PARAMETRES::DOUBLE,"Calculer à partir des elements donc le centre de la boite englobante figure dans la boite d'analyse [1]");
277     params->ajouter("Boite3D_analyse_Xmin","0.1",OT_PARAMETRES::DOUBLE,"Xmin boite3D d'analyse");
278     params->ajouter("Boite3D_analyse_Ymin","0.1",OT_PARAMETRES::DOUBLE,"Ymin boite3D d'analyse");
279     params->ajouter("Boite3D_analyse_Zmin","0.1",OT_PARAMETRES::DOUBLE,"Zmin boite3D d'analyse");
280     params->ajouter("Boite3D_analyse_Xmax","0.9",OT_PARAMETRES::DOUBLE,"Xmax boite3D d'analyse");
281     params->ajouter("Boite3D_analyse_Ymax","0.9",OT_PARAMETRES::DOUBLE,"Ymax boite3D d'analyse");
282     params->ajouter("Boite3D_analyse_Zmax","0.9",OT_PARAMETRES::DOUBLE,"Zmax boite3D d'analyse");
283     }
284     else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_TEMPS)
285     {
286     params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_TEMPS,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
287     params->ajouter("Largeur_colonne_temps_geometrie","1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
288     params->ajouter("Largeur_colonne_temps_materiau","1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
289     params->ajouter("Largeur_colonne_temps_carte","1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
290     params->ajouter("Largeur_colonne_temps_mg_maillage","1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
291     params->ajouter("Largeur_colonne_temps_fem_maillage","1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
292     params->ajouter("Largeur_colonne_temps_etude","1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
293     params->ajouter("Largeur_colonne_temps_calcul","1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
294     }
295     else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_MODULES_ELASTICITE)
296     {
297     params->ajouter("Identifiant","Modules_elasticite",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
298     params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_MODULES_ELASTICITE,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
299     params->ajouter("Identifiant_epsilon","Champ_EPSILON",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ epsilon");
300     params->ajouter("Identifiant_sigma","Champ_SIGMA",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ sigma");
301     params->ajouter("Largeur_colonne_distribution_module_Kapp","1000000",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
302     params->ajouter("Largeur_colonne_distribution_module_Gapp","1000000",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
303     params->ajouter("Largeur_colonne_distribution_module_Eapp","1000000",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
304     params->ajouter("Largeur_colonne_distribution_module_Nuapp","0.00001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
305     }
306     else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE)
307     {
308     params->ajouter("Identifiant","Champ_EPSILON_normalise",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
309     params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
310     params->ajouter("Identifiant_champ","Champ_EPSILON",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ epsilon");
311     params->ajouter("Largeur_colonne_distribution","0.1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
312     }
313     else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART)
314     {
315     params->ajouter("Identifiant","Champ_EPSILON_ecart",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
316     params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
317     params->ajouter("Identifiant_champ","Champ_EPSILON",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ");
318     params->ajouter("Identifiant_champ_compare","Champ_EPSILON_compare",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ a comparer");
319     params->ajouter("Num_couche","0",OT_PARAMETRES::DOUBLE,"Numero de la couche a comparer");
320     params->ajouter("Type_ecart","0",OT_PARAMETRES::STRING,"Ecart relatif [0], ecart absolue [1], ecart quadratique [2]");
321     params->ajouter("Largeur_colonne_distribution","0.1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
322     }
323     else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART_CHARGEMENT)
324     {
325     params->ajouter("Identifiant","Champ_EPSILON_ecart",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
326     params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART_CHARGEMENT,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
327     params->ajouter("Identifiant_champ","Champ_EPSILON",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ");
328     params->ajouter("Type_chargement","0",OT_PARAMETRES::STRING,"Spherique [0], deviatorique [1]");
329     params->ajouter("Type_ecart","0",OT_PARAMETRES::STRING,"Ecart relatif [0], ecart absolue [1], ecart quadratique [2]");
330     params->ajouter("Largeur_colonne_distribution","0.1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
331     }
332     else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION_ECART)
333     {
334     params->ajouter("Identifiant","Orientation_Particule_ecart",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
335     params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION_ECART,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
336     params->ajouter("Identifiant_orientation","Orientation_Particule",OT_PARAMETRES::STRING,"Identifiant de l'analyse de l'orientation");
337     params->ajouter("Type_ecart","0",OT_PARAMETRES::STRING,"Ecart relatif [0], ecart absolue [1], ecart quadratique [2]");
338     params->ajouter("a_11","0.33333333333",OT_PARAMETRES::DOUBLE,"Valeur du tenseur d'orientation");
339     params->ajouter("a_22","0.33333333333",OT_PARAMETRES::DOUBLE,"Valeur du tenseur d'orientation");
340     params->ajouter("a_33","0.33333333333",OT_PARAMETRES::DOUBLE,"Valeur du tenseur d'orientation");
341     params->ajouter("a_12","0.0",OT_PARAMETRES::DOUBLE,"Valeur du tenseur d'orientation");
342     params->ajouter("a_23","0.0",OT_PARAMETRES::DOUBLE,"Valeur du tenseur d'orientation");
343     params->ajouter("a_13","0.0",OT_PARAMETRES::DOUBLE,"Valeur du tenseur d'orientation");
344     }
345 couturad 971 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_CONDUCTIVITE_THERMIQUE)
346     {
347     params->ajouter("Identifiant","Conductivite_thermique",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
348     params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_CONDUCTIVITE_THERMIQUE,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
349     params->ajouter("Identifiant_champ_temp","Champ_TEMP",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ");
350     params->ajouter("Identifiant_champ_flux","Champ_FLUX",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ");
351     params->ajouter("Largeur_colonne_distribution","0.1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
352     }
353 couturad 930 if(erosion)
354     {
355     params->ajouter("Analyse_erosion","1",OT_PARAMETRES::DOUBLE,"Analyse d'erosion [1], sans erosion [0]");
356 couturad 971 params->ajouter("Nb_couche",nb_couche_erosion+1,OT_PARAMETRES::DOUBLE,"Nombre de couche d'erosion");
357     params->ajouter("Epaisseur_couche",epaisseur_couche_erosion,OT_PARAMETRES::DOUBLE,"Epaisseur d'une couche d'erosion");
358 couturad 926 }
359 couturad 930 if(!erosion)
360     {
361     params->ajouter("Analyse_erosion","0",OT_PARAMETRES::DOUBLE,"Analyse d'erosion [1], sans erosion [0]");
362     }
363 couturad 926 }
364    
365    
366 couturad 971 int PARAMETRES::generer_fichier_parametres(bool etude_mecanique,
367     bool etude_thermique,
368 couturad 968 int type_generateur,
369     int type_inclusion,
370     bool fem_maill_lin,
371     bool fem_maill_quad,
372 couturad 971 int nb_couche_erosion,
373     double epaisseur_couche_erosion,
374 couturad 968 fonction_affiche *fonc_affiche)
375 couturad 919 {
376 couturad 968 bool erosion;
377 couturad 971 if(nb_couche_erosion>0) erosion=true;
378 couturad 968 else erosion=false;
379 couturad 919 int mkdir_err=0;
380 couturad 933 std::string sys_command = "mkdir parametre";
381 couturad 919 mkdir_err = system(sys_command.c_str());
382     if(mkdir_err !=0)
383     {
384     std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametres! ***" << std::endl;
385     return FAIL;
386     }
387 couturad 933 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/geometrie");
388 couturad 919 mkdir_err = system(sys_command.c_str());
389     if(mkdir_err !=0)
390     {
391     std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametres/geometrie ! ***" << std::endl;
392     return FAIL;
393     }
394 couturad 933 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/materiau");
395 couturad 919 mkdir_err = system(sys_command.c_str());
396     if(mkdir_err !=0)
397     {
398     std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametre/materiau ! ***" << std::endl;
399     return FAIL;
400     }
401 couturad 933 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/carte");
402 couturad 919 mkdir_err = system(sys_command.c_str());
403     if(mkdir_err !=0)
404     {
405     std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametres/carte ! ***" << std::endl;
406     return FAIL;
407     }
408 couturad 933 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/maillage");
409 couturad 919 mkdir_err = system(sys_command.c_str());
410     if(mkdir_err !=0)
411     {
412     std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametre/maillage ! ***" << std::endl;
413     return FAIL;
414     }
415 couturad 933 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/fem_maillage");
416 couturad 919 mkdir_err = system(sys_command.c_str());
417     if(mkdir_err !=0)
418     {
419     std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametre/fem_maillage ! ***" << std::endl;
420     return FAIL;
421     }
422 couturad 933 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/etude");
423 couturad 919 mkdir_err = system(sys_command.c_str());
424     if(mkdir_err !=0)
425     {
426     std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametre/etude ! ***" << std::endl;
427     return FAIL;
428     }
429 couturad 968 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/post_traitement");
430 couturad 919 mkdir_err = system(sys_command.c_str());
431     if(mkdir_err !=0)
432     {
433 couturad 968 std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametre/post_traitement ! ***" << std::endl;
434 couturad 919 return FAIL;
435     }
436     std::ofstream f;
437 couturad 951
438 couturad 968 if(type_generateur==MSTRUCT::TYPE_GENERATEUR::RSA)
439 couturad 951 {
440     OT_PARAMETRES params_geo_1;
441     ini_param_generateur_rsa(&params_geo_1,type_inclusion);
442     sys_command.clear(); sys_command.append("parametre/geometrie/param_geo_particule.txt");
443     params_geo_1.enregistrer((char*)sys_command.c_str());
444 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
445 couturad 951 }
446 couturad 968 else if(type_generateur==MSTRUCT::TYPE_GENERATEUR::DCR)
447 couturad 951 {
448     OT_PARAMETRES params_geo_1;
449     ini_param_generateur_dcr(&params_geo_1,type_inclusion);
450     sys_command.clear(); sys_command.append("parametre/geometrie/param_geo_particule.txt");
451     params_geo_1.enregistrer((char*)sys_command.c_str());
452 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
453 couturad 951 }
454 couturad 933 sys_command.clear(); sys_command.append("parametre/geometrie/lstparam_geo.txt");
455 couturad 951 f.open(sys_command.c_str(),std::ios::out);
456 couturad 919 f << "// Fichier de parametres GEOMETRIE" << std::endl;
457 couturad 951 f << "param_geo_particule.txt" << std::endl;
458 couturad 919 f.close();
459 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
460 couturad 951
461     OT_PARAMETRES params_mat_particule;
462 couturad 971 ini_param_materiau(&params_mat_particule,(char*)"Particule",etude_mecanique,etude_thermique);
463     if(etude_mecanique)
464     {
465 couturad 974 params_mat_particule.change_valeur("Mu_E",72.3e09);
466     params_mat_particule.change_valeur("Mu_nu",0.22);
467 couturad 971 }
468     if(etude_thermique)
469     {
470 couturad 974 params_mat_particule.change_valeur("Mu_Lambda",1.2);
471     params_mat_particule.change_valeur("Mu_Ro",2550);
472     params_mat_particule.change_valeur("Mu_Cp",800);
473 couturad 971 }
474 couturad 951 sys_command.clear(); sys_command.append("parametre/materiau/param_mat_particule.txt");
475     params_mat_particule.enregistrer((char*)sys_command.c_str());
476 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
477 couturad 971
478 couturad 919 OT_PARAMETRES params_mat_matrice;
479 couturad 971 ini_param_materiau(&params_mat_matrice,(char*)"Matrice",etude_mecanique,etude_thermique);
480     if(etude_mecanique)
481     {
482 couturad 974 params_mat_matrice.change_valeur("Mu_E",3.5e09);
483     params_mat_matrice.change_valeur("Mu_nu",0.33);
484 couturad 971 }
485     if(etude_thermique)
486     {
487 couturad 974 params_mat_particule.change_valeur("Mu_Lambda",0.2);
488     params_mat_particule.change_valeur("Mu_Ro",1200);
489     params_mat_particule.change_valeur("Mu_Cp",1300);
490 couturad 971 }
491 couturad 933 sys_command.clear(); sys_command.append("parametre/materiau/param_mat_matrice.txt");
492 couturad 919 params_mat_matrice.enregistrer((char*)sys_command.c_str());
493 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
494 couturad 919
495 couturad 951 sys_command.clear(); sys_command.append("parametre/materiau/lstparam_mat.txt");
496     f.open(sys_command.c_str(),std::ios::out);
497     f << "// Fichier de parametres MATERIAU" << std::endl;
498     f << "param_mat_particule.txt" << std::endl;
499     f << "param_mat_matrice.txt" << std::endl;
500     f.close();
501 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
502 couturad 951
503    
504 couturad 919 OT_PARAMETRES params_carte;
505     ini_param_carte_taille(&params_carte);
506 couturad 933 sys_command.clear(); sys_command.append("parametre/carte/param_carte.txt");
507 couturad 919 params_carte.enregistrer((char*)sys_command.c_str());
508 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
509 couturad 919
510     OT_PARAMETRES params_maill;
511     ini_param_mailleur(&params_maill);
512 couturad 933 sys_command.clear(); sys_command.append("parametre/maillage/param_maill.txt");
513 couturad 919 params_maill.enregistrer((char*)sys_command.c_str());
514 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
515 couturad 951
516     if(fem_maill_lin)
517     {
518     OT_PARAMETRES params_fem_maillage_lin;
519     ini_param_mailleur_fem(&params_fem_maillage_lin);
520     params_fem_maillage_lin.change_valeur("Degre",1);
521     sys_command.clear(); sys_command.append("parametre/fem_maillage/param_fem_maill_lin.txt");
522     params_fem_maillage_lin.enregistrer((char*)sys_command.c_str());
523 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
524 couturad 951 }
525 couturad 919
526 couturad 951 if(fem_maill_quad)
527     {
528     OT_PARAMETRES params_fem_maillage_quad;
529     ini_param_mailleur_fem(&params_fem_maillage_quad);
530     params_fem_maillage_quad.change_valeur("Degre",2);
531     sys_command.clear(); sys_command.append("parametre/fem_maillage/param_fem_maill_quad.txt");
532     params_fem_maillage_quad.enregistrer((char*)sys_command.c_str());
533 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
534 couturad 951 }
535 couturad 919
536 couturad 971 if(etude_mecanique)
537     {
538     OT_PARAMETRES params_etude_CLDH_sph;
539     ini_param_etude(&params_etude_CLDH_sph,MSTRUCT::TYPE_ETUDE::MECANIQUE);
540     params_etude_CLDH_sph.change_valeur("Type_Chargement",MSTRUCT::TYPE_CHARGEMENT::SPHERIQUE);
541     params_etude_CLDH_sph.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::DEFORMATION_HOMOGENE);
542     params_etude_CLDH_sph.change_valeur("Valeur_CL",0.0001);
543     sys_command.clear(); sys_command.append("parametre/etude/param_etude_CLDH_sph.txt");
544     params_etude_CLDH_sph.enregistrer((char*)sys_command.c_str());
545     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
546    
547     OT_PARAMETRES params_etude_CLCH_sph;
548     ini_param_etude(&params_etude_CLCH_sph,MSTRUCT::TYPE_ETUDE::MECANIQUE);
549     params_etude_CLCH_sph.change_valeur("Type_Chargement",MSTRUCT::TYPE_CHARGEMENT::SPHERIQUE);
550     params_etude_CLCH_sph.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::CONTRAINTE_HOMOGENE);
551 couturad 974 params_etude_CLCH_sph.change_valeur("Valeur_CL",1000000);
552 couturad 971 sys_command.clear(); sys_command.append("parametre/etude/param_etude_CLCH_sph.txt");
553     params_etude_CLCH_sph.enregistrer((char*)sys_command.c_str());
554     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
555    
556     OT_PARAMETRES params_etude_CLDH_dev;
557     ini_param_etude(&params_etude_CLDH_dev,MSTRUCT::TYPE_ETUDE::MECANIQUE);
558     params_etude_CLDH_dev.change_valeur("Type_Chargement",MSTRUCT::TYPE_CHARGEMENT::DEVIATORIQUE);
559     params_etude_CLDH_dev.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::DEFORMATION_HOMOGENE);
560     params_etude_CLDH_dev.change_valeur("Valeur_CL",0.0001);
561     sys_command.clear(); sys_command.append("parametre/etude/param_etude_CLDH_dev.txt");
562     params_etude_CLDH_dev.enregistrer((char*)sys_command.c_str());
563     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
564    
565     OT_PARAMETRES params_etude_CLCH_dev;
566     ini_param_etude(&params_etude_CLCH_dev,MSTRUCT::TYPE_ETUDE::MECANIQUE);
567     params_etude_CLCH_dev.change_valeur("Type_Chargement",MSTRUCT::TYPE_CHARGEMENT::DEVIATORIQUE);
568     params_etude_CLCH_dev.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::CONTRAINTE_HOMOGENE);
569 couturad 974 params_etude_CLCH_dev.change_valeur("Valeur_CL",1000000);
570 couturad 971 sys_command.clear(); sys_command.append("parametre/etude/param_etude_CLCH_dev.txt");
571     params_etude_CLCH_dev.enregistrer((char*)sys_command.c_str());
572     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
573     }
574     if(etude_thermique)
575     {
576     OT_PARAMETRES params_etude_CLG_x;
577     ini_param_etude(&params_etude_CLG_x,MSTRUCT::TYPE_ETUDE::THERMIQUE);
578     params_etude_CLG_x.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::GRADIENT_TEMPERATURE);
579     params_etude_CLG_x.change_valeur("Valeur_CL",1.0);
580     params_etude_CLG_x.change_valeur("Direction",0);
581     sys_command.clear(); sys_command.append("parametre/etude/params_etude_CLG_x.txt");
582     params_etude_CLG_x.enregistrer((char*)sys_command.c_str());
583     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
584    
585     OT_PARAMETRES params_etude_CLG_y;
586     ini_param_etude(&params_etude_CLG_y,MSTRUCT::TYPE_ETUDE::THERMIQUE);
587     params_etude_CLG_y.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::GRADIENT_TEMPERATURE);
588     params_etude_CLG_y.change_valeur("Valeur_CL",1.0);
589     params_etude_CLG_y.change_valeur("Direction",1);
590     sys_command.clear(); sys_command.append("parametre/etude/params_etude_CLG_y.txt");
591     params_etude_CLG_y.enregistrer((char*)sys_command.c_str());
592     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
593    
594     OT_PARAMETRES params_etude_CLG_z;
595     ini_param_etude(&params_etude_CLG_z,MSTRUCT::TYPE_ETUDE::THERMIQUE);
596     params_etude_CLG_z.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::GRADIENT_TEMPERATURE);
597     params_etude_CLG_z.change_valeur("Valeur_CL",1.0);
598     params_etude_CLG_z.change_valeur("Direction",2);
599     sys_command.clear(); sys_command.append("parametre/etude/params_etude_CLG_z.txt");
600     params_etude_CLG_z.enregistrer((char*)sys_command.c_str());
601     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
602    
603     OT_PARAMETRES params_etude_CLF_x;
604     ini_param_etude(&params_etude_CLF_x,MSTRUCT::TYPE_ETUDE::THERMIQUE);
605     params_etude_CLF_x.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::FLUX_CHALEUR);
606     params_etude_CLF_x.change_valeur("Valeur_CL",1.0);
607     params_etude_CLF_x.change_valeur("Direction",0);
608     sys_command.clear(); sys_command.append("parametre/etude/params_etude_CLF_x.txt");
609     params_etude_CLF_x.enregistrer((char*)sys_command.c_str());
610     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
611    
612     OT_PARAMETRES params_etude_CLF_y;
613     ini_param_etude(&params_etude_CLF_y,MSTRUCT::TYPE_ETUDE::THERMIQUE);
614     params_etude_CLF_y.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::FLUX_CHALEUR);
615     params_etude_CLF_y.change_valeur("Valeur_CL",1.0);
616     params_etude_CLF_y.change_valeur("Direction",1);
617     sys_command.clear(); sys_command.append("parametre/etude/params_etude_CLF_y.txt");
618     params_etude_CLF_y.enregistrer((char*)sys_command.c_str());
619     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
620    
621     OT_PARAMETRES params_etude_CLF_z;
622     ini_param_etude(&params_etude_CLF_z,MSTRUCT::TYPE_ETUDE::THERMIQUE);
623     params_etude_CLF_z.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::FLUX_CHALEUR);
624     params_etude_CLF_z.change_valeur("Valeur_CL",1.0);
625     params_etude_CLF_z.change_valeur("Direction",2);
626     sys_command.clear(); sys_command.append("parametre/etude/params_etude_CLF_z.txt");
627     params_etude_CLF_z.enregistrer((char*)sys_command.c_str());
628     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
629     }
630 couturad 968
631 couturad 926 MG_EXPORT exp;
632     OT_PARAMETRES *params_aster=exp.get_param_aster();
633 couturad 964 params_aster->change_valeur("Memoire",1024);
634 couturad 926 params_aster->change_valeur("Temps_max",250000);
635     params_aster->change_valeur("Nb_CPU",8);
636     params_aster->change_valeur("Noeud_ele",2);
637 couturad 929 params_aster->change_valeur("Base_num_mail",36);
638 couturad 971 params_aster->change_valeur("Pas",0);
639 couturad 933 sys_command.clear(); sys_command.append("parametre/etude/param_aster.txt");
640 couturad 964 params_aster->enregistrer((char*)sys_command.c_str());
641     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
642 couturad 926
643 couturad 968 OT_PARAMETRES params_post_cao_all;
644     ini_param_post_traitement(&params_post_cao_all,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CAO);
645     params_post_cao_all.change_valeur("Identifiant","Cao_ALL");
646     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_cao_all.txt");
647     params_post_cao_all.enregistrer((char*)sys_command.c_str());
648 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
649 couturad 968 OT_PARAMETRES params_post_cao_particule;
650     ini_param_post_traitement(&params_post_cao_particule,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CAO);
651     params_post_cao_particule.change_valeur("Identifiant","Cao_Particule");
652     params_post_cao_particule.change_valeur("Nom_groupe_forme","Particule");
653     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_cao_particule.txt");
654     params_post_cao_particule.enregistrer((char*)sys_command.c_str());
655 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
656 couturad 968 OT_PARAMETRES params_post_cao_matrice;
657     ini_param_post_traitement(&params_post_cao_matrice,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CAO);
658     params_post_cao_matrice.change_valeur("Identifiant","Cao_Matrice");
659     params_post_cao_matrice.change_valeur("Nom_groupe_forme","Matrice");
660     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_cao_matrice.txt");
661     params_post_cao_matrice.enregistrer((char*)sys_command.c_str());
662 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
663 couturad 971 OT_PARAMETRES params_post_prop_mass_particule;
664     ini_param_post_traitement(&params_post_prop_mass_particule,MSTRUCT::TYPE_POST_TRAITEMENT::POST_PROPRIETE_MASSIQUE);
665     params_post_prop_mass_particule.change_valeur("Identifiant","Prop_mass_Particule");
666     params_post_prop_mass_particule.change_valeur("Nom_groupe_forme","Particule");
667     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_prop_mass_particule.txt");
668     params_post_prop_mass_particule.enregistrer((char*)sys_command.c_str());
669     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
670 couturad 926
671 couturad 968 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
672 couturad 951 {
673 couturad 968 OT_PARAMETRES params_post_orientation_cao;
674     ini_param_post_traitement(&params_post_orientation_cao,MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION);
675     params_post_orientation_cao.change_valeur("Identifiant","Orientation_Particule");
676     params_post_orientation_cao.change_valeur("Avec_fem_maillage","0");
677     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_orientation_cao.txt");
678     params_post_orientation_cao.enregistrer((char*)sys_command.c_str());
679 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
680 couturad 968
681     OT_PARAMETRES params_post_orientation_ecart;
682     ini_param_post_traitement(&params_post_orientation_ecart,MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION_ECART);
683     params_post_orientation_ecart.change_valeur("Identifiant","Orientation_Particule_ecart");
684     params_post_orientation_ecart.change_valeur("Identifiant_orientation","Orientation_Particule");
685     params_post_orientation_ecart.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_ABSOLUE);
686     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_orientation_ecart.txt");
687     params_post_orientation_ecart.enregistrer((char*)sys_command.c_str());
688     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
689 couturad 951 }
690    
691 couturad 968 sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_geometrie.txt");
692 couturad 971 f.open(sys_command.c_str(),std::ios::out);
693     f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
694     f << "params_post_cao_all.txt" << std::endl;
695     f << "params_post_cao_particule.txt" << std::endl;
696     f << "params_post_cao_matrice.txt" << std::endl;
697     f << "params_post_prop_mass_particule.txt" << std::endl;
698 couturad 968 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
699 couturad 951 {
700 couturad 968 f << "params_post_orientation_cao.txt" << std::endl;
701     f << "params_post_orientation_ecart.txt" << std::endl;
702 couturad 951 }
703 couturad 971
704 couturad 964 f.close();
705     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
706 couturad 951
707 couturad 968 OT_PARAMETRES params_post_mg_maillage_all;
708 couturad 971 ini_param_post_traitement(&params_post_mg_maillage_all,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_MG);
709 couturad 968 params_post_mg_maillage_all.change_valeur("Identifiant","MG_maillage_ALL");
710     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_mg_maillage_all.txt");
711     params_post_mg_maillage_all.enregistrer((char*)sys_command.c_str());
712 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
713 couturad 971
714 couturad 968 OT_PARAMETRES params_post_mg_maillage_particule;
715 couturad 971 ini_param_post_traitement(&params_post_mg_maillage_particule,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_MG);
716 couturad 968 params_post_mg_maillage_particule.change_valeur("Identifiant","MG_maillage_Particule");
717     params_post_mg_maillage_particule.change_valeur("Nom_groupe_forme","Particule");
718     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_mg_maillage_particule.txt");
719     params_post_mg_maillage_particule.enregistrer((char*)sys_command.c_str());
720 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
721 couturad 971
722 couturad 968 OT_PARAMETRES params_post_mg_maillage_matrice;
723 couturad 971 ini_param_post_traitement(&params_post_mg_maillage_matrice,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_MG);
724 couturad 968 params_post_mg_maillage_matrice.change_valeur("Identifiant","MG_maillage_Matrice");
725     params_post_mg_maillage_matrice.change_valeur("Nom_groupe_forme","Matrice");
726     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_mg_maillage_matrice.txt");
727     params_post_mg_maillage_matrice.enregistrer((char*)sys_command.c_str());
728 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
729 couturad 926
730 couturad 971
731 couturad 968 sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_mg_maillage.txt");
732 couturad 951 f.open(sys_command.c_str(),std::ios::out);
733 couturad 968 f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
734     f << "params_post_mg_maillage_all.txt" << std::endl;
735     f << "params_post_mg_maillage_particule.txt" << std::endl;
736     f << "params_post_mg_maillage_matrice.txt" << std::endl;
737 couturad 964 f.close();
738 couturad 971 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
739    
740 couturad 968 OT_PARAMETRES params_post_fem_maillage_all;
741 couturad 971 ini_param_post_traitement(&params_post_fem_maillage_all,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_FEM,nb_couche_erosion,epaisseur_couche_erosion);
742 couturad 968 params_post_fem_maillage_all.change_valeur("Identifiant","FEM_maillage_ALL");
743     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_fem_maillage_all.txt");
744     params_post_fem_maillage_all.enregistrer((char*)sys_command.c_str());
745 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
746 couturad 971
747 couturad 968 OT_PARAMETRES params_post_fem_maillage_particule;
748 couturad 971 ini_param_post_traitement(&params_post_fem_maillage_particule,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_FEM,nb_couche_erosion,epaisseur_couche_erosion);
749 couturad 968 params_post_fem_maillage_particule.change_valeur("Identifiant","FEM_maillage_Particule");
750     params_post_fem_maillage_particule.change_valeur("Nom_groupe_forme","Particule");
751     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_fem_maillage_particule.txt");
752     params_post_fem_maillage_particule.enregistrer((char*)sys_command.c_str());
753     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
754 couturad 971
755 couturad 968 OT_PARAMETRES params_post_fem_maillage_matrice;
756 couturad 971 ini_param_post_traitement(&params_post_fem_maillage_matrice,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_FEM,nb_couche_erosion,epaisseur_couche_erosion);
757 couturad 968 params_post_fem_maillage_matrice.change_valeur("Identifiant","FEM_maillage_Matrice");
758     params_post_fem_maillage_matrice.change_valeur("Nom_groupe_forme","Matrice");
759     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_fem_maillage_matrice.txt");
760     params_post_fem_maillage_matrice.enregistrer((char*)sys_command.c_str());
761     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
762 couturad 926
763 couturad 968 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
764 couturad 951 {
765 couturad 968 OT_PARAMETRES params_post_orientation_ponderee;
766 couturad 971 ini_param_post_traitement(&params_post_orientation_ponderee,MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION,nb_couche_erosion,epaisseur_couche_erosion);
767 couturad 968 params_post_orientation_ponderee.change_valeur("Identifiant","Orientation_Particule_ponderee");
768     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_orientation_ponderee.txt");
769     params_post_orientation_ponderee.enregistrer((char*)sys_command.c_str());
770 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
771 couturad 951
772 couturad 968 OT_PARAMETRES params_post_orientation_ponderee_ecart;
773 couturad 971 ini_param_post_traitement(&params_post_orientation_ponderee_ecart,MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION_ECART,nb_couche_erosion,epaisseur_couche_erosion);
774 couturad 968 params_post_orientation_ponderee_ecart.change_valeur("Identifiant","Orientation_Particule_ponderee_ecart");
775     params_post_orientation_ponderee_ecart.change_valeur("Identifiant_orientation","Orientation_Particule_ponderee");
776     params_post_orientation_ponderee_ecart.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_ABSOLUE);
777     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_orientation_ponderee_ecart.txt");
778     params_post_orientation_ponderee_ecart.enregistrer((char*)sys_command.c_str());
779 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
780 couturad 971 }
781     sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_fem_maillage.txt");
782     f.open(sys_command.c_str(),std::ios::out);
783     f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
784     f << "params_post_fem_maillage_all.txt" << std::endl;
785     f << "params_post_fem_maillage_particule.txt" << std::endl;
786     f << "params_post_fem_maillage_matrice.txt" << std::endl;
787     if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
788     {
789 couturad 968 f << "params_post_orientation_ponderee.txt" << std::endl;
790     f << "params_post_orientation_ponderee_ecart.txt" << std::endl;
791 couturad 951 }
792 couturad 971 f.close();
793     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
794    
795     if(etude_mecanique)
796 couturad 951 {
797 couturad 971 OT_PARAMETRES params_post_champ_sigma;
798     ini_param_post_traitement(&params_post_champ_sigma,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
799     params_post_champ_sigma.change_valeur("Identifiant","Champ_SIGMA");
800     params_post_champ_sigma.change_valeur("Num_solution",2);
801 couturad 974 params_post_champ_sigma.change_valeur("Largeur_colonne_distribution","1000.0");
802 couturad 971 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_sigma.txt");
803     params_post_champ_sigma.enregistrer((char*)sys_command.c_str());
804     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
805    
806     OT_PARAMETRES params_post_champ_sigma_normalise;
807     ini_param_post_traitement(&params_post_champ_sigma_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
808     params_post_champ_sigma_normalise.change_valeur("Identifiant","Champ_SIGMA_normalise");
809     params_post_champ_sigma_normalise.change_valeur("Identifiant_champ","Champ_SIGMA");
810 couturad 974 params_post_champ_sigma_normalise.change_valeur("Largeur_colonne_distribution","2.0e-04");
811 couturad 971 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_sigma_normalise.txt");
812     params_post_champ_sigma_normalise.enregistrer((char*)sys_command.c_str());
813     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
814    
815     OT_PARAMETRES params_post_champ_epsilon;
816     ini_param_post_traitement(&params_post_champ_epsilon,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
817     params_post_champ_epsilon.change_valeur("Identifiant","Champ_EPSILON");
818     params_post_champ_epsilon.change_valeur("Num_solution",1);
819 couturad 974 params_post_champ_epsilon.change_valeur("Largeur_colonne_distribution","1.0e-6");
820 couturad 971 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_epsilon.txt");
821     params_post_champ_epsilon.enregistrer((char*)sys_command.c_str());
822     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
823    
824     OT_PARAMETRES params_post_champ_epsilon_normalise;
825     ini_param_post_traitement(&params_post_champ_epsilon_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
826     params_post_champ_epsilon_normalise.change_valeur("Identifiant","Champ_EPSILON_normalise");
827     params_post_champ_epsilon_normalise.change_valeur("Identifiant_champ","Champ_EPSILON");
828 couturad 974 params_post_champ_epsilon_normalise.change_valeur("Largeur_colonne_distribution","2.0e-04");
829 couturad 971 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_epsilon_normalise.txt");
830     params_post_champ_epsilon_normalise.enregistrer((char*)sys_command.c_str());
831     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
832    
833     OT_PARAMETRES params_post_champ_energie;
834     ini_param_post_traitement(&params_post_champ_energie,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
835     params_post_champ_energie.change_valeur("Identifiant","Champ_ENERGIE");
836     params_post_champ_energie.change_valeur("Num_solution",5);
837 couturad 974 params_post_champ_energie.change_valeur("Largeur_colonne_distribution","1e-04");
838 couturad 971 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_energie.txt");
839     params_post_champ_energie.enregistrer((char*)sys_command.c_str());
840     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
841    
842     OT_PARAMETRES params_post_champ_energie_normalise;
843     ini_param_post_traitement(&params_post_champ_energie_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
844     params_post_champ_energie_normalise.change_valeur("Identifiant","Champ_ENERGIE_normalise");
845     params_post_champ_energie_normalise.change_valeur("Identifiant_champ","Champ_ENERGIE");
846 couturad 974 params_post_champ_energie_normalise.change_valeur("Largeur_colonne_distribution","2.0e-04");
847 couturad 971 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_energie_normalise.txt");
848     params_post_champ_energie_normalise.enregistrer((char*)sys_command.c_str());
849     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
850    
851     OT_PARAMETRES params_post_champ_energie_ecart;
852     ini_param_post_traitement(&params_post_champ_energie_ecart,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART,nb_couche_erosion,epaisseur_couche_erosion);
853     params_post_champ_energie_ecart.change_valeur("Identifiant","Champ_ENERGIE_ecart");
854     params_post_champ_energie_ecart.change_valeur("Identifiant_champ","Champ_ENERGIE");
855     params_post_champ_energie_ecart.change_valeur("Identifiant_champ_compare","Champ_ENERGIE");
856     params_post_champ_energie_ecart.change_valeur("Num_couche","0");
857     params_post_champ_energie_ecart.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_RELATIF_ABSOLUE);
858 couturad 974 params_post_champ_energie_ecart.change_valeur("Largeur_colonne_distribution","1e-04");
859 couturad 971 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_energie_ecart.txt");
860     params_post_champ_energie_ecart.enregistrer((char*)sys_command.c_str());
861     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
862    
863     sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_champ_meca.txt");
864     f.open(sys_command.c_str(),std::ios::out);
865 couturad 968 f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
866 couturad 971 f << "params_post_champ_sigma.txt" << std::endl;
867     f << "params_post_champ_sigma_normalise.txt" << std::endl;
868     f << "params_post_champ_epsilon.txt" << std::endl;
869     f << "params_post_champ_epsilon_normalise.txt" << std::endl;
870     f << "params_post_champ_energie.txt" << std::endl;
871     f << "params_post_champ_energie_normalise.txt" << std::endl;
872     f << "params_post_champ_energie_ecart.txt" << std::endl;
873     f.close();
874     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
875    
876     OT_PARAMETRES params_post_champ_sigma_ecart_chargement_sph;
877     ini_param_post_traitement(&params_post_champ_sigma_ecart_chargement_sph,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART_CHARGEMENT,nb_couche_erosion,epaisseur_couche_erosion);
878     params_post_champ_sigma_ecart_chargement_sph.change_valeur("Identifiant","Champ_SIGMA_ecart_chargement_sph");
879     params_post_champ_sigma_ecart_chargement_sph.change_valeur("Identifiant_champ","Champ_SIGMA");
880     params_post_champ_sigma_ecart_chargement_sph.change_valeur("Type_chargement","0");
881     params_post_champ_sigma_ecart_chargement_sph.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_RELATIF_ABSOLUE);
882     params_post_champ_sigma_ecart_chargement_sph.change_valeur("Largeur_colonne_distribution","0.1");
883     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_sigma_ecart_chargement_sph.txt");
884     params_post_champ_sigma_ecart_chargement_sph.enregistrer((char*)sys_command.c_str());
885     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
886    
887     OT_PARAMETRES params_post_champ_epsilon_ecart_chargement_sph;
888     ini_param_post_traitement(&params_post_champ_epsilon_ecart_chargement_sph,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART_CHARGEMENT,nb_couche_erosion,epaisseur_couche_erosion);
889     params_post_champ_epsilon_ecart_chargement_sph.change_valeur("Identifiant","Champ_EPSILON_ecart_chargement_sph");
890     params_post_champ_epsilon_ecart_chargement_sph.change_valeur("Identifiant_champ","Champ_EPSILON");
891     params_post_champ_epsilon_ecart_chargement_sph.change_valeur("Type_chargement","0");
892     params_post_champ_epsilon_ecart_chargement_sph.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_RELATIF_ABSOLUE);
893     params_post_champ_epsilon_ecart_chargement_sph.change_valeur("Largeur_colonne_distribution","0.1");
894     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_epsilon_ecart_chargement_sph.txt");
895     params_post_champ_epsilon_ecart_chargement_sph.enregistrer((char*)sys_command.c_str());
896     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
897    
898     sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_sph.txt");
899     f.open(sys_command.c_str(),std::ios::out);
900     f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
901     f << "params_post_champ_sigma_ecart_chargement_sph.txt" << std::endl;
902     f << "params_post_champ_epsilon_ecart_chargement_sph.txt" << std::endl;
903     f.close();
904     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
905    
906     OT_PARAMETRES params_post_champ_sigma_ecart_chargement_dev;
907     ini_param_post_traitement(&params_post_champ_sigma_ecart_chargement_dev,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART_CHARGEMENT,nb_couche_erosion,epaisseur_couche_erosion);
908     params_post_champ_sigma_ecart_chargement_dev.change_valeur("Identifiant","Champ_SIGMA_ecart_chargement_dev");
909     params_post_champ_sigma_ecart_chargement_dev.change_valeur("Identifiant_champ","Champ_SIGMA");
910     params_post_champ_sigma_ecart_chargement_dev.change_valeur("Type_chargement","1");
911     params_post_champ_sigma_ecart_chargement_dev.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_RELATIF_ABSOLUE);
912     params_post_champ_sigma_ecart_chargement_dev.change_valeur("Largeur_colonne_distribution","0.1");
913     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_sigma_ecart_chargement_dev.txt");
914     params_post_champ_sigma_ecart_chargement_dev.enregistrer((char*)sys_command.c_str());
915     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
916    
917     OT_PARAMETRES params_post_champ_epsilon_ecart_chargement_dev;
918     ini_param_post_traitement(&params_post_champ_epsilon_ecart_chargement_dev,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART_CHARGEMENT,nb_couche_erosion,epaisseur_couche_erosion);
919     params_post_champ_epsilon_ecart_chargement_dev.change_valeur("Identifiant","Champ_EPSILON_ecart_chargement_dev");
920     params_post_champ_epsilon_ecart_chargement_dev.change_valeur("Identifiant_champ","Champ_EPSILON");
921     params_post_champ_epsilon_ecart_chargement_dev.change_valeur("Type_chargement","1");
922     params_post_champ_epsilon_ecart_chargement_dev.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_RELATIF_ABSOLUE);
923     params_post_champ_epsilon_ecart_chargement_dev.change_valeur("Largeur_colonne_distribution","0.1");
924     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_epsilon_ecart_chargement_dev.txt");
925     params_post_champ_epsilon_ecart_chargement_dev.enregistrer((char*)sys_command.c_str());
926     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
927    
928     sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_dev.txt");
929     f.open(sys_command.c_str(),std::ios::out);
930     f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
931     f << "params_post_champ_sigma_ecart_chargement_dev.txt" << std::endl;
932     f << "params_post_champ_epsilon_ecart_chargement_dev.txt" << std::endl;
933     f.close();
934     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
935    
936     OT_PARAMETRES params_post_modules_elasticite;
937     ini_param_post_traitement(&params_post_modules_elasticite,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MODULES_ELASTICITE,nb_couche_erosion,epaisseur_couche_erosion);
938     params_post_modules_elasticite.change_valeur("Identifiant_epsilon","Champ_EPSILON");
939     params_post_modules_elasticite.change_valeur("Identifiant_sigma","Champ_SIGMA");
940     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_modules_elasticite.txt");
941     params_post_modules_elasticite.enregistrer((char*)sys_command.c_str());
942     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
943     }
944     if(etude_thermique)
945     {
946     OT_PARAMETRES params_post_champ_temp;
947     ini_param_post_traitement(&params_post_champ_temp,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
948     params_post_champ_temp.change_valeur("Identifiant","Champ_TEMP");
949     params_post_champ_temp.change_valeur("Num_solution",0);
950     params_post_champ_temp.change_valeur("Largeur_colonne_distribution","0.01");
951     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_temp.txt");
952     params_post_champ_temp.enregistrer((char*)sys_command.c_str());
953     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
954    
955     OT_PARAMETRES params_post_champ_temp_normalise;
956     ini_param_post_traitement(&params_post_champ_temp_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
957     params_post_champ_temp_normalise.change_valeur("Identifiant","Champ_TEMP_normalise");
958     params_post_champ_temp_normalise.change_valeur("Identifiant_champ","Champ_TEMP");
959     params_post_champ_temp_normalise.change_valeur("Num_solution",0);
960     params_post_champ_temp_normalise.change_valeur("Largeur_colonne_distribution","1e-06");
961     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_temp_normalise.txt");
962     params_post_champ_temp_normalise.enregistrer((char*)sys_command.c_str());
963     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
964    
965     OT_PARAMETRES params_post_champ_flux;
966     ini_param_post_traitement(&params_post_champ_flux,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
967     params_post_champ_flux.change_valeur("Identifiant","Champ_FLUX");
968     params_post_champ_flux.change_valeur("Num_solution",1);
969     params_post_champ_flux.change_valeur("Largeur_colonne_distribution","0.01");
970     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_flux.txt");
971     params_post_champ_flux.enregistrer((char*)sys_command.c_str());
972     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
973    
974     OT_PARAMETRES params_post_champ_flux_normalise;
975     ini_param_post_traitement(&params_post_champ_flux_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
976     params_post_champ_flux_normalise.change_valeur("Identifiant","Champ_FLUX_normalise");
977     params_post_champ_flux_normalise.change_valeur("Identifiant_champ","Champ_FLUX");
978     params_post_champ_flux_normalise.change_valeur("Num_solution",0);
979     params_post_champ_flux_normalise.change_valeur("Largeur_colonne_distribution","1e-06");
980     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_flux_normalise.txt");
981     params_post_champ_flux_normalise.enregistrer((char*)sys_command.c_str());
982     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
983    
984     OT_PARAMETRES params_post_conductivite_thermique;
985     ini_param_post_traitement(&params_post_conductivite_thermique,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CONDUCTIVITE_THERMIQUE,nb_couche_erosion,epaisseur_couche_erosion);
986     params_post_champ_flux_normalise.change_valeur("Identifiant","Conductivite_thermique");
987     params_post_conductivite_thermique.change_valeur("Identifiant_champ_temp","Champ_TEMP");
988     params_post_conductivite_thermique.change_valeur("Identifiant_champ_flux","Champ_FLUX");
989     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_conductivite_thermique.txt");
990     params_post_conductivite_thermique.enregistrer((char*)sys_command.c_str());
991     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
992    
993     sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_champ_ther.txt");
994     f.open(sys_command.c_str(),std::ios::out);
995     f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
996     f << "params_post_champ_temp.txt" << std::endl;
997     f << "params_post_champ_temp_normalise.txt" << std::endl;
998     f << "params_post_champ_flux.txt" << std::endl;
999     f << "params_post_champ_flux_normalise.txt" << std::endl;
1000     f << "params_post_conductivite_thermique.txt" << std::endl;
1001     f.close();
1002     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1003     }
1004 couturad 968 OT_PARAMETRES params_post_temps;
1005     ini_param_post_traitement(&params_post_temps,MSTRUCT::TYPE_POST_TRAITEMENT::POST_TEMPS,false);
1006     sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_temps.txt");
1007     params_post_temps.enregistrer((char*)sys_command.c_str());
1008     if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1009    
1010 couturad 919 return OK;
1011     }
1012    
1013 couturad 971 int PARAMETRES::generer_script_ves(bool etude_mecanique,
1014     bool etude_thermique,
1015     int type_inclusion,
1016     bool fem_maill_lin,
1017     bool fem_maill_quad,
1018     fonction_affiche *fonc_affiche)
1019 couturad 929 {
1020 couturad 971
1021 couturad 951 std::ofstream ofstrm((char*)"generer_nb_ves",std::ios::out|std::ios::trunc);
1022 couturad 929 ofstrm.precision(16);
1023     ofstrm.setf(std::ios::showpoint);
1024     ofstrm << "#!/bin/bash" << std::endl;
1025     ofstrm << "INDEX_DEPART=$1" << std::endl;
1026     ofstrm << "INDEX_FIN=$2" << std::endl;
1027 couturad 968 ofstrm << "CHEMINCOMPILE=$3" << std::endl;
1028 couturad 929 ofstrm << "if [ -z ${INDEX_DEPART// } ]" << std::endl;
1029     ofstrm << "then" << std::endl;
1030     ofstrm << " echo \"Erreur : Numero du ves de depart manquant\"" << std::endl;
1031     ofstrm << " exit" << std::endl;
1032     ofstrm << "fi" << std::endl;
1033     ofstrm << "if [ -z ${INDEX_FIN// } ]" << std::endl;
1034     ofstrm << "then" << std::endl;
1035     ofstrm << " echo \"Erreur : Numero du ves de fin manquant\"" << std::endl;
1036     ofstrm << " exit" << std::endl;
1037     ofstrm << "fi" << std::endl;
1038     ofstrm << "if [ -z ${CHEMINCOMPILE// } ]" << std::endl;
1039     ofstrm << "then" << std::endl;
1040 couturad 958 ofstrm << " if [ -z $PATHMAGICEXEAPP ]" << std::endl;
1041     ofstrm << " then" << std::endl;
1042     ofstrm << " echo \"Erreur : Chemin vers exe/app manquant\"" << std::endl;
1043     ofstrm << " exit" << std::endl;
1044     ofstrm << " else" << std::endl;
1045     ofstrm << " CHEMINCOMPILE=$PATHMAGICEXEAPP" << std::endl;
1046     ofstrm << " fi" << std::endl;
1047 couturad 929 ofstrm << "fi" << std::endl;
1048     ofstrm << "function executer" << std::endl;
1049     ofstrm << "{" << std::endl;
1050     ofstrm << "OPERATION_REUSSIE=1;" << std::endl;
1051     ofstrm << "$*" << std::endl;
1052     ofstrm << "VAR=$?" << std::endl;
1053     ofstrm << "if (( $VAR )) ; then " << std::endl;
1054     ofstrm << " OPERATION_REUSSIE=0; " << std::endl;
1055     ofstrm << " STAT=$VAR;" << std::endl;
1056     ofstrm << "fi" << std::endl;
1057     ofstrm << "}" << std::endl;
1058     ofstrm << "" << std::endl;
1059     ofstrm << "echo \"*********************************************************\"" << std::endl;
1060     ofstrm << "echo \"Generation des microstructures $INDEX_DEPART - $INDEX_FIN\"" << std::endl;
1061     ofstrm << "echo \"*********************************************************\"" << std::endl;
1062     ofstrm << "STAT=$?" << std::endl;
1063     ofstrm << "" << std::endl;
1064     ofstrm << "if [ $INDEX_DEPART -eq 1 ]" << std::endl;
1065     ofstrm << "then" << std::endl;
1066     ofstrm << "mkdir etude" << std::endl;
1067     ofstrm << "fi" << std::endl;
1068     ofstrm << "cd etude" << std::endl;
1069     ofstrm << "for (( k=$INDEX_DEPART; k<=$INDEX_FIN; k++ ))" << std::endl;
1070     ofstrm << "do" << std::endl;
1071     ofstrm << " echo \"Microstructure #$k\"" << std::endl;
1072     ofstrm << " mkdir e$k" << std::endl;
1073     ofstrm << " cd e$k" << std::endl;
1074     ofstrm << " OPERATION_REUSSIE=0" << std::endl;
1075     ofstrm << " until [ $OPERATION_REUSSIE -eq 1 ]; do" << std::endl;
1076 couturad 968 ofstrm << " executer ../../ves $CHEMINCOMPILE" << std::endl;
1077 couturad 929 ofstrm << " done" << std::endl;
1078 couturad 968 ofstrm << " DOSSIER_ACTUEL=$(pwd)" << std::endl;
1079 couturad 929 ofstrm << " cd .." << std::endl;
1080     ofstrm << "done" << std::endl;
1081     ofstrm << "cd .." << std::endl;
1082     ofstrm << "echo \"**********************\"" << std::endl;
1083     ofstrm << "echo \" FIN \"" << std::endl;
1084     ofstrm << "echo \"**********************\"" << std::endl;
1085     ofstrm << "exit $STAT" << std::endl;
1086     ofstrm.close();
1087 couturad 964 if(fonc_affiche!=NULL) fonc_affiche((char*)"generer_nb_ves");
1088 couturad 929 system((char*)"chmod 744 generer_nb_ves");
1089    
1090     ofstrm.open((char*)"ves",std::ios::out|std::ios::trunc);
1091     ofstrm.precision(16);
1092     ofstrm.setf(std::ios::showpoint);
1093     ofstrm << "#!/bin/bash" << std::endl;
1094 couturad 968 ofstrm << "CHEMINCOMPILE=$1" << std::endl;
1095 couturad 929 ofstrm << "function executer" << std::endl;
1096     ofstrm << "{" << std::endl;
1097     ofstrm << "$*" << std::endl;
1098     ofstrm << "VAR=$?" << std::endl;
1099     ofstrm << "if (( $VAR )) ; then " << std::endl;
1100     ofstrm << " STATUSTXT=\"ERREUR dans les tests\"; " << std::endl;
1101     ofstrm << " STAT=$VAR;" << std::endl;
1102     ofstrm << " exit $STAT" << std::endl;
1103     ofstrm << "fi" << std::endl;
1104     ofstrm << "}" << std::endl;
1105     ofstrm << "STATUSTXT=\"Test sans ERREUR\"" << std::endl;
1106     ofstrm << "echo \"*******************************\"" << std::endl;
1107     ofstrm << "echo \"Generation d'une microstructure\"" << std::endl;
1108     ofstrm << "echo \"*******************************\"" << std::endl;
1109     ofstrm << "STAT=$?" << std::endl;
1110 couturad 951 ofstrm << "" << std::endl;
1111     ofstrm << "#Geometrie" << std::endl;
1112 couturad 968 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_geo -ves_out ves_geo.ves -lstparam ../../parametre/geometrie/lstparam_geo.txt" << std::endl;
1113 couturad 951 ofstrm << "executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -brep_out -in ves_geo.magic -out ves_brep.brep" << std::endl;
1114 couturad 968 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_geo.ves -ves_out ves_geo_post.ves -lstparam ../../parametre/post_traitement/lstparam_post_geometrie.txt" << std::endl;
1115 couturad 951 ofstrm << "" << std::endl;
1116     ofstrm << "#Materiau" << std::endl;
1117 couturad 968 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_mat -ves_in ves_geo.ves -ves_out ves_mat.ves -lstparam ../../parametre/materiau/lstparam_mat.txt" << std::endl;
1118 couturad 951 ofstrm << "" << std::endl;
1119     ofstrm << "#Carte" << std::endl;
1120 couturad 968 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_carte -ves_in ves_mat.ves -ves_out ves_carte.ves -param ../../parametre/carte/param_carte.txt" << std::endl;
1121 couturad 929 ofstrm << "" << std::endl;
1122 couturad 951 ofstrm << "#MG Maillage" << std::endl;
1123 couturad 968 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_mg_maill -ves_in ves_carte.ves -ves_out ves_mg_maill.ves -param ../../parametre/maillage/param_maill.txt -carte carte.ctt" << std::endl;
1124     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_mg_maill.ves -ves_out ves_mg_maill_post.ves -lstparam ../../parametre/post_traitement/lstparam_post_mg_maillage.txt" << std::endl;
1125 couturad 951 ofstrm << "executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -gmsh -in ves_mg_maill.magic" << std::endl;
1126 couturad 929 ofstrm << "" << std::endl;
1127 couturad 951 ofstrm << "#Fem Maillage" << std::endl;
1128     if(fem_maill_lin)
1129     {
1130 couturad 968 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_fem_maill -ves_in ves_mg_maill.ves -ves_out ves_fem_maill_lin.ves -param ../../parametre/fem_maillage/param_fem_maill_lin.txt" << std::endl;
1131     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_fem_maill_lin.ves -ves_out ves_fem_maill_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_fem_maillage.txt" << std::endl;
1132 couturad 951 }
1133     if(fem_maill_quad)
1134     {
1135 couturad 968 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_fem_maill -ves_in ves_mg_maill.ves -ves_out ves_fem_maill_quad.ves -param ../../parametre/fem_maillage/param_fem_maill_quad.txt" << std::endl;
1136     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_fem_maill_quad.ves -ves_out ves_fem_maill_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_fem_maillage.txt" << std::endl;
1137 couturad 951 }
1138 couturad 929 ofstrm << "" << std::endl;
1139 couturad 951 ofstrm << "#Etude" << std::endl;
1140     if(fem_maill_lin)
1141     {
1142 couturad 971 if(etude_mecanique)
1143     {
1144     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_lin.ves -ves_out ves_etude_CLDH_sph_lin.ves -param ../../parametre/etude/param_etude_CLDH_sph.txt" << std::endl;
1145     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_lin.ves -ves_out ves_etude_CLCH_sph_lin.ves -param ../../parametre/etude/param_etude_CLCH_sph.txt" << std::endl;
1146     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_lin.ves -ves_out ves_etude_CLDH_dev_lin.ves -param ../../parametre/etude/param_etude_CLDH_dev.txt" << std::endl;
1147     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_lin.ves -ves_out ves_etude_CLCH_dev_lin.ves -param ../../parametre/etude/param_etude_CLCH_dev.txt" << std::endl;
1148     }
1149     if(etude_thermique)
1150     {
1151     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_lin.ves -ves_out ves_etude_CLG_x_lin.ves -param ../../parametre/etude/params_etude_CLG_x.txt" << std::endl;
1152     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_lin.ves -ves_out ves_etude_CLG_y_lin.ves -param ../../parametre/etude/params_etude_CLG_y.txt" << std::endl;
1153     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_lin.ves -ves_out ves_etude_CLG_z_lin.ves -param ../../parametre/etude/params_etude_CLG_z.txt" << std::endl;
1154     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_lin.ves -ves_out ves_etude_CLF_x_lin.ves -param ../../parametre/etude/params_etude_CLF_x.txt" << std::endl;
1155     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_lin.ves -ves_out ves_etude_CLF_y_lin.ves -param ../../parametre/etude/params_etude_CLF_y.txt" << std::endl;
1156     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_lin.ves -ves_out ves_etude_CLF_z_lin.ves -param ../../parametre/etude/params_etude_CLF_z.txt" << std::endl;
1157     }
1158 couturad 951 }
1159     if(fem_maill_quad)
1160     {
1161 couturad 971 if(etude_mecanique)
1162     {
1163     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_quad.ves -ves_out ves_etude_CLDH_sph_quad.ves -param ../../parametre/etude/param_etude_CLDH_sph.txt" << std::endl;
1164     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_quad.ves -ves_out ves_etude_CLCH_sph_quad.ves -param ../../parametre/etude/param_etude_CLCH_sph.txt" << std::endl;
1165     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_quad.ves -ves_out ves_etude_CLDH_dev_quad.ves -param ../../parametre/etude/param_etude_CLDH_dev.txt" << std::endl;
1166     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_quad.ves -ves_out ves_etude_CLCH_dev_quad.ves -param ../../parametre/etude/param_etude_CLCH_dev.txt" << std::endl;
1167     }
1168     if(etude_thermique)
1169     {
1170     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_quad.ves -ves_out ves_etude_CLG_x_quad.ves -param ../../parametre/etude/params_etude_CLG_x.txt" << std::endl;
1171     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_quad.ves -ves_out ves_etude_CLG_y_quad.ves -param ../../parametre/etude/params_etude_CLG_y.txt" << std::endl;
1172     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_quad.ves -ves_out ves_etude_CLG_z_quad.ves -param ../../parametre/etude/params_etude_CLG_z.txt" << std::endl;
1173     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_quad.ves -ves_out ves_etude_CLF_x_quad.ves -param ../../parametre/etude/params_etude_CLF_x.txt" << std::endl;
1174     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_quad.ves -ves_out ves_etude_CLF_y_quad.ves -param ../../parametre/etude/params_etude_CLF_y.txt" << std::endl;
1175     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_etude -ves_in ves_fem_maill_quad.ves -ves_out ves_etude_CLF_z_quad.ves -param ../../parametre/etude/params_etude_CLF_z.txt" << std::endl;
1176    
1177     }
1178 couturad 951 }
1179 couturad 929 ofstrm << "" << std::endl;
1180 couturad 951 ofstrm << "#Calcul" << std::endl;
1181     if(fem_maill_lin)
1182     {
1183 couturad 971 if(etude_mecanique)
1184     {
1185     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLDH_sph_lin.ves -ves_out ves_calcul_CLDH_sph_lin.ves -param ../../parametre/etude/param_etude_CLDH_sph.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1186     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLDH_sph_lin.ves -ves_out ves_calcul_CLDH_sph_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca.txt" << std::endl;
1187     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLDH_sph_post_lin.ves -ves_out ves_calcul_CLDH_sph_ecart_chargement_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_sph.txt" << std::endl;
1188     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLCH_sph_lin.ves -ves_out ves_calcul_CLCH_sph_lin.ves -param ../../parametre/etude/param_etude_CLCH_sph.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1189     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLCH_sph_lin.ves -ves_out ves_calcul_CLCH_sph_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca.txt" << std::endl;
1190     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLCH_sph_post_lin.ves -ves_out ves_calcul_CLCH_sph_ecart_chargement_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_sph.txt" << std::endl;
1191     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLDH_dev_lin.ves -ves_out ves_calcul_CLDH_dev_lin.ves -param ../../parametre/etude/param_etude_CLDH_dev.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1192     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLDH_dev_lin.ves -ves_out ves_calcul_CLDH_dev_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca.txt" << std::endl;
1193     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLDH_dev_post_lin.ves -ves_out ves_calcul_CLDH_dev_ecart_chargement_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_dev.txt" << std::endl;
1194     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLCH_dev_lin.ves -ves_out ves_calcul_CLCH_dev_lin.ves -param ../../parametre/etude/param_etude_CLCH_dev.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1195     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLCH_dev_lin.ves -ves_out ves_calcul_CLCH_dev_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca.txt" << std::endl;
1196     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLCH_dev_post_lin.ves -ves_out ves_calcul_CLCH_dev_ecart_chargement_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_dev.txt" << std::endl;
1197     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_sph ves_calcul_CLDH_sph_post_lin.ves -ves_dev ves_calcul_CLDH_dev_post_lin.ves -ves_out ves_CLDH_modules_elasticite_post_lin.ves -param ../../parametre/post_traitement/params_post_modules_elasticite.txt" << std::endl;
1198     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_sph ves_calcul_CLCH_sph_post_lin.ves -ves_dev ves_calcul_CLCH_dev_post_lin.ves -ves_out ves_CLCH_modules_elasticite_post_lin.ves -param ../../parametre/post_traitement/params_post_modules_elasticite.txt" << std::endl;
1199     }
1200     if(etude_thermique)
1201     {
1202     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLG_x_lin.ves -ves_out ves_calcul_CLG_x_lin.ves -param ../../parametre/etude/params_etude_CLG_x.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1203     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLG_x_lin.ves -ves_out ves_calcul_CLG_x_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_ther.txt" << std::endl;
1204     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLG_y_lin.ves -ves_out ves_calcul_CLG_y_lin.ves -param ../../parametre/etude/params_etude_CLG_y.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1205     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLG_y_lin.ves -ves_out ves_calcul_CLG_y_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_ther.txt" << std::endl;
1206     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLG_z_lin.ves -ves_out ves_calcul_CLG_z_lin.ves -param ../../parametre/etude/params_etude_CLG_z.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1207     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLG_z_lin.ves -ves_out ves_calcul_CLG_z_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_ther.txt" << std::endl;
1208     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLF_x_lin.ves -ves_out ves_calcul_CLF_x_lin.ves -param ../../parametre/etude/params_etude_CLF_x.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1209     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLF_x_lin.ves -ves_out ves_calcul_CLF_x_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_ther.txt" << std::endl;
1210     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLF_y_lin.ves -ves_out ves_calcul_CLF_y_lin.ves -param ../../parametre/etude/params_etude_CLF_y.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1211     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLF_y_lin.ves -ves_out ves_calcul_CLF_y_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_ther.txt" << std::endl;
1212     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLF_z_lin.ves -ves_out ves_calcul_CLF_z_lin.ves -param ../../parametre/etude/params_etude_CLF_z.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1213     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLF_z_lin.ves -ves_out ves_calcul_CLF_z_post_lin.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_ther.txt" << std::endl;
1214     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_lambda_x ves_calcul_CLG_x_post_lin.ves "
1215     "-ves_lambda_y ves_calcul_CLG_y_post_lin.ves "
1216     "-ves_lambda_z ves_calcul_CLG_z_post_lin.ves "
1217     "-ves_out ves_CLG_conductivite_thermique_post_lin.ves "
1218     "-param ../../parametre/post_traitement/params_post_conductivite_thermique.txt" << std::endl;
1219     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_lambda_x ves_calcul_CLF_x_post_lin.ves "
1220     "-ves_lambda_y ves_calcul_CLF_y_post_lin.ves "
1221     "-ves_lambda_z ves_calcul_CLF_z_post_lin.ves "
1222     "-ves_out ves_CLF_conductivite_thermique_post_lin.ves "
1223     "-param ../../parametre/post_traitement/params_post_conductivite_thermique.txt" << std::endl;
1224     }
1225 couturad 951 }
1226 couturad 968
1227 couturad 951 if(fem_maill_quad)
1228     {
1229 couturad 971 if(etude_mecanique)
1230     {
1231     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLDH_sph_quad.ves -ves_out ves_calcul_CLDH_sph_quad.ves -param ../../parametre/etude/param_etude_CLDH_sph.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1232     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLDH_sph_quad.ves -ves_out ves_calcul_CLDH_sph_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca.txt" << std::endl;
1233     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLDH_sph_post_quad.ves -ves_out ves_calcul_CLDH_sph_ecart_chargement_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_sph.txt" << std::endl;
1234     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLCH_sph_quad.ves -ves_out ves_calcul_CLCH_sph_quad.ves -param ../../parametre/etude/param_etude_CLCH_sph.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1235     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLCH_sph_quad.ves -ves_out ves_calcul_CLCH_sph_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca.txt" << std::endl;
1236     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLCH_sph_post_quad.ves -ves_out ves_calcul_CLCH_sph_ecart_chargement_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_sph.txt" << std::endl;
1237     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLDH_dev_quad.ves -ves_out ves_calcul_CLDH_dev_quad.ves -param ../../parametre/etude/param_etude_CLDH_dev.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1238     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLDH_dev_quad.ves -ves_out ves_calcul_CLDH_dev_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca.txt" << std::endl;
1239     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLDH_dev_post_quad.ves -ves_out ves_calcul_CLDH_dev_ecart_chargement_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_dev.txt" << std::endl;
1240     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLCH_dev_quad.ves -ves_out ves_calcul_CLCH_dev_quad.ves -param ../../parametre/etude/param_etude_CLCH_dev.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1241     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLCH_dev_quad.ves -ves_out ves_calcul_CLCH_dev_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca.txt" << std::endl;
1242     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLCH_dev_post_quad.ves -ves_out ves_calcul_CLCH_dev_ecart_chargement_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_dev.txt" << std::endl;
1243     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_sph ves_calcul_CLDH_sph_post_quad.ves -ves_dev ves_calcul_CLDH_dev_post_quad.ves -ves_out ves_CLDH_modules_elasticite_post_quad.ves -param ../../parametre/post_traitement/params_post_modules_elasticite.txt" << std::endl;
1244     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_sph ves_calcul_CLCH_sph_post_quad.ves -ves_dev ves_calcul_CLCH_dev_post_quad.ves -ves_out ves_CLCH_modules_elasticite_post_quad.ves -param ../../parametre/post_traitement/params_post_modules_elasticite.txt" << std::endl;
1245     }
1246     if(etude_thermique)
1247     {
1248     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLG_x_quad.ves -ves_out ves_calcul_CLG_x_quad.ves -param ../../parametre/etude/params_etude_CLG_x.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1249     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLG_x_quad.ves -ves_out ves_calcul_CLG_x_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_ther.txt" << std::endl;
1250     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLG_y_quad.ves -ves_out ves_calcul_CLG_y_quad.ves -param ../../parametre/etude/params_etude_CLG_y.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1251     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLG_y_quad.ves -ves_out ves_calcul_CLG_y_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_ther.txt" << std::endl;
1252     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLG_z_quad.ves -ves_out ves_calcul_CLG_z_quad.ves -param ../../parametre/etude/params_etude_CLG_z.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1253     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLG_z_quad.ves -ves_out ves_calcul_CLG_z_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_ther.txt" << std::endl;
1254     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLF_x_quad.ves -ves_out ves_calcul_CLF_x_quad.ves -param ../../parametre/etude/params_etude_CLF_x.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1255     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLF_x_quad.ves -ves_out ves_calcul_CLF_x_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_ther.txt" << std::endl;
1256     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLF_y_quad.ves -ves_out ves_calcul_CLF_y_quad.ves -param ../../parametre/etude/params_etude_CLF_y.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1257     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLF_y_quad.ves -ves_out ves_calcul_CLF_y_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_ther.txt" << std::endl;
1258     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_calcul -ves_in ves_etude_CLF_z_quad.ves -ves_out ves_calcul_CLF_z_quad.ves -param ../../parametre/etude/params_etude_CLF_z.txt -paramaster ../../parametre/etude/param_aster.txt" << std::endl;
1259     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLF_z_quad.ves -ves_out ves_calcul_CLF_z_post_quad.ves -lstparam ../../parametre/post_traitement/lstparam_post_champ_ther.txt" << std::endl;
1260     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_lambda_x ves_calcul_CLG_x_post_quad.ves "
1261     "-ves_lambda_y ves_calcul_CLG_y_post_quad.ves "
1262     "-ves_lambda_z ves_calcul_CLG_z_post_quad.ves "
1263     "-ves_out ves_CLG_conductivite_thermique_post_quad.ves "
1264     "-param ../../parametre/post_traitement/params_post_conductivite_thermique.txt" << std::endl;
1265     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_lambda_x ves_calcul_CLF_x_post_quad.ves "
1266     "-ves_lambda_y ves_calcul_CLF_y_post_quad.ves "
1267     "-ves_lambda_z ves_calcul_CLF_z_post_quad.ves "
1268     "-ves_out ves_CLF_conductivite_thermique_post_quad.ves "
1269     "-param ../../parametre/post_traitement/params_post_conductivite_thermique.txt" << std::endl;
1270     }
1271 couturad 951 }
1272     ofstrm << "" << std::endl;
1273     ofstrm << "rm *.msh" << std::endl;
1274     ofstrm << "rm *.sol" << std::endl;
1275     ofstrm << "rm *.resu" << std::endl;
1276     ofstrm << "rm *.comm" << std::endl;
1277     ofstrm << "rm *.mail" << std::endl;
1278     ofstrm << "rm *.retour" << std::endl;
1279     ofstrm << "rm *.export" << std::endl;
1280     ofstrm << "rm *.log" << std::endl;
1281     ofstrm << "rm *.mess" << std::endl;
1282 couturad 968 ofstrm << "#find . ! -name '*.ves' -type f -exec rm -f {} +" << std::endl;
1283 couturad 929 ofstrm << "cd .." << std::endl;
1284     ofstrm << "echo \"**********************\"" << std::endl;
1285     ofstrm << "echo $STATUSTXT" << std::endl;
1286     ofstrm << "echo \"**********************\"" << std::endl;
1287     ofstrm << "exit $STAT" << std::endl;
1288 couturad 964 ofstrm.close();
1289     if(fonc_affiche!=NULL) fonc_affiche((char*)"ves");
1290 couturad 929 system((char*)"chmod 744 ves");
1291 couturad 971
1292 couturad 968 return OK;
1293 couturad 929 }
1294    
1295 couturad 971 int PARAMETRES::generer_script_post_traitement(bool etude_mecanique,
1296     bool etude_thermique,
1297     int type_inclusion,
1298     bool fem_maill_lin,
1299     bool fem_maill_quad,
1300     double epaisseur_couche_erosion,
1301     fonction_affiche *fonc_affiche)
1302 couturad 951 {
1303 couturad 968 std::ofstream ofstrm((char*)"post_traitement",std::ios::out|std::ios::trunc);
1304 couturad 951 ofstrm.precision(16);
1305     ofstrm.setf(std::ios::showpoint);
1306     ofstrm << "#!/bin/bash" << std::endl;
1307 couturad 968 ofstrm << "CHEMINCOMPILE=$1" << std::endl;
1308 couturad 958 ofstrm << "if [ -z ${CHEMINCOMPILE// } ]" << std::endl;
1309     ofstrm << "then" << std::endl;
1310     ofstrm << " if [ -z $PATHMAGICEXEAPP ]" << std::endl;
1311     ofstrm << " then" << std::endl;
1312     ofstrm << " echo \"Erreur : Chemin vers exe/app manquant\"" << std::endl;
1313     ofstrm << " exit" << std::endl;
1314     ofstrm << " else" << std::endl;
1315     ofstrm << " CHEMINCOMPILE=$PATHMAGICEXEAPP" << std::endl;
1316     ofstrm << " fi" << std::endl;
1317     ofstrm << "fi" << std::endl;
1318 couturad 951 ofstrm << "function executer" << std::endl;
1319     ofstrm << "{" << std::endl;
1320     ofstrm << "$*" << std::endl;
1321     ofstrm << "VAR=$?" << std::endl;
1322     ofstrm << "if (( $VAR )) ; then " << std::endl;
1323     ofstrm << " STATUSTXT=\"ERREUR dans les tests\"; " << std::endl;
1324     ofstrm << " STAT=$VAR;" << std::endl;
1325     ofstrm << " exit $STAT" << std::endl;
1326     ofstrm << "fi" << std::endl;
1327     ofstrm << "}" << std::endl;
1328     ofstrm << "STATUSTXT=\"Test sans ERREUR\"" << std::endl;
1329     ofstrm << "echo \"*******************************\"" << std::endl;
1330     ofstrm << "echo \"Generation d'une microstructure\"" << std::endl;
1331     ofstrm << "echo \"*******************************\"" << std::endl;
1332     ofstrm << "STAT=$?" << std::endl;
1333     ofstrm << "" << std::endl;
1334     ofstrm << "mkdir resultats" << std::endl;
1335     ofstrm << "" << std::endl;
1336     ofstrm << "#Geometrie" << std::endl;
1337     ofstrm << "mkdir -p resultats/cao" << std::endl;
1338 couturad 968 ofstrm << "find etude/ -name \"ves_geo_post.ves\" | sort > tmp_lst_ves_geo_post.txt" << std::endl;
1339     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_geo_post.txt -lstparam parametre/post_traitement/lstparam_post_geometrie.txt -dossier resultats/cao" << std::endl;
1340     ofstrm << "rm tmp_lst_ves_geo_post.txt" << std::endl;
1341 couturad 951 ofstrm << "" << std::endl;
1342     ofstrm << "#MG Maillage" << std::endl;
1343     ofstrm << "mkdir -p resultats/maillage_mg" << std::endl;
1344 couturad 968 ofstrm << "find etude/ -name \"ves_mg_maill_post.ves\" | sort > tmp_lst_ves_mg_maill_post.txt" << std::endl;
1345     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_mg_maill_post.txt -lstparam parametre/post_traitement/lstparam_post_mg_maillage.txt -dossier resultats/maillage_mg" << std::endl;
1346     ofstrm << "rm tmp_lst_ves_mg_maill_post.txt" << std::endl;
1347 couturad 951 ofstrm << "" << std::endl;
1348     ofstrm << "#Fem Maillage" << std::endl;
1349     if(fem_maill_lin)
1350     {
1351 couturad 968 ofstrm << "mkdir -p resultats/maillage_fem/lin" << std::endl;
1352     ofstrm << "find etude/ -name \"ves_fem_maill_post_lin.ves\" | sort > tmp_lst_ves_fem_maill_post_lin.txt" << std::endl;
1353     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_fem_maill_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_fem_maillage.txt -dossier resultats/maillage_fem/lin" << std::endl;
1354     ofstrm << "rm tmp_lst_ves_fem_maill_post_lin.txt" << std::endl;
1355 couturad 951 }
1356     if(fem_maill_quad)
1357     {
1358 couturad 968 ofstrm << "mkdir -p resultats/maillage_fem/quad" << std::endl;
1359     ofstrm << "find etude/ -name \"ves_fem_maill_post_quad.ves\" | sort > tmp_lst_ves_fem_maill_post_quad.txt" << std::endl;
1360     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_fem_maill_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_fem_maillage.txt -dossier resultats/maillage_fem/quad" << std::endl;
1361     ofstrm << "rm tmp_lst_ves_fem_maill_post_quad.txt" << std::endl;
1362 couturad 951 }
1363     ofstrm << "" << std::endl;
1364     ofstrm << "#Calculs" << std::endl;
1365     if(fem_maill_lin)
1366 couturad 968 {
1367 couturad 971 if(etude_mecanique)
1368     {
1369     ofstrm << "mkdir -p resultats/champ/DH/sph/lin" << std::endl;
1370     ofstrm << "mkdir -p resultats/champ/DH/dev/lin" << std::endl;
1371     ofstrm << "mkdir -p resultats/champ/CH/sph/lin" << std::endl;
1372     ofstrm << "mkdir -p resultats/champ/CH/dev/lin" << std::endl;
1373     ofstrm << "mkdir -p resultats/modules_elasticite/DH/lin" << std::endl;
1374     ofstrm << "mkdir -p resultats/modules_elasticite/CH/lin" << std::endl;
1375     ofstrm << "find etude/ -name \"ves_calcul_CLDH_sph_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLDH_sph_post_lin.txt" << std::endl;
1376     ofstrm << "find etude/ -name \"ves_calcul_CLCH_sph_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLCH_sph_post_lin.txt" << std::endl;
1377     ofstrm << "find etude/ -name \"ves_calcul_CLDH_dev_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLDH_dev_post_lin.txt" << std::endl;
1378     ofstrm << "find etude/ -name \"ves_calcul_CLCH_dev_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLCH_dev_post_lin.txt" << std::endl;
1379     ofstrm << "find etude/ -name \"ves_calcul_CLDH_sph_ecart_chargement_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLDH_sph_ecart_chargement_post_lin.txt" << std::endl;
1380     ofstrm << "find etude/ -name \"ves_calcul_CLCH_sph_ecart_chargement_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLCH_sph_ecart_chargement_post_lin.txt" << std::endl;
1381     ofstrm << "find etude/ -name \"ves_calcul_CLDH_dev_ecart_chargement_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLDH_dev_ecart_chargement_post_lin.txt" << std::endl;
1382     ofstrm << "find etude/ -name \"ves_calcul_CLCH_dev_ecart_chargement_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLCH_dev_ecart_chargement_post_lin.txt" << std::endl;
1383     ofstrm << "find etude/ -name \"ves_CLDH_modules_elasticite_post_lin.ves\" | sort > tmp_lst_ves_CLDH_modules_elasticite_post_lin.txt" << std::endl;
1384     ofstrm << "find etude/ -name \"ves_CLCH_modules_elasticite_post_lin.ves\" | sort > tmp_lst_ves_CLCH_modules_elasticite_post_lin.txt" << std::endl;
1385     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLDH_sph_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca.txt -dossier resultats/champ/DH/sph/lin" << std::endl;
1386     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLCH_sph_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca.txt -dossier resultats/champ/CH/sph/lin" << std::endl;
1387     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLDH_dev_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca.txt -dossier resultats/champ/DH/dev/lin" << std::endl;
1388     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLCH_dev_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca.txt -dossier resultats/champ/CH/dev/lin" << std::endl;
1389     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLDH_sph_ecart_chargement_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_sph.txt -dossier resultats/champ/DH/sph/lin" << std::endl;
1390     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLCH_sph_ecart_chargement_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_sph.txt -dossier resultats/champ/CH/sph/lin" << std::endl;
1391     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLDH_dev_ecart_chargement_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_dev.txt -dossier resultats/champ/DH/dev/lin" << std::endl;
1392     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLCH_dev_ecart_chargement_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_dev.txt -dossier resultats/champ/CH/dev/lin" << std::endl;
1393     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_CLDH_modules_elasticite_post_lin.txt -param parametre/post_traitement/params_post_modules_elasticite.txt -dossier resultats/modules_elasticite/DH/lin" << std::endl;
1394     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_CLCH_modules_elasticite_post_lin.txt -param parametre/post_traitement/params_post_modules_elasticite.txt -dossier resultats/modules_elasticite/CH/lin" << std::endl;
1395     ofstrm << "rm tmp_lst_ves_calcul_CLDH_sph_post_lin.txt" << std::endl;
1396     ofstrm << "rm tmp_lst_ves_calcul_CLCH_sph_post_lin.txt" << std::endl;
1397     ofstrm << "rm tmp_lst_ves_calcul_CLDH_dev_post_lin.txt" << std::endl;
1398     ofstrm << "rm tmp_lst_ves_calcul_CLCH_dev_post_lin.txt" << std::endl;
1399     ofstrm << "rm tmp_lst_ves_calcul_CLDH_sph_ecart_chargement_post_lin.txt" << std::endl;
1400     ofstrm << "rm tmp_lst_ves_calcul_CLCH_sph_ecart_chargement_post_lin.txt" << std::endl;
1401     ofstrm << "rm tmp_lst_ves_calcul_CLDH_dev_ecart_chargement_post_lin.txt" << std::endl;
1402     ofstrm << "rm tmp_lst_ves_calcul_CLCH_dev_ecart_chargement_post_lin.txt" << std::endl;
1403     ofstrm << "rm tmp_lst_ves_CLDH_modules_elasticite_post_lin.txt" << std::endl;
1404     ofstrm << "rm tmp_lst_ves_CLCH_modules_elasticite_post_lin.txt" << std::endl;
1405     }
1406     if(etude_thermique)
1407     {
1408     ofstrm << "mkdir -p resultats/champ/FH/F_x/lin" << std::endl;
1409     ofstrm << "mkdir -p resultats/champ/FH/F_y/lin" << std::endl;
1410     ofstrm << "mkdir -p resultats/champ/FH/F_z/lin" << std::endl;
1411     ofstrm << "mkdir -p resultats/champ/GH/G_x/lin" << std::endl;
1412     ofstrm << "mkdir -p resultats/champ/GH/G_y/lin" << std::endl;
1413     ofstrm << "mkdir -p resultats/champ/GH/G_z/lin" << std::endl;
1414     ofstrm << "mkdir -p resultats/conductivite_thermique/FH/lin" << std::endl;
1415     ofstrm << "mkdir -p resultats/conductivite_thermique/GH/lin" << std::endl;
1416     ofstrm << "find etude/ -name \"ves_calcul_CLF_x_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLF_x_post_lin.txt" << std::endl;
1417     ofstrm << "find etude/ -name \"ves_calcul_CLF_y_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLF_y_post_lin.txt" << std::endl;
1418     ofstrm << "find etude/ -name \"ves_calcul_CLF_z_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLF_z_post_lin.txt" << std::endl;
1419     ofstrm << "find etude/ -name \"ves_calcul_CLG_x_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLG_x_post_lin.txt" << std::endl;
1420     ofstrm << "find etude/ -name \"ves_calcul_CLG_y_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLG_y_post_lin.txt" << std::endl;
1421     ofstrm << "find etude/ -name \"ves_calcul_CLG_z_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLG_z_post_lin.txt" << std::endl;
1422     ofstrm << "find etude/ -name \"ves_CLF_conductivite_thermique_post_lin.ves\" | sort > tmp_lst_ves_CLF_conductivite_thermique_post_lin.txt" << std::endl;
1423     ofstrm << "find etude/ -name \"ves_CLG_conductivite_thermique_post_lin.ves\" | sort > tmp_lst_ves_CLG_conductivite_thermique_post_lin.txt" << std::endl;
1424     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLF_x_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_ther.txt -dossier resultats/champ/FH/F_x/lin" << std::endl;
1425     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLF_y_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_ther.txt -dossier resultats/champ/FH/F_y/lin" << std::endl;
1426     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLF_z_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_ther.txt -dossier resultats/champ/FH/F_z/lin" << std::endl;
1427     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLG_x_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_ther.txt -dossier resultats/champ/GH/G_x/lin" << std::endl;
1428     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLG_y_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_ther.txt -dossier resultats/champ/GH/G_y/lin" << std::endl;
1429     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLG_z_post_lin.txt -lstparam parametre/post_traitement/lstparam_post_champ_ther.txt -dossier resultats/champ/GH/G_z/lin" << std::endl;
1430     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_CLF_conductivite_thermique_post_lin.txt -param parametre/post_traitement/params_post_conductivite_thermique.txt -dossier resultats/conductivite_thermique/FH/lin" << std::endl;
1431     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_CLG_conductivite_thermique_post_lin.txt -param parametre/post_traitement/params_post_conductivite_thermique.txt -dossier resultats/conductivite_thermique/GH/lin" << std::endl;
1432     ofstrm << "rm tmp_lst_ves_calcul_CLF_x_post_lin.txt" << std::endl;
1433     ofstrm << "rm tmp_lst_ves_calcul_CLF_y_post_lin.txt" << std::endl;
1434     ofstrm << "rm tmp_lst_ves_calcul_CLF_z_post_lin.txt" << std::endl;
1435     ofstrm << "rm tmp_lst_ves_calcul_CLG_x_post_lin.txt" << std::endl;
1436     ofstrm << "rm tmp_lst_ves_calcul_CLG_y_post_lin.txt" << std::endl;
1437     ofstrm << "rm tmp_lst_ves_calcul_CLG_z_post_lin.txt" << std::endl;
1438     ofstrm << "rm tmp_lst_ves_CLF_conductivite_thermique_post_lin.txt" << std::endl;
1439     ofstrm << "rm tmp_lst_ves_CLG_conductivite_thermique_post_lin.txt" << std::endl;
1440     }
1441 couturad 951 }
1442     if(fem_maill_quad)
1443     {
1444 couturad 971 if(etude_mecanique)
1445     {
1446     ofstrm << "mkdir -p resultats/champ/DH/sph/quad" << std::endl;
1447     ofstrm << "mkdir -p resultats/champ/DH/dev/quad" << std::endl;
1448     ofstrm << "mkdir -p resultats/champ/CH/sph/quad" << std::endl;
1449     ofstrm << "mkdir -p resultats/champ/CH/dev/quad" << std::endl;
1450     ofstrm << "mkdir -p resultats/modules_elasticite/DH/quad" << std::endl;
1451     ofstrm << "mkdir -p resultats/modules_elasticite/CH/quad" << std::endl;
1452     ofstrm << "find etude/ -name \"ves_calcul_CLDH_sph_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLDH_sph_post_quad.txt" << std::endl;
1453     ofstrm << "find etude/ -name \"ves_calcul_CLCH_sph_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLCH_sph_post_quad.txt" << std::endl;
1454     ofstrm << "find etude/ -name \"ves_calcul_CLDH_dev_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLDH_dev_post_quad.txt" << std::endl;
1455     ofstrm << "find etude/ -name \"ves_calcul_CLCH_dev_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLCH_dev_post_quad.txt" << std::endl;
1456     ofstrm << "find etude/ -name \"ves_calcul_CLDH_sph_ecart_chargement_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLDH_sph_ecart_chargement_post_quad.txt" << std::endl;
1457     ofstrm << "find etude/ -name \"ves_calcul_CLCH_sph_ecart_chargement_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLCH_sph_ecart_chargement_post_quad.txt" << std::endl;
1458     ofstrm << "find etude/ -name \"ves_calcul_CLDH_dev_ecart_chargement_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLDH_dev_ecart_chargement_post_quad.txt" << std::endl;
1459     ofstrm << "find etude/ -name \"ves_calcul_CLCH_dev_ecart_chargement_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLCH_dev_ecart_chargement_post_quad.txt" << std::endl;
1460     ofstrm << "find etude/ -name \"ves_CLDH_modules_elasticite_post_quad.ves\" | sort > tmp_lst_ves_CLDH_modules_elasticite_post_quad.txt" << std::endl;
1461     ofstrm << "find etude/ -name \"ves_CLCH_modules_elasticite_post_quad.ves\" | sort > tmp_lst_ves_CLCH_modules_elasticite_post_quad.txt" << std::endl;
1462     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLDH_sph_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca.txt -dossier resultats/champ/DH/sph/quad" << std::endl;
1463     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLCH_sph_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca.txt -dossier resultats/champ/CH/sph/quad" << std::endl;
1464     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLDH_dev_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca.txt -dossier resultats/champ/DH/dev/quad" << std::endl;
1465     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLCH_dev_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca.txt -dossier resultats/champ/CH/dev/quad" << std::endl;
1466     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLDH_sph_ecart_chargement_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_sph.txt -dossier resultats/champ/DH/sph/quad" << std::endl;
1467     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLCH_sph_ecart_chargement_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_sph.txt -dossier resultats/champ/CH/sph/quad" << std::endl;
1468     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLDH_dev_ecart_chargement_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_dev.txt -dossier resultats/champ/DH/dev/quad" << std::endl;
1469     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLCH_dev_ecart_chargement_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_dev.txt -dossier resultats/champ/CH/dev/quad" << std::endl;
1470     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_CLDH_modules_elasticite_post_quad.txt -param parametre/post_traitement/params_post_modules_elasticite.txt -dossier resultats/modules_elasticite/DH/quad" << std::endl;
1471     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_CLCH_modules_elasticite_post_quad.txt -param parametre/post_traitement/params_post_modules_elasticite.txt -dossier resultats/modules_elasticite/CH/quad" << std::endl;
1472     ofstrm << "rm tmp_lst_ves_calcul_CLDH_sph_post_quad.txt" << std::endl;
1473     ofstrm << "rm tmp_lst_ves_calcul_CLCH_sph_post_quad.txt" << std::endl;
1474     ofstrm << "rm tmp_lst_ves_calcul_CLDH_dev_post_quad.txt" << std::endl;
1475     ofstrm << "rm tmp_lst_ves_calcul_CLCH_dev_post_quad.txt" << std::endl;
1476     ofstrm << "rm tmp_lst_ves_calcul_CLDH_sph_ecart_chargement_post_quad.txt" << std::endl;
1477     ofstrm << "rm tmp_lst_ves_calcul_CLCH_sph_ecart_chargement_post_quad.txt" << std::endl;
1478     ofstrm << "rm tmp_lst_ves_calcul_CLDH_dev_ecart_chargement_post_quad.txt" << std::endl;
1479     ofstrm << "rm tmp_lst_ves_calcul_CLCH_dev_ecart_chargement_post_quad.txt" << std::endl;
1480     ofstrm << "rm tmp_lst_ves_CLDH_modules_elasticite_post_quad.txt" << std::endl;
1481     ofstrm << "rm tmp_lst_ves_CLCH_modules_elasticite_post_quad.txt" << std::endl;
1482     }
1483     if(etude_thermique)
1484     {
1485     ofstrm << "mkdir -p resultats/champ/FH/F_x/quad" << std::endl;
1486     ofstrm << "mkdir -p resultats/champ/FH/F_y/quad" << std::endl;
1487     ofstrm << "mkdir -p resultats/champ/FH/F_z/quad" << std::endl;
1488     ofstrm << "mkdir -p resultats/champ/GH/G_x/quad" << std::endl;
1489     ofstrm << "mkdir -p resultats/champ/GH/G_y/quad" << std::endl;
1490     ofstrm << "mkdir -p resultats/champ/GH/G_z/quad" << std::endl;
1491     ofstrm << "mkdir -p resultats/conductivite_thermique/FH/quad" << std::endl;
1492     ofstrm << "mkdir -p resultats/conductivite_thermique/GH/quad" << std::endl;
1493     ofstrm << "find etude/ -name \"ves_calcul_CLF_x_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLF_x_post_quad.txt" << std::endl;
1494     ofstrm << "find etude/ -name \"ves_calcul_CLF_y_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLF_y_post_quad.txt" << std::endl;
1495     ofstrm << "find etude/ -name \"ves_calcul_CLF_z_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLF_z_post_quad.txt" << std::endl;
1496     ofstrm << "find etude/ -name \"ves_calcul_CLG_x_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLG_x_post_quad.txt" << std::endl;
1497     ofstrm << "find etude/ -name \"ves_calcul_CLG_y_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLG_y_post_quad.txt" << std::endl;
1498     ofstrm << "find etude/ -name \"ves_calcul_CLG_z_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLG_z_post_quad.txt" << std::endl;
1499     ofstrm << "find etude/ -name \"ves_CLF_conductivite_thermique_post_quad.ves\" | sort > tmp_lst_ves_CLF_conductivite_thermique_post_quad.txt" << std::endl;
1500     ofstrm << "find etude/ -name \"ves_CLG_conductivite_thermique_post_quad.ves\" | sort > tmp_lst_ves_CLG_conductivite_thermique_post_quad.txt" << std::endl;
1501     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLF_x_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_ther.txt -dossier resultats/champ/FH/F_x/quad" << std::endl;
1502     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLF_y_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_ther.txt -dossier resultats/champ/FH/F_y/quad" << std::endl;
1503     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLF_z_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_ther.txt -dossier resultats/champ/FH/F_z/quad" << std::endl;
1504     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLG_x_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_ther.txt -dossier resultats/champ/GH/G_x/quad" << std::endl;
1505     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLG_y_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_ther.txt -dossier resultats/champ/GH/G_y/quad" << std::endl;
1506     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLG_z_post_quad.txt -lstparam parametre/post_traitement/lstparam_post_champ_ther.txt -dossier resultats/champ/GH/G_z/quad" << std::endl;
1507     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_CLF_conductivite_thermique_post_quad.txt -param parametre/post_traitement/params_post_conductivite_thermique.txt -dossier resultats/conductivite_thermique/FH/quad" << std::endl;
1508     ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_CLG_conductivite_thermique_post_quad.txt -param parametre/post_traitement/params_post_conductivite_thermique.txt -dossier resultats/conductivite_thermique/GH/quad" << std::endl;
1509     ofstrm << "rm tmp_lst_ves_calcul_CLF_x_post_quad.txt" << std::endl;
1510     ofstrm << "rm tmp_lst_ves_calcul_CLF_y_post_quad.txt" << std::endl;
1511     ofstrm << "rm tmp_lst_ves_calcul_CLF_z_post_quad.txt" << std::endl;
1512     ofstrm << "rm tmp_lst_ves_calcul_CLG_x_post_quad.txt" << std::endl;
1513     ofstrm << "rm tmp_lst_ves_calcul_CLG_y_post_quad.txt" << std::endl;
1514     ofstrm << "rm tmp_lst_ves_calcul_CLG_z_post_quad.txt" << std::endl;
1515     ofstrm << "rm tmp_lst_ves_CLF_conductivite_thermique_post_quad.txt" << std::endl;
1516     ofstrm << "rm tmp_lst_ves_CLG_conductivite_thermique_post_quad.txt" << std::endl;
1517     }
1518 couturad 951 }
1519     ofstrm << "" << std::endl;
1520 couturad 968 ofstrm << "./produire_figures 0" << std::endl;
1521     ofstrm << "echo \"**********************\"" << std::endl;
1522     ofstrm << "echo \" FIN \"" << std::endl;
1523     ofstrm << "echo \"**********************\"" << std::endl;
1524     ofstrm << "exit $STAT" << std::endl;
1525     ofstrm.close();
1526     if(fonc_affiche!=NULL) fonc_affiche((char*)"post_traitement");
1527     system((char*)"chmod 744 post_traitement");
1528 couturad 951
1529 couturad 968
1530    
1531    
1532     ofstrm.open((char*)"produire_figures",std::ios::out|std::ios::trunc);
1533     ofstrm.precision(16);
1534     ofstrm.setf(std::ios::showpoint);
1535     ofstrm << "#!/bin/bash" << std::endl;
1536     ofstrm << "COUCHE_REF=\"$1\"" << std::endl;
1537 couturad 951 ofstrm << "#Data pour graph" << std::endl;
1538     ofstrm << "PWD=pwd" << std::endl;
1539 couturad 968 ofstrm << "mkdir -p resultats/data_graph resultats/graph" << std::endl;
1540     if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
1541 couturad 951 {
1542     ofstrm << "#Orientation" << std::endl;
1543 couturad 968 ofstrm << "awk 'NR>=2 {print $1,($2+$3+$4+$5+$6+$7)}' resultats/cao/cumul_Orientation_Particule_ecart.txt > resultats/data_graph/cumul_Err_abs_ori.txt" << std::endl;
1544     ofstrm << "sed -i '1s/^/Nb_ves somme_ecart_absolu\\n/' resultats/data_graph/cumul_Err_abs_ori.txt" << std::endl;
1545     if(fem_maill_lin)
1546 couturad 951 {
1547 couturad 968 ofstrm << "awk 'NR>=2 {print $1,$2,($2+$3+$4+$5+$6+$7)}' resultats/maillage_fem/lin/cumul_erosion_Orientation_Particule_ponderee_ecart.txt > resultats/data_graph/cumul_erosion_Err_abs_ori_lin.txt" << std::endl;
1548     ofstrm << "sed -i '1s/^/Couche Nb_ves somme_ecart_absolu\\n/' resultats/data_graph/cumul_erosion_Err_abs_ori_lin.txt" << std::endl;
1549 couturad 951 }
1550 couturad 968 if(fem_maill_quad)
1551 couturad 951 {
1552 couturad 968 ofstrm << "awk 'NR>=2 {print $1,$2,($2+$3+$4+$5+$6+$7)}' resultats/maillage_fem/quad/cumul_erosion_Orientation_Particule_ponderee_ecart.txt > resultats/data_graph/cumul_erosion_Err_abs_ori_quad.txt" << std::endl;
1553     ofstrm << "sed -i '1s/^/Couche Nb_ves somme_ecart_absolu\\n/' resultats/data_graph/cumul_erosion_Err_abs_ori_quad.txt" << std::endl;
1554 couturad 951 }
1555 couturad 968 }
1556 couturad 951 if(fem_maill_lin)
1557     {
1558 couturad 968 ofstrm << "awk 'NR>=2 {print $1,$2,$7,$8}' resultats/maillage_fem/lin/cumul_erosion_FEM_maillage_Particule.txt > resultats/data_graph/tmp_erosion_fem_maill_lin" << std::endl;
1559 couturad 969 ofstrm << "awk 'NR>=2 {print $1,$3}' resultats/maillage_fem/lin/c_$COUCHE_REF/liste_FEM_maillage_Particule.txt > resultats/data_graph/tmp_liste_fem_maill_lin" << std::endl;
1560 couturad 971 if(etude_mecanique)
1561     {
1562     ofstrm << "#Module elasticite" << std::endl;
1563     ofstrm << "awk 'NR>=2 {print $3,$4,$7,$8,$11,$12,$15,$16}' resultats/modules_elasticite/CH/lin/cumul_erosion_Modules_elasticite.txt > resultats/data_graph/tmp_erosion_Modules_app_CH_lin" << std::endl;
1564     ofstrm << "awk 'NR>=2 {print $3,$4,$7,$8,$11,$12,$15,$16}' resultats/modules_elasticite/DH/lin/cumul_erosion_Modules_elasticite.txt > resultats/data_graph/tmp_erosion_Modules_app_DH_lin" << std::endl;
1565     ofstrm << "paste -d ' ' resultats/data_graph/tmp_erosion_fem_maill_lin resultats/data_graph/tmp_erosion_Modules_app_CH_lin > resultats/data_graph/erosion_Modules_app_CH_lin.txt" << std::endl;
1566     ofstrm << "paste -d ' ' resultats/data_graph/tmp_erosion_fem_maill_lin resultats/data_graph/tmp_erosion_Modules_app_DH_lin > resultats/data_graph/erosion_Modules_app_DH_lin.txt" << std::endl;
1567     ofstrm << "sed -i '1s/^/Couche Nb_ves Fvol(moy ±) Eapp(moy ±) Nuapp(moy ±) Gapp(moy ±) Kapp(moy ±)\\n/' resultats/data_graph/erosion_Modules_app_CH_lin.txt" << std::endl;
1568     ofstrm << "sed -i '1s/^/Couche Nb_ves Fvol(moy ±) Eapp(moy ±) Nuapp(moy ±) Gapp(moy ±) Kapp(moy ±)\\n/' resultats/data_graph/erosion_Modules_app_DH_lin.txt" << std::endl;
1569     ofstrm << "rm resultats/data_graph/tmp_erosion_Modules_app_CH_lin resultats/data_graph/tmp_erosion_Modules_app_DH_lin" << std::endl;
1570     ofstrm << "awk 'NR>=2 {print $2,$3,$4,$5}' resultats/modules_elasticite/CH/lin/c_$COUCHE_REF/liste_Modules_elasticite.txt > resultats/data_graph/tmp_Modules_app_CH_lin" << std::endl;
1571     ofstrm << "awk 'NR>=2 {print $2,$3,$4,$5}' resultats/modules_elasticite/DH/lin/c_$COUCHE_REF/liste_Modules_elasticite.txt > resultats/data_graph/tmp_Modules_app_DH_lin" << std::endl;
1572     ofstrm << "paste -d ' ' resultats/data_graph/tmp_liste_fem_maill_lin resultats/data_graph/tmp_Modules_app_CH_lin > resultats/data_graph/liste_Modules_app_CH_lin.txt" << std::endl;
1573     ofstrm << "paste -d ' ' resultats/data_graph/tmp_liste_fem_maill_lin resultats/data_graph/tmp_Modules_app_DH_lin > resultats/data_graph/liste_Modules_app_DH_lin.txt" << std::endl;
1574     ofstrm << "sed -i '1s/^/# Fvol Eapp Nuapp Gapp Kapp\\n/' resultats/data_graph/liste_Modules_app_CH_lin.txt" << std::endl;
1575     ofstrm << "sed -i '1s/^/# Fvol Eapp Nuapp Gapp Kapp\\n/' resultats/data_graph/liste_Modules_app_DH_lin.txt" << std::endl;
1576 couturad 974 ofstrm << "rm resultats/data_graph/tmp_Modules_app_CH_lin resultats/data_graph/tmp_Modules_app_DH_lin" << std::endl;
1577 couturad 971 }
1578     if(etude_thermique)
1579     {
1580     ofstrm << "#Conductivite thermique" << std::endl;
1581     ofstrm << "awk 'NR>=2 {print $3,$4}' resultats/conductivite_thermique/FH/lin/cumul_erosion_Conductivite_thermique.txt > resultats/data_graph/tmp_erosion_Conductivite_thermique_app_FH_lin" << std::endl;
1582     ofstrm << "awk 'NR>=2 {print $3,$4}' resultats/conductivite_thermique/GH/lin/cumul_erosion_Conductivite_thermique.txt > resultats/data_graph/tmp_erosion_Conductivite_thermique_app_GH_lin" << std::endl;
1583     ofstrm << "paste -d ' ' resultats/data_graph/tmp_erosion_fem_maill_lin resultats/data_graph/tmp_erosion_Conductivite_thermique_app_FH_lin > resultats/data_graph/erosion_Conductivite_thermique_app_FH_lin.txt" << std::endl;
1584     ofstrm << "paste -d ' ' resultats/data_graph/tmp_erosion_fem_maill_lin resultats/data_graph/tmp_erosion_Conductivite_thermique_app_GH_lin > resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt" << std::endl;
1585     ofstrm << "sed -i '1s/^/Couche Nb_ves Fvol(moy ±) Lambda(moy ±)\\n/' resultats/data_graph/erosion_Conductivite_thermique_app_FH_lin.txt" << std::endl;
1586     ofstrm << "sed -i '1s/^/Couche Nb_ves Fvol(moy ±) Lambda(moy ±)\\n/' resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt" << std::endl;
1587     ofstrm << "rm resultats/data_graph/tmp_erosion_Conductivite_thermique_app_FH_lin resultats/data_graph/tmp_erosion_Conductivite_thermique_app_GH_lin" << std::endl;
1588     ofstrm << "awk 'NR>=2 {print $2}' resultats/conductivite_thermique/FH/lin/c_$COUCHE_REF/liste_Conductivite_thermique.txt > resultats/data_graph/tmp_Conductivite_thermique_app_FH_lin" << std::endl;
1589     ofstrm << "awk 'NR>=2 {print $2}' resultats/conductivite_thermique/GH/lin/c_$COUCHE_REF/liste_Conductivite_thermique.txt > resultats/data_graph/tmp_Conductivite_thermique_app_GH_lin" << std::endl;
1590     ofstrm << "paste -d ' ' resultats/data_graph/tmp_liste_fem_maill_lin resultats/data_graph/tmp_Conductivite_thermique_app_FH_lin > resultats/data_graph/liste_Conductivite_thermique_app_FH_lin.txt" << std::endl;
1591     ofstrm << "paste -d ' ' resultats/data_graph/tmp_liste_fem_maill_lin resultats/data_graph/tmp_Conductivite_thermique_app_GH_lin > resultats/data_graph/liste_Conductivite_thermique_app_GH_lin.txt" << std::endl;
1592     ofstrm << "sed -i '1s/^/# Fvol Lambda_app\\n/' resultats/data_graph/liste_Conductivite_thermique_app_FH_lin.txt" << std::endl;
1593     ofstrm << "sed -i '1s/^/# Fvol Lambda_app\\n/' resultats/data_graph/liste_Conductivite_thermique_app_GH_lin.txt" << std::endl;
1594     ofstrm << "rm resultats/data_graph/tmp_Conductivite_thermique_app_FH_lin resultats/data_graph/tmp_Conductivite_thermique_app_GH_lin" << std::endl;
1595     }
1596     ofstrm << "rm resultats/data_graph/tmp_erosion_fem_maill_lin resultats/data_graph/tmp_liste_fem_maill_lin" << std::endl;
1597 couturad 951 }
1598     if(fem_maill_quad)
1599     {
1600 couturad 968 ofstrm << "awk 'NR>=2 {print $1,$2,$7,$8}' resultats/maillage_fem/quad/cumul_erosion_FEM_maillage_Particule.txt > resultats/data_graph/tmp_erosion_fem_maill_quad" << std::endl;
1601 couturad 969 ofstrm << "awk 'NR>=2 {print $1,$3}' resultats/maillage_fem/quad/c_$COUCHE_REF/liste_FEM_maillage_Particule.txt > resultats/data_graph/tmp_liste_fem_maill_quad" << std::endl;
1602 couturad 971 if(etude_mecanique)
1603     {
1604     ofstrm << "#Module elasticite" << std::endl;
1605     ofstrm << "awk 'NR>=2 {print $3,$4,$7,$8,$11,$12,$15,$16}' resultats/modules_elasticite/CH/quad/cumul_erosion_Modules_elasticite.txt > resultats/data_graph/tmp_erosion_Modules_app_CH_quad" << std::endl;
1606     ofstrm << "awk 'NR>=2 {print $3,$4,$7,$8,$11,$12,$15,$16}' resultats/modules_elasticite/DH/quad/cumul_erosion_Modules_elasticite.txt > resultats/data_graph/tmp_erosion_Modules_app_DH_quad" << std::endl;
1607     ofstrm << "paste -d ' ' resultats/data_graph/tmp_erosion_fem_maill_quad resultats/data_graph/tmp_erosion_Modules_app_CH_quad > resultats/data_graph/erosion_Modules_app_CH_quad.txt" << std::endl;
1608     ofstrm << "paste -d ' ' resultats/data_graph/tmp_erosion_fem_maill_quad resultats/data_graph/tmp_erosion_Modules_app_DH_quad > resultats/data_graph/erosion_Modules_app_DH_quad.txt" << std::endl;
1609     ofstrm << "sed -i '1s/^/Couche Nb_ves Fvol(moy ±) Eapp(moy ±) Nuapp(moy ±) Gapp(moy ±) Kapp(moy ±)\\n/' resultats/data_graph/erosion_Modules_app_CH_quad.txt" << std::endl;
1610     ofstrm << "sed -i '1s/^/Couche Nb_ves Fvol(moy ±) Eapp(moy ±) Nuapp(moy ±) Gapp(moy ±) Kapp(moy ±)\\n/' resultats/data_graph/erosion_Modules_app_DH_quad.txt" << std::endl;
1611     ofstrm << "rm resultats/data_graph/tmp_erosion_Modules_app_CH_quad resultats/data_graph/tmp_erosion_Modules_app_DH_quad" << std::endl;
1612     ofstrm << "awk 'NR>=2 {print $2,$3,$4,$5}' resultats/modules_elasticite/CH/quad/c_$COUCHE_REF/liste_Modules_elasticite.txt > resultats/data_graph/tmp_Modules_app_CH_quad" << std::endl;
1613     ofstrm << "awk 'NR>=2 {print $2,$3,$4,$5}' resultats/modules_elasticite/DH/quad/c_$COUCHE_REF/liste_Modules_elasticite.txt > resultats/data_graph/tmp_Modules_app_DH_quad" << std::endl;
1614     ofstrm << "paste -d ' ' resultats/data_graph/tmp_liste_fem_maill_quad resultats/data_graph/tmp_Modules_app_CH_quad > resultats/data_graph/liste_Modules_app_CH_quad.txt" << std::endl;
1615     ofstrm << "paste -d ' ' resultats/data_graph/tmp_liste_fem_maill_quad resultats/data_graph/tmp_Modules_app_DH_quad > resultats/data_graph/liste_Modules_app_DH_quad.txt" << std::endl;
1616     ofstrm << "sed -i '1s/^/# Fvol Eapp Nuapp Gapp Kapp\\n/' resultats/data_graph/liste_Modules_app_CH_quad.txt" << std::endl;
1617     ofstrm << "sed -i '1s/^/# Fvol Eapp Nuapp Gapp Kapp\\n/' resultats/data_graph/liste_Modules_app_DH_quad.txt" << std::endl;
1618     ofstrm << "rm resultats/data_graph/tmp_Modules_app_CH_quad resultats/data_graph/tmp_Modules_app_DH_quad" << std::endl;
1619     }
1620     if(etude_thermique)
1621     {
1622     ofstrm << "#Conductivite thermique" << std::endl;
1623     ofstrm << "awk 'NR>=2 {print $3,$4}' resultats/conductivite_thermique/FH/quad/cumul_erosion_Conductivite_thermique.txt > resultats/data_graph/tmp_erosion_Conductivite_thermique_app_FH_quad" << std::endl;
1624     ofstrm << "awk 'NR>=2 {print $3,$4}' resultats/conductivite_thermique/GH/quad/cumul_erosion_Conductivite_thermique.txt > resultats/data_graph/tmp_erosion_Conductivite_thermique_app_GH_quad" << std::endl;
1625     ofstrm << "paste -d ' ' resultats/data_graph/tmp_erosion_fem_maill_quad resultats/data_graph/tmp_erosion_Conductivite_thermique_app_FH_quad > resultats/data_graph/erosion_Conductivite_thermique_app_FH_quad.txt" << std::endl;
1626     ofstrm << "paste -d ' ' resultats/data_graph/tmp_erosion_fem_maill_quad resultats/data_graph/tmp_erosion_Conductivite_thermique_app_GH_quad > resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt" << std::endl;
1627     ofstrm << "sed -i '1s/^/Couche Nb_ves Fvol(moy ±) Lambda(moy ±)\\n/' resultats/data_graph/erosion_Conductivite_thermique_app_FH_quad.txt" << std::endl;
1628     ofstrm << "sed -i '1s/^/Couche Nb_ves Fvol(moy ±) Lambda(moy ±)\\n/' resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt" << std::endl;
1629     ofstrm << "rm resultats/data_graph/tmp_erosion_Conductivite_thermique_app_FH_quad resultats/data_graph/tmp_erosion_Conductivite_thermique_app_GH_quad" << std::endl;
1630     ofstrm << "awk 'NR>=2 {print $2}' resultats/conductivite_thermique/FH/quad/c_$COUCHE_REF/liste_Conductivite_thermique.txt > resultats/data_graph/tmp_Conductivite_thermique_app_FH_quad" << std::endl;
1631     ofstrm << "awk 'NR>=2 {print $2}' resultats/conductivite_thermique/GH/quad/c_$COUCHE_REF/liste_Conductivite_thermique.txt > resultats/data_graph/tmp_Conductivite_thermique_app_GH_quad" << std::endl;
1632     ofstrm << "paste -d ' ' resultats/data_graph/tmp_liste_fem_maill_quad resultats/data_graph/tmp_Conductivite_thermique_app_FH_quad > resultats/data_graph/liste_Conductivite_thermique_app_FH_quad.txt" << std::endl;
1633     ofstrm << "paste -d ' ' resultats/data_graph/tmp_liste_fem_maill_quad resultats/data_graph/tmp_Conductivite_thermique_app_GH_quad > resultats/data_graph/liste_Conductivite_thermique_app_GH_quad.txt" << std::endl;
1634     ofstrm << "sed -i '1s/^/# Fvol Lambda_app\\n/' resultats/data_graph/liste_Conductivite_thermique_app_FH_quad.txt" << std::endl;
1635     ofstrm << "sed -i '1s/^/# Fvol Lambda_app\\n/' resultats/data_graph/liste_Conductivite_thermique_app_GH_quad.txt" << std::endl;
1636     ofstrm << "rm resultats/data_graph/tmp_Conductivite_thermique_app_FH_quad resultats/data_graph/tmp_Conductivite_thermique_app_GH_quad" << std::endl;
1637     }
1638     ofstrm << "rm resultats/data_graph/tmp_erosion_fem_maill_quad resultats/data_graph/tmp_liste_fem_maill_quad" << std::endl;
1639 couturad 951 }
1640 couturad 974 ofstrm << "gnuplot -e \"couche_ref=0\" fig.gnu" << std::endl;
1641 couturad 968 if(fonc_affiche!=NULL) fonc_affiche((char*)"produire_figures");
1642     system((char*)"chmod 744 produire_figures");
1643 couturad 964 ofstrm.close();
1644    
1645 couturad 951
1646 couturad 968 ofstrm.open((char*)"fig.gnu",std::ios::out|std::ios::trunc);
1647 couturad 951 ofstrm.precision(16);
1648     ofstrm.setf(std::ios::showpoint);
1649 couturad 974 ofstrm << "if (!exists(\"couche_ref\")) couche_ref=0" << std::endl;
1650     ofstrm << "print sprintf(\"couche ref : c_%i\",couche_ref)" << std::endl;
1651 couturad 951 ofstrm << "" << std::endl;
1652 couturad 968 ofstrm << "set terminal postscript eps size 4,2.25 enhanced color font 'Helvetica,14'" << std::endl;
1653    
1654 couturad 971 if(etude_mecanique)
1655 couturad 951 {
1656 couturad 971 ofstrm << "" << std::endl;
1657     ofstrm << "set output \"resultats/graph/nuage_Eapp.eps\"" << std::endl;
1658     ofstrm << "set xrange [0:50]" << std::endl;
1659     ofstrm << "set title \"Module de Young (GPa)\"" << std::endl;
1660     ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
1661     ofstrm << "set ylabel \"Module de Young (GPa)\"" << std::endl;
1662     if(fem_maill_lin && fem_maill_quad)
1663     {
1664 couturad 974 ofstrm << "plot \"resultats/data_graph/liste_Modules_app_DH_lin.txt\" u ($2*100):($3/(1000000000)) pt 4 ps 1 lc rgb 'blue' lw 1 title \"DH lin\",\\" << std::endl;
1665     ofstrm << " \"resultats/data_graph/liste_Modules_app_CH_lin.txt\" u ($2*100):($3/(1000000000)) pt 4 ps 1 lc rgb 'red' lw 1 title \"CH lin\",\\" << std::endl;
1666     ofstrm << " \"resultats/data_graph/liste_Modules_app_DH_quad.txt\" u ($2*100):($3/(1000000000)) pt 5 ps 1 lc rgb 'blue' lw 1 title \"DH quad\",\\" << std::endl;
1667     ofstrm << " \"resultats/data_graph/liste_Modules_app_CH_quad.txt\" u ($2*100):($3/(1000000000)) pt 5 ps 1 lc rgb 'red' lw 1 title \"DH quad\",\\" << std::endl;
1668 couturad 971 }
1669     else if(fem_maill_lin && !fem_maill_quad)
1670     {
1671 couturad 974 ofstrm << "plot \"resultats/data_graph/liste_Modules_app_DH_lin.txt\" u ($2*100):($3/(1000000000)) pt 4 ps 1 lc rgb 'blue' lw 1 title \"DH lin\",\\" << std::endl;
1672     ofstrm << " \"resultats/data_graph/liste_Modules_app_CH_lin.txt\" u ($2*100):($3/(1000000000)) pt 4 ps 1 lc rgb 'red' lw 1 title \"CH lin\",\\" << std::endl;
1673 couturad 971 }
1674     else if(!fem_maill_lin && fem_maill_quad)
1675     {
1676 couturad 974 ofstrm << "plot \"resultats/data_graph/liste_Modules_app_DH_quad.txt\" u ($2*100):($3/(1000000000)) pt 5 ps 1 lc rgb 'blue' lw 1 title \"DH quad\",\\" << std::endl;
1677     ofstrm << " \"resultats/data_graph/liste_Modules_app_CH_quad.txt\" u ($2*100):($3/(1000000000)) pt 5 ps 1 lc rgb 'red' lw 1 title \"CH quad\",\\" << std::endl;
1678 couturad 971 }
1679     ofstrm << "\"resE.dat\" u($1*100):($2) with line lw 2 lc rgb 'black' lt 2 title \"E_{Reuss}\" ,\\" << std::endl;
1680     ofstrm << "\"resE.dat\" u($1*100):($3) with line lw 2 lc rgb 'grey' lt 2 title \"E_{HS-}\" ,\\" << std::endl;
1681     ofstrm << "\"resE.dat\" u($1*100):($7) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"E_{HS+}\" ,\\" << std::endl;
1682     ofstrm << "\"resE.dat\" u($1*100):($8) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"E_{Voigt}\"" << std::endl;
1683 couturad 974 ofstrm << "#pause -1" << std::endl;
1684 couturad 971
1685     ofstrm << "" << std::endl;
1686     ofstrm << "set output \"resultats/graph/cumul_Eapp.eps\"" << std::endl;
1687     ofstrm << "set title \"Module de Young (GPa)\"" << std::endl;
1688     ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
1689     ofstrm << "set ylabel \"Module de Young (GPa)\"" << std::endl;
1690     if(fem_maill_lin && fem_maill_quad)
1691     {
1692 couturad 974 ofstrm << "plot \"<(sed -n 2p resultats/data_graph/erosion_Modules_app_DH_lin.txt)\" u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"DH lin\",\\" << std::endl;
1693     ofstrm << " \"<(sed -n 2p resultats/data_graph/erosion_Modules_app_CH_lin.txt)\" u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"CH lin\",\\" << std::endl;
1694     ofstrm << " \"<(sed -n 2p resultats/data_graph/erosion_Modules_app_DH_quad.txt)\" u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 5 ps 1 lc rgb 'blue' lw 1 title \"DH quad\",\\" << std::endl;
1695     ofstrm << " \"<(sed -n 2p resultats/data_graph/erosion_Modules_app_CH_quad.txt)\" u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 5 ps 1 lc rgb 'red' lw 1 title \"DH quad\",\\" << std::endl;
1696 couturad 971 }
1697     else if(fem_maill_lin && !fem_maill_quad)
1698     {
1699 couturad 974 ofstrm << "plot \"<(sed -n 2p resultats/data_graph/erosion_Modules_app_DH_lin.txt)\" u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"DH lin\",\\" << std::endl;
1700     ofstrm << " \"<(sed -n 2p resultats/data_graph/erosion_Modules_app_CH_lin.txt)\" u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"CH lin\",\\" << std::endl;
1701 couturad 971 }
1702     else if(!fem_maill_lin && fem_maill_quad)
1703     {
1704 couturad 974 ofstrm << "plot \"<(sed -n 2p resultats/data_graph/erosion_Modules_app_DH_quad.txt)\" u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 5 ps 1 lc rgb 'blue' lw 1 title \"DH quad\",\\" << std::endl;
1705     ofstrm << " \"<(sed -n 2p resultats/data_graph/erosion_Modules_app_CH_quad.txt)\" u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 5 ps 1 lc rgb 'red' lw 1 title \"CH quad\",\\" << std::endl;
1706 couturad 971 }
1707     ofstrm << "\"resE.dat\" u($1*100):($2) with line lw 2 lc rgb 'black' lt 2 title \"E_{Reuss}\" ,\\" << std::endl;
1708     ofstrm << "\"resE.dat\" u($1*100):($3) with line lw 2 lc rgb 'grey' lt 2 title \"E_{HS-}\" ,\\" << std::endl;
1709     ofstrm << "\"resE.dat\" u($1*100):($7) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"E_{HS+}\" ,\\" << std::endl;
1710     ofstrm << "\"resE.dat\" u($1*100):($8) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"E_{Voigt}\"" << std::endl;
1711     ofstrm << "#pause -1" << std::endl;
1712    
1713     ofstrm << "set output \"resultats/graph/cumul_erosion_Eapp.eps\"" << std::endl;
1714     ofstrm << "set xrange [0:0.5]" << std::endl;
1715     ofstrm << "set y2range[0:100]" << std::endl;
1716     ofstrm << "set title \"Module de Young (GPa)\"" << std::endl;
1717     ofstrm << "set xlabel \"Distance d'erosion\"" << std::endl;
1718     ofstrm << "set ylabel \"Module de Young (GPa)\"" << std::endl;
1719     ofstrm << "set y2label \"Fraction volumique (%)\"" << std::endl;
1720     ofstrm << "set ytics nomirror" << std::endl;
1721     ofstrm << "set y2tics" << std::endl;
1722     if(fem_maill_lin && fem_maill_quad)
1723     {
1724     ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_DH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with lines lc rgb 'blue' lw 1 title \"DH lin\" axes x1y1 ,\\" << std::endl;
1725 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Modules_app_DH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)):($6/(1000000000)) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH lin\" axes x1y1 ,\\" << std::endl;
1726 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with lines lc rgb 'red' lw 1 title \"CH lin\" axes x1y1 ,\\" << std::endl;
1727 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)):($6/(1000000000)) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH lin\" axes x1y1 ,\\" << std::endl;
1728 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'grey' lt 0 lw 1 pt 15 ps 1 title \"Frac. Vol.\" axes x1y2 ,\\" << std::endl;
1729     ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'grey' pt 15 ps 1 title \"erreur Frac. Vol.\" axes x1y2 ,\\" << std::endl;
1730     ofstrm << " \"resultats/data_graph/erosion_Modules_app_DH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with lines lc rgb 'blue' lw 1 title \"DH quad\" axes x1y1 ,\\" << std::endl;
1731 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Modules_app_DH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)):($6/(1000000000)) with yerrorbars pt 5 ps 1 lc rgb 'blue' lw 1 title \"erreur DH quad\" axes x1y1 ,\\" << std::endl;
1732 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with lines lc rgb 'red' lw 1 title \"CH quad\" axes x1y1 ,\\" << std::endl;
1733 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)):($6/(1000000000)) with yerrorbars pt 5 ps 1 lc rgb 'red' lw 1 title \"erreur CH quad\" axes x1y1 ,\\" << std::endl;
1734 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 0 lw 1 pt 15 ps 1 title \"Frac. Vol.\" axes x1y2 ,\\" << std::endl;
1735     ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'black' pt 15 ps 1 title \"erreur Frac. Vol.\" axes x1y2" << std::endl;
1736     }
1737     else if(fem_maill_lin && !fem_maill_quad)
1738     {
1739     ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_DH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with lines lc rgb 'blue' lw 1 title \"DH lin\" axes x1y1 ,\\" << std::endl;
1740 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Modules_app_DH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)):($6/(1000000000)) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH lin\" axes x1y1 ,\\" << std::endl;
1741 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with lines lc rgb 'red' lw 1 title \"CH lin\" axes x1y1 ,\\" << std::endl;
1742 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)):($6/(1000000000)) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH lin\" axes x1y1 ,\\" << std::endl;
1743 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'grey' lt 0 lw 1 pt 15 ps 1 title \"Frac. Vol.\" axes x1y2 ,\\" << std::endl;
1744     ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'grey' pt 15 ps 1 title \"erreur Frac. Vol.\" axes x1y2" << std::endl;
1745     }
1746     if(!fem_maill_lin && fem_maill_quad)
1747     {
1748     ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_DH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with lines lc rgb 'blue' lw 1 title \"DH quad\" axes x1y1 ,\\" << std::endl;
1749 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Modules_app_DH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)):($6/(1000000000)) with yerrorbars pt 5 ps 1 lc rgb 'blue' lw 1 title \"erreur DH quad\" axes x1y1 ,\\" << std::endl;
1750 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with lines lc rgb 'red' lw 1 title \"CH quad\" axes x1y1 ,\\" << std::endl;
1751 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)):($6/(1000000000)) with yerrorbars pt 5 ps 1 lc rgb 'red' lw 1 title \"erreur CH quad\" axes x1y1 ,\\" << std::endl;
1752 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 0 lw 1 pt 15 ps 1 title \"Frac. Vol.\" axes x1y2 ,\\" << std::endl;
1753     ofstrm << " \"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'black' pt 15 ps 1 title \"erreur Frac. Vol.\" axes x1y2" << std::endl;
1754     }
1755     ofstrm << "unset y2label" << std::endl;
1756     ofstrm << "unset y2tics" << std::endl;
1757     ofstrm << "#pause -1" << std::endl;
1758    
1759     ofstrm << "set output \"resultats/graph/cumul_erosion_ecart_energie.eps\"" << std::endl;
1760     ofstrm << "set xrange [0:0.5]" << std::endl;
1761     ofstrm << "set title \"Ecart d'energie relatif absolue (%)\"" << std::endl;
1762     ofstrm << "set xlabel \"Distance d'erosion\"" << std::endl;
1763     ofstrm << "set ylabel \"Ecart d'energie relatif absolue (%)\"" << std::endl;
1764     if(fem_maill_lin && fem_maill_quad)
1765     {
1766     ofstrm << "plot \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 1 lw 1 title \"CH dev lin\",\\" << std::endl;
1767 couturad 974 ofstrm << " \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($ 1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH dev lin\",\\" << std::endl;
1768 couturad 971 ofstrm << " \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 2 lw 1 title \"CH sph lin\",\\" << std::endl;
1769 couturad 974 ofstrm << " \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH sph lin\",\\" << std::endl;
1770 couturad 971 ofstrm << " \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 1 lw 1 title \"DH dev lin\",\\" << std::endl;
1771 couturad 974 ofstrm << " \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH dev lin\",\\" << std::endl;
1772 couturad 971 ofstrm << " \"resultats/champ/DH/sph/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 2 lw 1 title \"DH sph lin\",\\" << std::endl;
1773 couturad 974 ofstrm << " \"resultats/champ/DH/sph/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH sph lin\",\\" << std::endl;
1774 couturad 971 ofstrm << " \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 1 lw 1 title \"CH dev quad\",\\" << std::endl;
1775 couturad 974 ofstrm << " \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 5 ps 1 lc rgb 'red' lw 1 title \"erreur CH dev quad\",\\" << std::endl;
1776 couturad 971 ofstrm << " \"resultats/champ/CH/sph/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 2 lw 1 title \"CH sph quad\",\\" << std::endl;
1777 couturad 974 ofstrm << " \"resultats/champ/CH/sph/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 5 ps 1 lc rgb 'red' lw 1 title \"erreur CH sph quad\",\\" << std::endl;
1778 couturad 971 ofstrm << " \"resultats/champ/DH/dev/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 1 lw 1 title \"DH dev quad\",\\" << std::endl;
1779 couturad 974 ofstrm << " \"resultats/champ/DH/dev/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 5 ps 1 lc rgb 'blue' lw 1 title \"erreur DH dev quad\",\\" << std::endl;
1780 couturad 971 ofstrm << " \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 2 lw 1 title \"DH sph quad\",\\" << std::endl;
1781 couturad 974 ofstrm << " \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 5 ps 1 lc rgb 'blue' lw 1 title \"erreur DH sph quad\"" << std::endl;
1782 couturad 971 }
1783     else if(fem_maill_lin && !fem_maill_quad)
1784     {
1785     ofstrm << "plot \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 1 lw 1 title \"CH dev lin\",\\" << std::endl;
1786 couturad 974 ofstrm << " \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH dev lin\",\\" << std::endl;
1787 couturad 971 ofstrm << " \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 2 lw 1 title \"CH sph lin\",\\" << std::endl;
1788 couturad 974 ofstrm << " \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH sph lin\",\\" << std::endl;
1789 couturad 971 ofstrm << " \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 1 lw 1 title \"DH dev lin\",\\" << std::endl;
1790 couturad 974 ofstrm << " \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH dev lin\",\\" << std::endl;
1791 couturad 971 ofstrm << " \"resultats/champ/DH/sph/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 2 lw 1 title \"DH sph lin\",\\" << std::endl;
1792 couturad 974 ofstrm << " \"resultats/champ/DH/sph/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH sph lin\"" << std::endl;
1793 couturad 971 }
1794     else if(!fem_maill_lin && fem_maill_quad)
1795     {
1796     ofstrm << "plot \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 1 lw 1 title \"CH dev quad\",\\" << std::endl;
1797 couturad 974 ofstrm << " \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 5 ps 1 lc rgb 'red' lw 1 title \"erreur CH dev quad\",\\" << std::endl;
1798 couturad 971 ofstrm << " \"resultats/champ/CH/sph/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 2 lw 1 title \"CH sph quad\",\\" << std::endl;
1799 couturad 974 ofstrm << " \"resultats/champ/CH/sph/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 5 ps 1 lc rgb 'red' lw 1 title \"erreur CH sph quad\",\\" << std::endl;
1800 couturad 971 ofstrm << " \"resultats/champ/DH/dev/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 1 lw 1 title \"DH dev quad\",\\" << std::endl;
1801 couturad 974 ofstrm << " \"resultats/champ/DH/dev/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 5 ps 1 lc rgb 'blue' lw 1 title \"erreur DH dev quad\",\\" << std::endl;
1802 couturad 971 ofstrm << " \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 2 lw 1 title \"DH sph quad\",\\" << std::endl;
1803 couturad 974 ofstrm << " \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 5 ps 1 lc rgb 'blue' lw 1 title \"erreur DH sph quad\"" << std::endl;
1804 couturad 971 }
1805     ofstrm << "#pause -1" << std::endl;
1806    
1807    
1808     ofstrm << "set output \"resultats/graph/cumul_erosion_ecart_chargement_dev.eps\"" << std::endl;
1809     ofstrm << "set xrange [0:0.5]" << std::endl;
1810     ofstrm << "set title \"Ecart de chargement relatif absolue (%)\"" << std::endl;
1811     ofstrm << "set xlabel \"Distance d'erosion\"" << std::endl;
1812     ofstrm << "set ylabel \"Ecart de chargement relatif absolue (%)\"" << std::endl;
1813     if(fem_maill_lin && fem_maill_quad)
1814     {
1815     ofstrm << "plot \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 1 lw 1 title \"CH EPSILON lin\",\\" << std::endl;
1816 couturad 974 ofstrm << " \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH EPSILON lin\",\\" << std::endl;
1817 couturad 971 ofstrm << " \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 2 lw 1 title \"CH SIGMA lin\",\\" << std::endl;
1818 couturad 974 ofstrm << " \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH SIGMA lin\",\\" << std::endl;
1819 couturad 971 ofstrm << " \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 1 lw 1 title \"DH EPSILON lin\",\\" << std::endl;
1820 couturad 974 ofstrm << " \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH EPSILON lin\",\\" << std::endl;
1821 couturad 971 ofstrm << " \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 2 lw 1 title \"DH SIGMA lin\",\\" << std::endl;
1822 couturad 974 ofstrm << " \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH SIGMA lin\",\\" << std::endl;
1823 couturad 971 ofstrm << " \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 1 lw 1 title \"CH EPSILON quad\",\\" << std::endl;
1824 couturad 974 ofstrm << " \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH EPSILON quad\",\\" << std::endl;
1825 couturad 971 ofstrm << " \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 2 lw 1 title \"CH SIGMA quad\",\\" << std::endl;
1826 couturad 974 ofstrm << " \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH SIGMA quad\",\\" << std::endl;
1827 couturad 971 ofstrm << " \"resultats/champ/DH/dev/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 1 lw 1 title \"DH EPSILON quad\",\\" << std::endl;
1828 couturad 974 ofstrm << " \"resultats/champ/DH/dev/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH EPSILON quad\",\\" << std::endl;
1829 couturad 971 ofstrm << " \"resultats/champ/DH/dev/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 2 lw 1 title \"DH SIGMA quad\",\\" << std::endl;
1830 couturad 974 ofstrm << " \"resultats/champ/DH/dev/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH SIGMA quad\",\\" << std::endl;
1831 couturad 971 }
1832     else if(fem_maill_lin && !fem_maill_quad)
1833     {
1834     ofstrm << "plot \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 1 lw 1 title \"CH EPSILON lin\",\\" << std::endl;
1835 couturad 974 ofstrm << " \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH EPSILON lin\",\\" << std::endl;
1836 couturad 971 ofstrm << " \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 2 lw 1 title \"CH SIGMA lin\",\\" << std::endl;
1837 couturad 974 ofstrm << " \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH SIGMA lin\",\\" << std::endl;
1838 couturad 971 ofstrm << " \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 1 lw 1 title \"DH EPSILON lin\",\\" << std::endl;
1839 couturad 974 ofstrm << " \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH EPSILON lin\",\\" << std::endl;
1840 couturad 971 ofstrm << " \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 2 lw 1 title \"DH SIGMA lin\",\\" << std::endl;
1841 couturad 974 ofstrm << " \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH SIGMA lin\"" << std::endl;
1842 couturad 971 }
1843     else if(!fem_maill_lin && fem_maill_quad)
1844     {
1845     ofstrm << "plot \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 1 lw 1 title \"CH EPSILON quad\",\\" << std::endl;
1846 couturad 974 ofstrm << " \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH EPSILON quad\",\\" << std::endl;
1847 couturad 971 ofstrm << " \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 2 lw 1 title \"CH SIGMA quad\",\\" << std::endl;
1848 couturad 974 ofstrm << " \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH SIGMA quad\",\\" << std::endl;
1849 couturad 971 ofstrm << " \"resultats/champ/DH/dev/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 1 lw 1 title \"DH EPSILON quad\",\\" << std::endl;
1850 couturad 974 ofstrm << " \"resultats/champ/DH/dev/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH EPSILON quad\",\\" << std::endl;
1851 couturad 971 ofstrm << " \"resultats/champ/DH/dev/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 2 lw 1 title \"DH SIGMA quad\",\\" << std::endl;
1852 couturad 974 ofstrm << " \"resultats/champ/DH/dev/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH SIGMA quad\"" << std::endl;
1853 couturad 971 }
1854     ofstrm << "#pause -1" << std::endl;
1855    
1856    
1857     ofstrm << "set output \"resultats/graph/cumul_erosion_ecart_chargement_sph.eps\"" << std::endl;
1858     ofstrm << "set xrange [0:0.5]" << std::endl;
1859     ofstrm << "set title \"Ecart de chargement relatif absolue (%)\"" << std::endl;
1860     ofstrm << "set xlabel \"Distance d'erosion\"" << std::endl;
1861     ofstrm << "set ylabel \"Ecart de chargement relatif absolue (%)\"" << std::endl;
1862     if(fem_maill_lin && fem_maill_quad)
1863     {
1864     ofstrm << "plot \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 1 lw 1 title \"CH EPSILON lin\",\\" << std::endl;
1865 couturad 974 ofstrm << " \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH EPSILON lin\",\\" << std::endl;
1866 couturad 971 ofstrm << " \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 2 lw 1 title \"CH SIGMA lin\",\\" << std::endl;
1867 couturad 974 ofstrm << " \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH SIGMA lin\",\\" << std::endl;
1868 couturad 971 ofstrm << " \"resultats/champ/DH/sph/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 1 lw 1 title \"DH EPSILON lin\",\\" << std::endl;
1869 couturad 974 ofstrm << " \"resultats/champ/DH/sph/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH EPSILON lin\",\\" << std::endl;
1870 couturad 971 ofstrm << " \"resultats/champ/DH/sph/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 2 lw 1 title \"DH SIGMA lin\",\\" << std::endl;
1871 couturad 974 ofstrm << " \"resultats/champ/DH/sph/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH SIGMA lin\",\\" << std::endl;
1872 couturad 971 ofstrm << " \"resultats/champ/CH/sph/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 1 lw 1 title \"CH EPSILON quad\",\\" << std::endl;
1873 couturad 974 ofstrm << " \"resultats/champ/CH/sph/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH EPSILON quad\",\\" << std::endl;
1874 couturad 971 ofstrm << " \"resultats/champ/CH/sph/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 2 lw 1 title \"CH SIGMA quad\",\\" << std::endl;
1875 couturad 974 ofstrm << " \"resultats/champ/CH/sph/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH SIGMA quad\",\\" << std::endl;
1876 couturad 971 ofstrm << " \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 1 lw 1 title \"DH EPSILON quad\",\\" << std::endl;
1877 couturad 974 ofstrm << " \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH EPSILON quad\",\\" << std::endl;
1878 couturad 971 ofstrm << " \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 2 lw 1 title \"DH SIGMA quad\",\\" << std::endl;
1879 couturad 974 ofstrm << " \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH SIGMA quad\",\\" << std::endl;
1880 couturad 971 }
1881     else if(fem_maill_lin && !fem_maill_quad)
1882     {
1883     ofstrm << "plot \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 1 lw 1 title \"CH EPSILON lin\",\\" << std::endl;
1884 couturad 974 ofstrm << " \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH EPSILON lin\",\\" << std::endl;
1885 couturad 971 ofstrm << " \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 2 lw 1 title \"CH SIGMA lin\",\\" << std::endl;
1886 couturad 974 ofstrm << " \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH SIGMA lin\",\\" << std::endl;
1887 couturad 971 ofstrm << " \"resultats/champ/DH/sph/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 1 lw 1 title \"DH EPSILON lin\",\\" << std::endl;
1888 couturad 974 ofstrm << " \"resultats/champ/DH/sph/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH EPSILON lin\",\\" << std::endl;
1889 couturad 971 ofstrm << " \"resultats/champ/DH/sph/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 2 lw 1 title \"DH SIGMA lin\",\\" << std::endl;
1890 couturad 974 ofstrm << " \"resultats/champ/DH/sph/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH SIGMA lin\"" << std::endl;
1891 couturad 971 }
1892     else if(!fem_maill_lin && fem_maill_quad)
1893     {
1894     ofstrm << "plot \"resultats/champ/CH/sph/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 1 lw 1 title \"CH EPSILON quad\",\\" << std::endl;
1895 couturad 974 ofstrm << " \"resultats/champ/CH/sph/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH EPSILON quad\",\\" << std::endl;
1896 couturad 971 ofstrm << " \"resultats/champ/CH/sph/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'red' dt 2 lw 1 title \"CH SIGMA quad\",\\" << std::endl;
1897 couturad 974 ofstrm << " \"resultats/champ/CH/sph/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur CH SIGMA quad\",\\" << std::endl;
1898 couturad 971 ofstrm << " \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 1 lw 1 title \"DH EPSILON quad\",\\" << std::endl;
1899 couturad 974 ofstrm << " \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH EPSILON quad\",\\" << std::endl;
1900 couturad 971 ofstrm << " \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with lines lc rgb 'blue' dt 2 lw 1 title \"DH SIGMA quad\",\\" << std::endl;
1901 couturad 974 ofstrm << " \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0):($4*100.0) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur DH SIGMA quad\"" << std::endl;
1902 couturad 971 }
1903 couturad 974 ofstrm << "#pause -1" << std::endl;
1904    
1905     ofstrm << "set output \"resultats/graph/distribution_SIGMA_DH_sph.eps\"" << std::endl;
1906     ofstrm << "set title \"Distribution des contraintes normalisees\"" << std::endl;
1907     ofstrm << "set xlabel \"Contraintes normalisees\"" << std::endl;
1908     ofstrm << "set ylabel \"Densite de probabilite\"" << std::endl;
1909     if(fem_maill_lin && fem_maill_quad)
1910     {
1911     ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol s}_{xx} lin\",\\" << std::endl;
1912     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol s}_{yy} lin\",\\" << std::endl;
1913     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol s}_{zz} lin\",\\" << std::endl;
1914     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol s}_{xy} lin\",\\" << std::endl;
1915     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol s}_{yz} lin\",\\" << std::endl;
1916     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol s}_{xz} lin\",\\" << std::endl;
1917     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol s}_{xx} quad\",\\" << std::endl;
1918     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol s}_{yy} quad\",\\" << std::endl;
1919     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol s}_{zz} quad\",\\" << std::endl;
1920     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol s}_{xy} quad\",\\" << std::endl;
1921     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol s}_{yz} quad\",\\" << std::endl;
1922     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol s}_{xz} quad\",\\" << std::endl;
1923     }
1924     else if(fem_maill_lin && !fem_maill_quad)
1925     {
1926     ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol s}_{xx} lin\",\\" << std::endl;
1927     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol s}_{yy} lin\",\\" << std::endl;
1928     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol s}_{zz} lin\",\\" << std::endl;
1929     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol s}_{xy} lin\",\\" << std::endl;
1930     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol s}_{yz} lin\",\\" << std::endl;
1931     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol s}_{xz} lin\"" << std::endl;
1932     }
1933     else if(!fem_maill_lin && fem_maill_quad)
1934     {
1935     ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol s}_{xx} quad\",\\" << std::endl;
1936     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol s}_{yy} quad\",\\" << std::endl;
1937     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol s}_{zz} quad\",\\" << std::endl;
1938     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol s}_{xy} quad\",\\" << std::endl;
1939     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol s}_{yz} quad\",\\" << std::endl;
1940     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol s}_{xz} quad\"" << std::endl;
1941     }
1942     ofstrm << "#pause -1" << std::endl;
1943    
1944     ofstrm << "set output \"resultats/graph/distribution_SIGMA_CH_sph.eps\"" << std::endl;
1945     ofstrm << "set title \"Distribution des contraintes normalisees\"" << std::endl;
1946     ofstrm << "set xlabel \"Contraintes normalisees\"" << std::endl;
1947     ofstrm << "set ylabel \"Densite de probabilite\"" << std::endl;
1948     if(fem_maill_lin && fem_maill_quad)
1949     {
1950     ofstrm << "plot sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol s}_{xx} lin\",\\" << std::endl;
1951     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol s}_{yy} lin\",\\" << std::endl;
1952     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol s}_{zz} lin\",\\" << std::endl;
1953     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol s}_{xy} lin\",\\" << std::endl;
1954     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol s}_{yz} lin\",\\" << std::endl;
1955     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol s}_{xz} lin\",\\" << std::endl;
1956     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol s}_{xx} quad\",\\" << std::endl;
1957     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol s}_{yy} quad\",\\" << std::endl;
1958     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol s}_{zz} quad\",\\" << std::endl;
1959     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol s}_{xy} quad\",\\" << std::endl;
1960     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol s}_{yz} quad\",\\" << std::endl;
1961     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol s}_{xz} quad\",\\" << std::endl;
1962     }
1963     else if(fem_maill_lin && !fem_maill_quad)
1964     {
1965     ofstrm << "plot sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol s}_{xx} lin\",\\" << std::endl;
1966     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol s}_{yy} lin\",\\" << std::endl;
1967     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol s}_{zz} lin\",\\" << std::endl;
1968     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol s}_{xy} lin\",\\" << std::endl;
1969     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol s}_{yz} lin\",\\" << std::endl;
1970     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol s}_{xz} lin\"" << std::endl;
1971     }
1972     else if(!fem_maill_lin && fem_maill_quad)
1973     {
1974     ofstrm << "plot sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol s}_{xx} quad\",\\" << std::endl;
1975     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol s}_{yy} quad\",\\" << std::endl;
1976     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol s}_{zz} quad\",\\" << std::endl;
1977     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol s}_{xy} quad\",\\" << std::endl;
1978     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol s}_{yz} quad\",\\" << std::endl;
1979     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol s}_{xz} quad\"" << std::endl;
1980     }
1981     ofstrm << "#pause -1" << std::endl;
1982    
1983     ofstrm << "set output \"resultats/graph/distribution_SIGMA_DH_dev.eps\"" << std::endl;
1984     ofstrm << "set title \"Distribution des contraintes normalisees\"" << std::endl;
1985     ofstrm << "set xlabel \"Contraintes normalisees\"" << std::endl;
1986     ofstrm << "set ylabel \"Densite de probabilite\"" << std::endl;
1987     if(fem_maill_lin && fem_maill_quad)
1988     {
1989     ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol s}_{xx} lin\",\\" << std::endl;
1990     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol s}_{yy} lin\",\\" << std::endl;
1991     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol s}_{zz} lin\",\\" << std::endl;
1992     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol s}_{xy} lin\",\\" << std::endl;
1993     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol s}_{yz} lin\",\\" << std::endl;
1994     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol s}_{xz} lin\",\\" << std::endl;
1995     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol s}_{xx} quad\",\\" << std::endl;
1996     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol s}_{yy} quad\",\\" << std::endl;
1997     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol s}_{zz} quad\",\\" << std::endl;
1998     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol s}_{xy} quad\",\\" << std::endl;
1999     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol s}_{yz} quad\",\\" << std::endl;
2000     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol s}_{xz} quad\",\\" << std::endl;
2001     }
2002     else if(fem_maill_lin && !fem_maill_quad)
2003     {
2004     ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol s}_{xx} lin\",\\" << std::endl;
2005     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol s}_{yy} lin\",\\" << std::endl;
2006     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol s}_{zz} lin\",\\" << std::endl;
2007     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol s}_{xy} lin\",\\" << std::endl;
2008     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol s}_{yz} lin\",\\" << std::endl;
2009     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol s}_{xz} lin\"" << std::endl;
2010     }
2011     else if(!fem_maill_lin && fem_maill_quad)
2012     {
2013     ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol s}_{xx} quad\",\\" << std::endl;
2014     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol s}_{yy} quad\",\\" << std::endl;
2015     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol s}_{zz} quad\",\\" << std::endl;
2016     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol s}_{xy} quad\",\\" << std::endl;
2017     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol s}_{yz} quad\",\\" << std::endl;
2018     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol s}_{xz} quad\"" << std::endl;
2019     }
2020     ofstrm << "#pause -1" << std::endl;
2021    
2022     ofstrm << "set output \"resultats/graph/distribution_SIGMA_CH_dev.eps\"" << std::endl;
2023     ofstrm << "set title \"Distribution des contraintes normalisees\"" << std::endl;
2024     ofstrm << "set xlabel \"Contraintes normalisees\"" << std::endl;
2025     ofstrm << "set ylabel \"Densite de probabilite\"" << std::endl;
2026     if(fem_maill_lin && fem_maill_quad)
2027     {
2028     ofstrm << "plot sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol s}_{xx} lin\",\\" << std::endl;
2029     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol s}_{yy} lin\",\\" << std::endl;
2030     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol s}_{zz} lin\",\\" << std::endl;
2031     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol s}_{xy} lin\",\\" << std::endl;
2032     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol s}_{yz} lin\",\\" << std::endl;
2033     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol s}_{xz} lin\",\\" << std::endl;
2034     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol s}_{xx} quad\",\\" << std::endl;
2035     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol s}_{yy} quad\",\\" << std::endl;
2036     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol s}_{zz} quad\",\\" << std::endl;
2037     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol s}_{xy} quad\",\\" << std::endl;
2038     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol s}_{yz} quad\",\\" << std::endl;
2039     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol s}_{xz} quad\",\\" << std::endl;
2040     }
2041     else if(fem_maill_lin && !fem_maill_quad)
2042     {
2043     ofstrm << "plot sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol s}_{xx} lin\",\\" << std::endl;
2044     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol s}_{yy} lin\",\\" << std::endl;
2045     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol s}_{zz} lin\",\\" << std::endl;
2046     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol s}_{xy} lin\",\\" << std::endl;
2047     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol s}_{yz} lin\",\\" << std::endl;
2048     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol s}_{xz} lin\"" << std::endl;
2049     }
2050     else if(!fem_maill_lin && fem_maill_quad)
2051     {
2052     ofstrm << "plot sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol s}_{xx} quad\",\\" << std::endl;
2053     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol s}_{yy} quad\",\\" << std::endl;
2054     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol s}_{zz} quad\",\\" << std::endl;
2055     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol s}_{xy} quad\",\\" << std::endl;
2056     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol s}_{yz} quad\",\\" << std::endl;
2057     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol s}_{xz} quad\"" << std::endl;
2058     }
2059     ofstrm << "#pause -1" << std::endl;
2060    
2061     ofstrm << "set output \"resultats/graph/distribution_EPSILON_DH_sph.eps\"" << std::endl;
2062     ofstrm << "set title \"Distribution des deformations normalisees\"" << std::endl;
2063     ofstrm << "set xlabel \"Contraintes normalisees\"" << std::endl;
2064     ofstrm << "set ylabel \"Densite de probabilite\"" << std::endl;
2065     if(fem_maill_lin && fem_maill_quad)
2066     {
2067     ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol e}_{xx} lin\",\\" << std::endl;
2068     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol e}_{yy} lin\",\\" << std::endl;
2069     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol e}_{zz} lin\",\\" << std::endl;
2070     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol e}_{xy} lin\",\\" << std::endl;
2071     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol e}_{yz} lin\",\\" << std::endl;
2072     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol e}_{xz} lin\",\\" << std::endl;
2073     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol e}_{xx} quad\",\\" << std::endl;
2074     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol e}_{yy} quad\",\\" << std::endl;
2075     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol e}_{zz} quad\",\\" << std::endl;
2076     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol e}_{xy} quad\",\\" << std::endl;
2077     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol e}_{yz} quad\",\\" << std::endl;
2078     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol e}_{xz} quad\",\\" << std::endl;
2079     }
2080     else if(fem_maill_lin && !fem_maill_quad)
2081     {
2082     ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol e}_{xx} lin\",\\" << std::endl;
2083     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol e}_{yy} lin\",\\" << std::endl;
2084     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol e}_{zz} lin\",\\" << std::endl;
2085     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol e}_{xy} lin\",\\" << std::endl;
2086     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol e}_{yz} lin\",\\" << std::endl;
2087     ofstrm << " sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol e}_{xz} lin\"" << std::endl;
2088     }
2089     else if(!fem_maill_lin && fem_maill_quad)
2090     {
2091     ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol e}_{xx} quad\",\\" << std::endl;
2092     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol e}_{yy} quad\",\\" << std::endl;
2093     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol e}_{zz} quad\",\\" << std::endl;
2094     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol e}_{xy} quad\",\\" << std::endl;
2095     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol e}_{yz} quad\",\\" << std::endl;
2096     ofstrm << " sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol e}_{xz} quad\"" << std::endl;
2097     }
2098     ofstrm << "#pause -1" << std::endl;
2099    
2100     ofstrm << "set output \"resultats/graph/distribution_EPSILON_CH_sph.eps\"" << std::endl;
2101     ofstrm << "set title \"Distribution des deformations normalisees\"" << std::endl;
2102     ofstrm << "set xlabel \"Contraintes normalisees\"" << std::endl;
2103     ofstrm << "set ylabel \"Densite de probabilite\"" << std::endl;
2104     if(fem_maill_lin && fem_maill_quad)
2105     {
2106     ofstrm << "plot sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol e}_{xx} lin\",\\" << std::endl;
2107     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol e}_{yy} lin\",\\" << std::endl;
2108     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol e}_{zz} lin\",\\" << std::endl;
2109     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol e}_{xy} lin\",\\" << std::endl;
2110     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol e}_{yz} lin\",\\" << std::endl;
2111     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol e}_{xz} lin\",\\" << std::endl;
2112     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol e}_{xx} quad\",\\" << std::endl;
2113     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol e}_{yy} quad\",\\" << std::endl;
2114     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol e}_{zz} quad\",\\" << std::endl;
2115     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol e}_{xy} quad\",\\" << std::endl;
2116     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol e}_{yz} quad\",\\" << std::endl;
2117     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol e}_{xz} quad\",\\" << std::endl;
2118     }
2119     else if(fem_maill_lin && !fem_maill_quad)
2120     {
2121     ofstrm << "plot sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol e}_{xx} lin\",\\" << std::endl;
2122     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol e}_{yy} lin\",\\" << std::endl;
2123     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol e}_{zz} lin\",\\" << std::endl;
2124     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol e}_{xy} lin\",\\" << std::endl;
2125     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol e}_{yz} lin\",\\" << std::endl;
2126     ofstrm << " sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol e}_{xz} lin\"" << std::endl;
2127     }
2128     else if(!fem_maill_lin && fem_maill_quad)
2129     {
2130     ofstrm << "plot sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol e}_{xx} quad\",\\" << std::endl;
2131     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol e}_{yy} quad\",\\" << std::endl;
2132     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol e}_{zz} quad\",\\" << std::endl;
2133     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol e}_{xy} quad\",\\" << std::endl;
2134     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol e}_{yz} quad\",\\" << std::endl;
2135     ofstrm << " sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol e}_{xz} quad\"" << std::endl;
2136     }
2137     ofstrm << "#pause -1" << std::endl;
2138    
2139     ofstrm << "set output \"resultats/graph/distribution_EPSILON_DH_dev.eps\"" << std::endl;
2140     ofstrm << "set title \"Distribution des deformations normalisees\"" << std::endl;
2141     ofstrm << "set xlabel \"Contraintes normalisees\"" << std::endl;
2142     ofstrm << "set ylabel \"Densite de probabilite\"" << std::endl;
2143     if(fem_maill_lin && fem_maill_quad)
2144     {
2145     ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol e}_{xx} lin\",\\" << std::endl;
2146     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol e}_{yy} lin\",\\" << std::endl;
2147     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol e}_{zz} lin\",\\" << std::endl;
2148     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol e}_{xy} lin\",\\" << std::endl;
2149     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol e}_{yz} lin\",\\" << std::endl;
2150     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol e}_{xz} lin\",\\" << std::endl;
2151     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol e}_{xx} quad\",\\" << std::endl;
2152     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol e}_{yy} quad\",\\" << std::endl;
2153     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol e}_{zz} quad\",\\" << std::endl;
2154     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol e}_{xy} quad\",\\" << std::endl;
2155     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol e}_{yz} quad\",\\" << std::endl;
2156     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol e}_{xz} quad\",\\" << std::endl;
2157     }
2158     else if(fem_maill_lin && !fem_maill_quad)
2159     {
2160     ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol e}_{xx} lin\",\\" << std::endl;
2161     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol e}_{yy} lin\",\\" << std::endl;
2162     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol e}_{zz} lin\",\\" << std::endl;
2163     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol e}_{xy} lin\",\\" << std::endl;
2164     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol e}_{yz} lin\",\\" << std::endl;
2165     ofstrm << " sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol e}_{xz} lin\"" << std::endl;
2166     }
2167     else if(!fem_maill_lin && fem_maill_quad)
2168     {
2169     ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol e}_{xx} quad\",\\" << std::endl;
2170     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol e}_{yy} quad\",\\" << std::endl;
2171     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol e}_{zz} quad\",\\" << std::endl;
2172     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol e}_{xy} quad\",\\" << std::endl;
2173     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol e}_{yz} quad\",\\" << std::endl;
2174     ofstrm << " sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol e}_{xz} quad\"" << std::endl;
2175     }
2176     ofstrm << "#pause -1" << std::endl;
2177    
2178     ofstrm << "set output \"resultats/graph/distribution_EPSILON_CH_dev.eps\"" << std::endl;
2179     ofstrm << "set title \"Distribution des deformations normalisees\"" << std::endl;
2180     ofstrm << "set xlabel \"Contraintes normalisees\"" << std::endl;
2181     ofstrm << "set ylabel \"Densite de probabilite\"" << std::endl;
2182     if(fem_maill_lin && fem_maill_quad)
2183     {
2184     ofstrm << "plot sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol e}_{xx} lin\",\\" << std::endl;
2185     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol e}_{yy} lin\",\\" << std::endl;
2186     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol e}_{zz} lin\",\\" << std::endl;
2187     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol e}_{xy} lin\",\\" << std::endl;
2188     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol e}_{yz} lin\",\\" << std::endl;
2189     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol e}_{xz} lin\",\\" << std::endl;
2190     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol e}_{xx} quad\",\\" << std::endl;
2191     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol e}_{yy} quad\",\\" << std::endl;
2192     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol e}_{zz} quad\",\\" << std::endl;
2193     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol e}_{xy} quad\",\\" << std::endl;
2194     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol e}_{yz} quad\",\\" << std::endl;
2195     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol e}_{xz} quad\",\\" << std::endl;
2196     }
2197     else if(fem_maill_lin && !fem_maill_quad)
2198     {
2199     ofstrm << "plot sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"{/Symbol e}_{xx} lin\",\\" << std::endl;
2200     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 2 lw 2 title \"{/Symbol e}_{yy} lin\",\\" << std::endl;
2201     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"{/Symbol e}_{zz} lin\",\\" << std::endl;
2202     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 2 lw 2 title \"{/Symbol e}_{xy} lin\",\\" << std::endl;
2203     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 2 lw 2 title \"{/Symbol e}_{yz} lin\",\\" << std::endl;
2204     ofstrm << " sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 2 lw 2 title \"{/Symbol e}_{xz} lin\"" << std::endl;
2205     }
2206     else if(!fem_maill_lin && fem_maill_quad)
2207     {
2208     ofstrm << "plot sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"{/Symbol e}_{xx} quad\",\\" << std::endl;
2209     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'green' dt 1 lw 2 title \"{/Symbol e}_{yy} quad\",\\" << std::endl;
2210     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"{/Symbol e}_{zz} quad\",\\" << std::endl;
2211     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'orange' dt 1 lw 2 title \"{/Symbol e}_{xy} quad\",\\" << std::endl;
2212     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'cyan' dt 1 lw 2 title \"{/Symbol e}_{yz} quad\",\\" << std::endl;
2213     ofstrm << " sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_EPSILON_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'violet' dt 1 lw 2 title \"{/Symbol e}_{xz} quad\"" << std::endl;
2214     }
2215     ofstrm << "#pause -1" << std::endl;
2216    
2217 couturad 951 }
2218 couturad 971 if(etude_thermique)
2219 couturad 951 {
2220 couturad 971 ofstrm << "" << std::endl;
2221     ofstrm << "set output \"resultats/graph/nuage_Lambda_app.eps\"" << std::endl;
2222     ofstrm << "set xrange [0:50]" << std::endl;
2223     ofstrm << "set title \"Conductivite thermique (W/(m*K))\"" << std::endl;
2224     ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
2225     ofstrm << "set ylabel \"Conductivite thermique (W/(m*K))\"" << std::endl;
2226     if(fem_maill_lin && fem_maill_quad)
2227     {
2228 couturad 974 ofstrm << "plot \"resultats/data_graph/liste_Conductivite_thermique_app_FH_lin.txt\" u ($2*100):($3) pt 4 ps 1 lc rgb 'blue' lw 1 title \"FH lin\",\\" << std::endl;
2229     ofstrm << " \"resultats/data_graph/liste_Conductivite_thermique_app_GH_lin.txt\" u ($2*100):($3) pt 4 ps 1 lc rgb 'red' lw 1 title \"GH lin\",\\" << std::endl;
2230     ofstrm << " \"resultats/data_graph/liste_Conductivite_thermique_app_FH_quad.txt\" u ($2*100):($3) pt 5 ps 1 lc rgb 'blue' lw 1 title \"FH quad\",\\" << std::endl;
2231     ofstrm << " \"resultats/data_graph/liste_Conductivite_thermique_app_GH_quad.txt\" u ($2*100):($3) pt 5 ps 1 lc rgb 'red' lw 1 title \"GH quad\"" << std::endl;
2232 couturad 971 }
2233     else if(fem_maill_lin && !fem_maill_quad)
2234     {
2235 couturad 974 ofstrm << "plot \"resultats/data_graph/liste_Conductivite_thermique_app_FH_lin.txt\" u ($2*100):($3) pt 4 ps 1 lc rgb 'blue' lw 1 title \"FH lin\",\\" << std::endl;
2236     ofstrm << " \"resultats/data_graph/liste_Conductivite_thermique_app_GH_lin.txt\" u ($2*100):($3) pt 4 ps 1 lc rgb 'red' lw 1 title \"GH lin\"" << std::endl;
2237 couturad 971 }
2238     else if(!fem_maill_lin && fem_maill_quad)
2239     {
2240 couturad 974 ofstrm << "plot \"resultats/data_graph/liste_Conductivite_thermique_app_FH_quad.txt\" u ($2*100):($3) pt 5 ps 1 lc rgb 'blue' lw 1 title \"FH quad\",\\" << std::endl;
2241     ofstrm << " \"resultats/data_graph/liste_Conductivite_thermique_app_GH_quad.txt\" u ($2*100):($3) pt 5 ps 1 lc rgb 'red' lw 1 title \"GH quad\"" << std::endl;
2242 couturad 971 }
2243     ofstrm << "#pause -1" << std::endl;
2244    
2245     ofstrm << "" << std::endl;
2246     ofstrm << "set output \"resultats/graph/cumul_Lambda_app.eps\"" << std::endl;
2247     ofstrm << "set title \"Conductivite thermique (W/(m*K))\"" << std::endl;
2248     ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
2249     ofstrm << "set ylabel \"Conductivite thermique (W/(m*K))\"" << std::endl;
2250     if(fem_maill_lin && fem_maill_quad)
2251     {
2252 couturad 974 ofstrm << "plot \"<(sed -n 2p resultats/data_graph/erosion_Conductivite_thermique_app_FH_lin.txt)\" u ($3*100):($5):($4*100):($6) with xyerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"FH lin\",\\" << std::endl;
2253     ofstrm << " \"<(sed -n 2p resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt)\" u ($3*100):($5):($4*100):($6) with xyerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"GH lin\",\\" << std::endl;
2254     ofstrm << " \"<(sed -n 2p resultats/data_graph/erosion_Conductivite_thermique_app_FH_quad.txt)\" u ($3*100):($5):($4*100):($6) with xyerrorbars pt 5 ps 1 lc rgb 'blue' lw 1 title \"FH quad\",\\" << std::endl;
2255     ofstrm << " \"<(sed -n 2p resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt)\" u ($3*100):($5):($4*100):($6) with xyerrorbars pt 5 ps 1 lc rgb 'red' lw 1 title \"GH quad\"" << std::endl;
2256 couturad 971 }
2257     else if(fem_maill_lin && !fem_maill_quad)
2258     {
2259 couturad 974 ofstrm << "plot \"<(sed -n 2p resultats/data_graph/erosion_Conductivite_thermique_app_FH_lin.txt)\" u ($3*100):($5):($4*100):($6) with xyerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"FH lin\",\\" << std::endl;
2260     ofstrm << " \"<(sed -n 2p resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt)\" u ($3*100):($5):($4*100):($6) with xyerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"GH lin\"" << std::endl;
2261 couturad 971 }
2262     else if(!fem_maill_lin && fem_maill_quad)
2263     {
2264 couturad 974 ofstrm << "plot \"<(sed -n 2p resultats/data_graph/erosion_Conductivite_thermique_app_FH_quad.txt)\" u ($3*100):($5):($4*100):($6) with xyerrorbars pt 5 ps 1 lc rgb 'blue' lw 1 title \"FH quad\",\\" << std::endl;
2265     ofstrm << " \"<(sed -n 2p resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt)\" u ($3*100):($5):($4*100):($6) with xyerrorbars pt 5 ps 1 lc rgb 'red' lw 1 title \"GH quad\"" << std::endl;
2266 couturad 971 }
2267     ofstrm << "#pause -1" << std::endl;
2268    
2269    
2270     ofstrm << "set output \"resultats/graph/cumul_erosion_Lambda_app.eps\"" << std::endl;
2271     ofstrm << "set xrange [0:0.5]" << std::endl;
2272     ofstrm << "set y2range[0:100]" << std::endl;
2273     ofstrm << "set title \"Conductivite thermique (W/(m*K))\"" << std::endl;
2274     ofstrm << "set xlabel \"Distance d'erosion\"" << std::endl;
2275     ofstrm << "set ylabel \"Conductivite thermique (W/(m*K))\"" << std::endl;
2276     ofstrm << "set y2label \"Fraction volumique (%)\"" << std::endl;
2277     ofstrm << "set ytics nomirror" << std::endl;
2278     ofstrm << "set y2tics" << std::endl;
2279     if(fem_maill_lin && fem_maill_quad)
2280     {
2281     ofstrm << "plot \"resultats/data_graph/erosion_Conductivite_thermique_app_FH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'blue' lw 1 title \"FH lin\" axes x1y1 ,\\" << std::endl;
2282 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_FH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur FH lin\" axes x1y1 ,\\" << std::endl;
2283 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'red' lw 1 title \"GH lin\" axes x1y1 ,\\" << std::endl;
2284 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur GH lin\" axes x1y1 ,\\" << std::endl;
2285 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'grey' lt 0 lw 1 pt 15 ps 1 title \"Frac. Vol.\" axes x1y2 ,\\" << std::endl;
2286     ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'grey' pt 15 ps 1 title \"erreur Frac. Vol.\" axes x1y2 ,\\" << std::endl;
2287     ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_FH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'blue' lw 1 title \"FH quad\" axes x1y1 ,\\" << std::endl;
2288 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_FH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur FH quad\" axes x1y1 ,\\" << std::endl;
2289 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'red' lw 1 title \"GH quad\" axes x1y1 ,\\" << std::endl;
2290 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur GH quad\" axes x1y1 ,\\" << std::endl;
2291 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'grey' lt 0 lw 1 pt 15 ps 1 title \"Frac. Vol.\" axes x1y2 ,\\" << std::endl;
2292     ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'grey' pt 15 ps 1 title \"erreur Frac. Vol.\" axes x1y2" << std::endl;
2293     }
2294     else if(fem_maill_lin && !fem_maill_quad)
2295     {
2296     ofstrm << "plot \"resultats/data_graph/erosion_Conductivite_thermique_app_FH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'blue' lw 1 title \"FH lin\" axes x1y1 ,\\" << std::endl;
2297 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_FH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur FH lin\" axes x1y1 ,\\" << std::endl;
2298 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'red' lw 1 title \"GH lin\" axes x1y1 ,\\" << std::endl;
2299 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur GH lin\" axes x1y1 ,\\" << std::endl;
2300 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'grey' lt 0 lw 1 pt 15 ps 1 title \"Frac. Vol.\" axes x1y2 ,\\" << std::endl;
2301     ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'grey' pt 15 ps 1 title \"erreur Frac. Vol.\" axes x1y2 " << std::endl;
2302     }
2303     if(!fem_maill_lin && fem_maill_quad)
2304     {
2305     ofstrm << "plot \"resultats/data_graph/erosion_Conductivite_thermique_app_FH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'blue' lw 1 title \"FH quad\" axes x1y1 ,\\" << std::endl;
2306 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_FH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 4 ps 1 lc rgb 'blue' lw 1 title \"erreur FH quad\" axes x1y1 ,\\" << std::endl;
2307 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'red' lw 1 title \"GH quad\" axes x1y1 ,\\" << std::endl;
2308 couturad 974 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 4 ps 1 lc rgb 'red' lw 1 title \"erreur GH quad\" axes x1y1 ,\\" << std::endl;
2309 couturad 971 ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'grey' lt 0 lw 1 pt 15 ps 1 title \"Frac. Vol.\" axes x1y2 ,\\" << std::endl;
2310     ofstrm << " \"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'grey' pt 15 ps 1 title \"erreur Frac. Vol.\" axes x1y2" << std::endl;
2311     }
2312     ofstrm << "unset y2label" << std::endl;
2313     ofstrm << "unset y2tics" << std::endl;
2314     ofstrm << "#pause -1" << std::endl;
2315    
2316 couturad 951 }
2317 couturad 964 ofstrm.close();
2318     if(fonc_affiche!=NULL) fonc_affiche((char*)"fig_Eapp.gnu");
2319 couturad 951 }
2320 couturad 929
2321    
2322 couturad 951
2323 couturad 919 int PARAMETRES::importer_fichier_parametres(char* fichier, OT_PARAMETRES* params)
2324     {
2325 couturad 964 return params->lire(fichier);
2326 couturad 919 }
2327    
2328     int PARAMETRES::importer_fichier_liste_parametres(char* fichier, std::vector< OT_PARAMETRES* >& vector_params)
2329     {
2330     std::string str_fichier = fichier;
2331     std::size_t found = str_fichier.rfind((char*)"/");
2332     std::string chemin;
2333     if(found!=-1)
2334     {
2335     chemin = str_fichier.substr(0,found+1);
2336     }
2337     else chemin = "";
2338     FILE* in=fopen(fichier,"rt");
2339     char ligne[4000];
2340 couturad 968 fgets(ligne,4000,in);
2341 couturad 919 while(!feof(in))
2342     {
2343     char *aide = strstr(ligne,"//");
2344     if(aide==NULL)
2345     {
2346 couturad 968 char sous_fichier[500];
2347     sscanf(ligne,"%s",sous_fichier);
2348     if(strlen(sous_fichier)==0) continue;
2349     OT_PARAMETRES *param = new OT_PARAMETRES;
2350     std::string str_sous_fichier = chemin;
2351     str_sous_fichier.append(sous_fichier);
2352     if(param->lire((char*)str_sous_fichier.c_str())==FAIL) return FAIL;
2353     vector_params.push_back(param);
2354 couturad 919 }
2355 couturad 968 fgets(ligne,4000,in);
2356 couturad 919 }
2357 couturad 964 return OK;
2358 couturad 919 }