ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/microstructure/src/mstruct_parametres.cpp
Revision: 1079
Committed: Tue Sep 14 14:42:42 2021 UTC (3 years, 11 months ago) by francois
File size: 342483 byte(s)
Log Message:
parametrage des sorties graphique de l'homogéinisation des microstructure choix entre svg et pdf.
Mise à jour de l'aide

File Contents

# Content
1 #include "mstruct_parametres.h"
2 #include "mstruct_definition.h"
3 #include "mstruct_generateur_rsa.h"
4 #include "mg_export.h"
5 #include <string.h>
6 #include <fstream>
7 #include <cstdlib>
8
9
10 void PARAMETRES::ini_param_generateur_rsa(OT_PARAMETRES* params, int type_inclusion)
11 {
12 params->ajouter("Type_generateur","0",OT_PARAMETRES::DOUBLE,"Type de generateur : RSA [0], DCR [1]");
13 params->ajouter("Nom_mgcg_modele","VES",OT_PARAMETRES::STRING,"Nom du MG_CG_MODELE");
14 params->ajouter("Nom_groupe_inclusion","Particule",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion (Ex: Particule)");
15 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 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 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::SPHERE)
28 {
29 params->ajouter("Type_inclusion","0",OT_PARAMETRES::DOUBLE,"Type d'inclusion : Sphere [0], Cylindre [1]");
30 params->ajouter("Mu_rayon","0.09",OT_PARAMETRES::DOUBLE,"Moyenne du rayon de la sphere");
31 params->ajouter("Sigma_rayon","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du rayon de la sphere");
32 params->ajouter("Type_distribution_rayon","0",OT_PARAMETRES::DOUBLE,"Type de distribution du rayon : Fixe[0], Uniforme[1], Normale[2]");
33 }
34 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
35 {
36 params->ajouter("Type_inclusion","1",OT_PARAMETRES::DOUBLE,"Type d'inclusion : Sphere [0], Cylindre [1]");
37 params->ajouter("Mu_rayon","0.05",OT_PARAMETRES::DOUBLE,"Moyenne du rayon du cylindre");
38 params->ajouter("Sigma_rayon","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du rayon du cylindre");
39 params->ajouter("Type_distribution_rayon","0",OT_PARAMETRES::DOUBLE,"Type de distribution du rayon : Fixe[0], Uniforme[1], Normale[2]");
40 params->ajouter("Mu_longueur","0.4",OT_PARAMETRES::DOUBLE,"Moyenne de la longueur du cylindre");
41 params->ajouter("Sigma_longueur","0.0",OT_PARAMETRES::DOUBLE,"Ecart type de la longueur du cylindre");
42 params->ajouter("Type_distribution_longueur","0",OT_PARAMETRES::DOUBLE,"Type de distribution de la longueur : Fixe[0], Uniforme[1], Normale[2]");
43 params->ajouter("Mu_theta","0.0",OT_PARAMETRES::DOUBLE,"Moyenne de l'angle theta");
44 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 params->ajouter("Mu_phi","0.0",OT_PARAMETRES::DOUBLE,"Moyenne de l'angle phi");
47 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 }
50 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::ELLIPSOIDE)
51 {
52 params->ajouter("Type_inclusion","2",OT_PARAMETRES::DOUBLE,"Type d'inclusion : Sphere [0], Cylindre [1]");
53 params->ajouter("Mu_rayon_majeur","0.05",OT_PARAMETRES::DOUBLE,"Moyenne du rayon majeur de l'ellipsoide");
54 params->ajouter("Sigma_rayon_majeur","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du rayon majeur de l'ellipsoide");
55 params->ajouter("Type_distribution_rayon_majeur","0",OT_PARAMETRES::DOUBLE,"Type de distribution du rayon : Fixe[0], Uniforme[1], Normale[2]");
56 params->ajouter("Mu_rayon_mineur","0.05",OT_PARAMETRES::DOUBLE,"Moyenne du rayon mineur de l'ellipsoide");
57 params->ajouter("Sigma_rayon_mineur","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du rayon mineur de l'ellipsoide");
58 params->ajouter("Type_distribution_rayon_mineur","0",OT_PARAMETRES::DOUBLE,"Type de distribution du rayon : Fixe[0], Uniforme[1], Normale[2]");
59 params->ajouter("Mu_theta","0.0",OT_PARAMETRES::DOUBLE,"Moyenne de l'angle theta");
60 params->ajouter("Sigma_theta","1.0",OT_PARAMETRES::DOUBLE,"Ecart type de l'angle theta");
61 params->ajouter("Type_distribution_theta","1",OT_PARAMETRES::DOUBLE,"Type de distribution de l'angle theta : Fixe[0], Uniforme[1], Normale[2]");
62 params->ajouter("Mu_phi","0.0",OT_PARAMETRES::DOUBLE,"Moyenne de l'angle phi");
63 params->ajouter("Sigma_phi","1.0",OT_PARAMETRES::DOUBLE,"Ecart type de l'angle phi");
64 params->ajouter("Type_distribution_phi","1",OT_PARAMETRES::DOUBLE,"Type de distribution de l'angle phi : Fixe[0], Uniforme[1], Normale[2]");
65 }
66 params->ajouter("Porosite","0",OT_PARAMETRES::DOUBLE,"Considerer l'inclusion comme etant une porosite (vide) [1]");
67 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)");
68 params->ajouter("Distance_min_inter_volume","0.04",OT_PARAMETRES::DOUBLE,"Distance minimale qui separe deux inclusions");
69 params->ajouter("Volume_min","0.0008",OT_PARAMETRES::DOUBLE,"Volume minimal admissible de l'inclusion");
70 params->ajouter("Aire_min","0.001963",OT_PARAMETRES::DOUBLE,"Aire minimal admissible d'une face de l'inclusion");
71 params->ajouter("Longueur_min","0.02",OT_PARAMETRES::DOUBLE,"Longueur minimal admissible d'une arete ");
72 params->ajouter("Angle_min","0.7854",OT_PARAMETRES::DOUBLE,"Angle minimal admissible entre deux faces");
73 params->ajouter("Nb_iteration_max","2000",OT_PARAMETRES::DOUBLE,"Nombre maximal d'iteration");
74 }
75
76 void PARAMETRES::ini_param_generateur_dcr(OT_PARAMETRES* params, int type_inclusion)
77 {
78 params->ajouter("Type_generateur","1",OT_PARAMETRES::DOUBLE,"Type de generateur : RSA [0], DCR [1]");
79 params->ajouter("Nom_mgcg_modele","VES",OT_PARAMETRES::STRING,"Nom du MG_CG_MODELE");
80 params->ajouter("Nom_groupe_inclusion","Particule",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion (Ex: Particule)");
81 params->ajouter("Boite3D_distribution_Xmin","-0.25",OT_PARAMETRES::DOUBLE,"Xmin boite3D de distribution d'inclusion");
82 params->ajouter("Boite3D_distribution_Ymin","-0.25",OT_PARAMETRES::DOUBLE,"Ymin boite3D de distribution d'inclusion");
83 params->ajouter("Boite3D_distribution_Zmin","-0.25",OT_PARAMETRES::DOUBLE,"Zmin boite3D de distribution d'inclusion");
84 params->ajouter("Boite3D_distribution_Xmax","1.25",OT_PARAMETRES::DOUBLE,"Xmax boite3D de distribution d'inclusion");
85 params->ajouter("Boite3D_distribution_Ymax","1.25",OT_PARAMETRES::DOUBLE,"Ymax boite3D de distribution d'inclusion");
86 params->ajouter("Boite3D_distribution_Zmax","1.25",OT_PARAMETRES::DOUBLE,"Zmax boite3D de distribution d'inclusion");
87 params->ajouter("Nb_pas_X","20",OT_PARAMETRES::DOUBLE,"Nombre de pas selon X pout la creation d'un octree");
88 params->ajouter("Nb_pas_Y","20",OT_PARAMETRES::DOUBLE,"Nombre de pas selon Y pout la creation d'un octree");
89 params->ajouter("Nb_pas_Z","20",OT_PARAMETRES::DOUBLE,"Nombre de pas selon Z pout la creation d'un octree");
90 params->ajouter("Fraction_volumique_cible","0.1",OT_PARAMETRES::DOUBLE,"Fraction volumique cible d'inclusion [0.0, 1.0]");
91 params->ajouter("Eps_fraction_volumique","0.001",OT_PARAMETRES::DOUBLE,"Epsilon fraction volumique");
92 params->ajouter("Avec_intersections","1",OT_PARAMETRES::DOUBLE,"Avec ou sans intersections avec le bord du VES : Sans [0] Avec [1]");
93 params->ajouter("Avec_interface_graphique","0",OT_PARAMETRES::DOUBLE,"Avec l'interface graphique : Sans [0] Avec [1]");
94 params->ajouter("Facteur_reduction_vitesse","0.75",OT_PARAMETRES::DOUBLE,"Facteur de reduction de la vitesse des particules");
95 params->ajouter("Eps_vitesse","0.0001",OT_PARAMETRES::DOUBLE,"Eps vitesse");
96 params->ajouter("Friction","0.0",OT_PARAMETRES::DOUBLE,"Friction entre les particules");
97 params->ajouter("Pas_temps_sim","0.01",OT_PARAMETRES::DOUBLE,"Pas de temps pour la simulation");
98 params->ajouter("Temps_max_sim","60.0",OT_PARAMETRES::DOUBLE,"Temps maximal de la simulation");
99 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]");
100 params->ajouter("Nb_iteration_max","2000",OT_PARAMETRES::DOUBLE,"Nombre maximal d'iteration");
101 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::SPHERE)
102 {
103 params->ajouter("Type_inclusion","0",OT_PARAMETRES::DOUBLE,"Type d'inclusion : Sphere [0], Cylindre [1]");
104 params->ajouter("Mu_rayon","0.09",OT_PARAMETRES::DOUBLE,"Moyenne du rayon de la sphere");
105 params->ajouter("Sigma_rayon","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du rayon de la sphere");
106 params->ajouter("Type_distribution_rayon","0",OT_PARAMETRES::DOUBLE,"Type de distribution du rayon : Fixe[0], Uniforme[1], Normale[2]");
107 }
108 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
109 {
110 params->ajouter("Type_inclusion","1",OT_PARAMETRES::DOUBLE,"Type d'inclusion : Sphere [0], Cylindre [1]");
111 params->ajouter("Mu_rayon","0.05",OT_PARAMETRES::DOUBLE,"Moyenne du rayon du cylindre");
112 params->ajouter("Sigma_rayon","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du rayon du cylindre");
113 params->ajouter("Type_distribution_rayon","0",OT_PARAMETRES::DOUBLE,"Type de distribution du rayon : Fixe[0], Uniforme[1], Normale[2]");
114 params->ajouter("Mu_longueur","0.4",OT_PARAMETRES::DOUBLE,"Moyenne de la longueur du cylindre");
115 params->ajouter("Sigma_longueur","0.0",OT_PARAMETRES::DOUBLE,"Ecart type de la longueur du cylindre");
116 params->ajouter("Type_distribution_longueur","0",OT_PARAMETRES::DOUBLE,"Type de distribution de la longueur : Fixe[0], Uniforme[1], Normale[2]");
117 params->ajouter("Mu_theta","0.0",OT_PARAMETRES::DOUBLE,"Moyenne de l'angle theta");
118 params->ajouter("Sigma_theta","1.0",OT_PARAMETRES::DOUBLE,"Ecart type de l'angle theta");
119 params->ajouter("Type_distribution_theta","1",OT_PARAMETRES::DOUBLE,"Type de distribution de l'angle theta : Fixe[0], Uniforme[1], Normale[2]");
120 params->ajouter("Mu_phi","0.0",OT_PARAMETRES::DOUBLE,"Moyenne de l'angle phi");
121 params->ajouter("Sigma_phi","1.0",OT_PARAMETRES::DOUBLE,"Ecart type de l'angle phi");
122 params->ajouter("Type_distribution_phi","1",OT_PARAMETRES::DOUBLE,"Type de distribution de l'angle phi : Fixe[0], Uniforme[1], Normale[2]");
123 }
124 params->ajouter("Porosite","0",OT_PARAMETRES::DOUBLE,"Considerer l'inclusion comme etant une porosite (vide) [1]");
125 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)");
126 params->ajouter("Distance_min_inter_volume","0.04",OT_PARAMETRES::DOUBLE,"Distance minimale qui separe deux inclusions");
127 params->ajouter("Volume_min","0.0008",OT_PARAMETRES::DOUBLE,"Volume minimal admissible de l'inclusion");
128 params->ajouter("Aire_min","0.001963",OT_PARAMETRES::DOUBLE,"Aire minimal admissible d'une face de l'inclusion");
129 params->ajouter("Longueur_min","0.02",OT_PARAMETRES::DOUBLE,"Longueur minimal admissible d'une arete ");
130 params->ajouter("Angle_min","0.7854",OT_PARAMETRES::DOUBLE,"Angle minimal admissible entre deux faces");
131 }
132
133
134 void PARAMETRES::ini_param_materiau(OT_PARAMETRES* params,char* nom_groupe_forme,bool etude_mecanique,bool etude_thermique)
135 {
136 params->ajouter("Nom_groupe_forme",nom_groupe_forme,OT_PARAMETRES::STRING,"Nom du groupe de forme (Ex: Particule, Matrice)");
137 if(etude_mecanique) params->ajouter("Etude_mecanique","1",OT_PARAMETRES::DOUBLE,"Etude mecanique");
138 else params->ajouter("Etude_mecanique","0",OT_PARAMETRES::DOUBLE,"Etude mecanique");
139 params->ajouter("Mu_E","69.0e9",OT_PARAMETRES::DOUBLE,"Moyenne du module d'elasticite");
140 params->ajouter("Sigma_E","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du module d'elasticite");
141 params->ajouter("Type_distribution_E","0",OT_PARAMETRES::DOUBLE,"Type de distribution du module d'elasticite : Fixe[0], Uniforme[1], Normale[2]");
142 params->ajouter("Mu_nu","0.3",OT_PARAMETRES::DOUBLE,"Moyenne du coefficient de Poisson");
143 params->ajouter("Sigma_nu","0.0",OT_PARAMETRES::DOUBLE,"Ecart type du coefficient de Poisson");
144 params->ajouter("Type_distribution_nu","0",OT_PARAMETRES::DOUBLE,"Type de distribution du coefficient de Poisson : Fixe[0], Uniforme[1], Normale[2]");
145 if(etude_thermique) params->ajouter("Etude_thermique","1",OT_PARAMETRES::DOUBLE,"Etude thermique");
146 else params->ajouter("Etude_thermique","0",OT_PARAMETRES::DOUBLE,"Etude thermique");
147 params->ajouter("Mu_Lambda","0.14",OT_PARAMETRES::DOUBLE,"Moyenne de la conductivite thermique");
148 params->ajouter("Sigma_Lambda","0.0",OT_PARAMETRES::DOUBLE,"Ecart type de la conductivite thermique");
149 params->ajouter("Type_distribution_Lambda","0",OT_PARAMETRES::DOUBLE,"Type de distribution de la conductivite thermique : Fixe[0], Uniforme[1], Normale[2]");
150 params->ajouter("Mu_Ro","1.0",OT_PARAMETRES::DOUBLE,"Moyenne de la masse volumique");
151 params->ajouter("Sigma_Ro","0.0",OT_PARAMETRES::DOUBLE,"Ecart type de la masse volumique");
152 params->ajouter("Type_distribution_Ro","0",OT_PARAMETRES::DOUBLE,"Type de distribution de la masse volumique : Fixe[0], Uniforme[1], Normale[2]");
153 params->ajouter("Mu_Cp","1.0",OT_PARAMETRES::DOUBLE,"Moyenne de capacite thermique massique");
154 params->ajouter("Sigma_Cp","0.0",OT_PARAMETRES::DOUBLE,"Ecart type de la capacite thermique massique");
155 params->ajouter("Type_distribution_Cp","0",OT_PARAMETRES::DOUBLE,"Type de distribution de la capacite thermique massique : Fixe[0], Uniforme[1], Normale[2]");
156 }
157
158 void PARAMETRES::ini_param_carte_taille(OT_PARAMETRES* params)
159 {
160 params->ajouter("Ecart_nodal","0.08",OT_PARAMETRES::DOUBLE,"Ecart nodal");
161 params->ajouter("Ecart_nodal_face_particule","0.04",OT_PARAMETRES::DOUBLE,"Ecart nodal des faces des particules");
162 params->ajouter("Nb_couche_min","2",OT_PARAMETRES::DOUBLE,"Nombre de couches entre chaque solide");
163 params->ajouter("Fechantillonnage","20",OT_PARAMETRES::DOUBLE,"Nombre d'échantillon par entité");
164 params->ajouter("Nb_cellule_direction","50",OT_PARAMETRES::DOUBLE,"Nombre de cellules de la FEM_SOLUTION dans les directions x,y,z");
165 params->ajouter("Nom_carte","carte",OT_PARAMETRES::STRING,"Nom de la carte de taille");
166 params->ajouter("Nom_fem_solution","solcarte",OT_PARAMETRES::STRING,"Nom de la FEM_SOLUTION");
167 params->ajouter("Nb_pas","32",OT_PARAMETRES::DOUBLE,"Nombre de pas de balayage");
168 params->ajouter("Facteur_augmentation","25",OT_PARAMETRES::DOUBLE,"Facteur d'augmentation de l'ecart nodal d'une cellule a l'autre");
169 }
170
171 void PARAMETRES::ini_param_mailleur(OT_PARAMETRES* params)
172 {
173 params->ajouter("Niveau","3",OT_PARAMETRES::DOUBLE,"Niveau du maillage : 1D [1], 2D [2], 3D [3]");
174 params->ajouter("Niveau_opt_2d","5",OT_PARAMETRES::DOUBLE,"Limite supérieure des mailles à optimiser");
175 params->ajouter("Niveau_opt_3d","2",OT_PARAMETRES::DOUBLE,"Limite supérieure des mailles à optimiser");
176 params->ajouter("Priorite_metrique","0.65",OT_PARAMETRES::DOUBLE,"Valeur de la prise en compte de la métrique versus la qualité");
177 params->ajouter("Grille_reguliere","0.0",OT_PARAMETRES::DOUBLE,"Maillage en elements hexaedriques");
178 params->ajouter("Gr_nx","20",OT_PARAMETRES::DOUBLE,"Nombre d'element dans la direction x");
179 params->ajouter("Gr_ny","20",OT_PARAMETRES::DOUBLE,"Nombre d'element dans la direction x");
180 params->ajouter("Gr_nz","20",OT_PARAMETRES::DOUBLE,"Nombre d'element dans la direction x");
181 }
182
183 void PARAMETRES::ini_param_mailleur_fem(OT_PARAMETRES* params)
184 {
185 params->ajouter("Degre","2",OT_PARAMETRES::DOUBLE,"Degre du maillage a creer");
186 params->ajouter("Analyse","0",OT_PARAMETRES::DOUBLE,"Analyse de la qualité du maillage après le maillage : Analyse [1]");
187 params->ajouter("Optimisation_num_noeud","0",OT_PARAMETRES::DOUBLE,"Optimisation de la numerotation des noeuds : Optimisation [1]");
188 }
189
190 void PARAMETRES::ini_param_etude(OT_PARAMETRES* params, int type_etude)
191 {
192 params->ajouter("Fichier_param_aster","param_aster.txt",OT_PARAMETRES::STRING,"Nom du fichier de parametres aster");
193 params->ajouter("Type_etude",type_etude,OT_PARAMETRES::DOUBLE,"Type d'etude : Mecanique [0], Thermique [1]");
194 params->ajouter("Code_resu","11111111",OT_PARAMETRES::STRING,"Code de resolution");
195 if(type_etude==MSTRUCT::TYPE_ETUDE::MECANIQUE)
196 {
197 params->ajouter("Type_Chargement","0",OT_PARAMETRES::DOUBLE,"Type de chargement : Spherique [0], Deviatorique [1]");
198 params->ajouter("Type_CL","0",OT_PARAMETRES::DOUBLE,"Type de conditions aux limites : CLDH [0], CLCH[1]");
199 params->ajouter("Valeur_CL","0.0001",OT_PARAMETRES::DOUBLE,"Valeur de la condition aux limites");
200 }
201 else if(type_etude==MSTRUCT::TYPE_ETUDE::THERMIQUE)
202 {
203 params->ajouter("Type_CL","2",OT_PARAMETRES::DOUBLE,"Type de conditions aux limites : Gradient de temperature[2], Flux de chaleur[3]");
204 params->ajouter("Direction","0",OT_PARAMETRES::DOUBLE,"Direction du gradient ou flux : X[0], Y[1], Z[2]");
205 params->ajouter("Valeur_CL","1.0",OT_PARAMETRES::DOUBLE,"Valeur de la condition aux limites");
206 }
207 }
208
209 void PARAMETRES::ini_param_post_traitement(OT_PARAMETRES* params, int type_post_traitement, int nb_couche_erosion, double epaisseur_couche_erosion)
210 {
211 bool erosion;
212 if(nb_couche_erosion>0) erosion=true;
213 else erosion=false;
214 if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP)
215 {
216 params->ajouter("Identifiant","Champ_SIGMA",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
217 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
218 params->ajouter("Num_solution",2,OT_PARAMETRES::DOUBLE,"Numero de la FEM_SOLUTION solution (0,1,2,...)");
219 params->ajouter("Nom_groupe_forme","ALL",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion. Si [ALL] prend le ves au complet");
220 params->ajouter("Largeur_colonne_distribution","0.1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
221 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]");
222 params->ajouter("Boite3D_analyse_Xmin","0.1",OT_PARAMETRES::DOUBLE,"Xmin boite3D d'analyse");
223 params->ajouter("Boite3D_analyse_Ymin","0.1",OT_PARAMETRES::DOUBLE,"Ymin boite3D d'analyse");
224 params->ajouter("Boite3D_analyse_Zmin","0.1",OT_PARAMETRES::DOUBLE,"Zmin boite3D d'analyse");
225 params->ajouter("Boite3D_analyse_Xmax","0.9",OT_PARAMETRES::DOUBLE,"Xmax boite3D d'analyse");
226 params->ajouter("Boite3D_analyse_Ymax","0.9",OT_PARAMETRES::DOUBLE,"Ymax boite3D d'analyse");
227 params->ajouter("Boite3D_analyse_Zmax","0.9",OT_PARAMETRES::DOUBLE,"Zmax boite3D d'analyse");
228 }
229 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION)
230 {
231 params->ajouter("Identifiant","Orientation_Particule",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
232 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
233 params->ajouter("Nom_groupe_forme","Particule",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion.");
234 params->ajouter("Avec_fem_maillage","1",OT_PARAMETRES::DOUBLE,"Analyser le volume des particules avec le FEM_MAILLAGE");
235 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]");
236 params->ajouter("Boite3D_analyse_Xmin","0.1",OT_PARAMETRES::DOUBLE,"Xmin boite3D d'analyse");
237 params->ajouter("Boite3D_analyse_Ymin","0.1",OT_PARAMETRES::DOUBLE,"Ymin boite3D d'analyse");
238 params->ajouter("Boite3D_analyse_Zmin","0.1",OT_PARAMETRES::DOUBLE,"Zmin boite3D d'analyse");
239 params->ajouter("Boite3D_analyse_Xmax","0.9",OT_PARAMETRES::DOUBLE,"Xmax boite3D d'analyse");
240 params->ajouter("Boite3D_analyse_Ymax","0.9",OT_PARAMETRES::DOUBLE,"Ymax boite3D d'analyse");
241 params->ajouter("Boite3D_analyse_Zmax","0.9",OT_PARAMETRES::DOUBLE,"Zmax boite3D d'analyse");
242 }
243 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_CAO)
244 {
245 params->ajouter("Identifiant","Cao",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
246 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_CAO,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
247 params->ajouter("Nom_groupe_forme","ALL",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion. Si [NULL] prend le ves au complet");
248 params->ajouter("Largeur_colonne_distribution_nb_volume","1.0",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
249 params->ajouter("Largeur_colonne_distribution_nb_forme","1.0",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
250 params->ajouter("Largeur_colonne_distribution_volume","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
251 params->ajouter("Largeur_colonne_distribution_fraction_volumique","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
252 params->ajouter("Largeur_colonne_distribution_volume_forme","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
253 }
254 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_PROPRIETE_MASSIQUE)
255 {
256 params->ajouter("Identifiant","Prop_mass",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
257 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_PROPRIETE_MASSIQUE,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
258 params->ajouter("Nom_groupe_forme","Particule",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion. Si [NULL] prend le ves au complet");
259 }
260 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_MG)
261 {
262 params->ajouter("Identifiant","Maillage_MG",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
263 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_MG,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
264 params->ajouter("Nom_groupe_forme","ALL",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion. Si [ALL] prend le ves au complet");
265 params->ajouter("Largeur_colonne_distribution_nb_element_2D","100",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
266 params->ajouter("Largeur_colonne_distribution_nb_element_3D","100",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
267 params->ajouter("Largeur_colonne_distribution_qualite_2D","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
268 params->ajouter("Largeur_colonne_distribution_qualite_3D","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
269 params->ajouter("Largeur_colonne_distribution_taille_2D","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
270 params->ajouter("Largeur_colonne_distribution_taille_3D","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
271 params->ajouter("Largeur_colonne_distribution_volume","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
272 params->ajouter("Largeur_colonne_distribution_fraction_volumique","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
273 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]");
274 params->ajouter("Boite3D_analyse_Xmin","0.1",OT_PARAMETRES::DOUBLE,"Xmin boite3D d'analyse");
275 params->ajouter("Boite3D_analyse_Ymin","0.1",OT_PARAMETRES::DOUBLE,"Ymin boite3D d'analyse");
276 params->ajouter("Boite3D_analyse_Zmin","0.1",OT_PARAMETRES::DOUBLE,"Zmin boite3D d'analyse");
277 params->ajouter("Boite3D_analyse_Xmax","0.9",OT_PARAMETRES::DOUBLE,"Xmax boite3D d'analyse");
278 params->ajouter("Boite3D_analyse_Ymax","0.9",OT_PARAMETRES::DOUBLE,"Ymax boite3D d'analyse");
279 params->ajouter("Boite3D_analyse_Zmax","0.9",OT_PARAMETRES::DOUBLE,"Zmax boite3D d'analyse");
280 }
281 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_FEM)
282 {
283 params->ajouter("Identifiant","Maillage_FEM",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
284 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_FEM,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
285 params->ajouter("Nom_groupe_forme","ALL",OT_PARAMETRES::STRING,"Nom du groupe d'inclusion. Si [ALL] prend le ves au complet");
286 params->ajouter("Largeur_colonne_distribution_nb_element_2D","100",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
287 params->ajouter("Largeur_colonne_distribution_nb_element_3D","100",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
288 params->ajouter("Largeur_colonne_distribution_jacobien_2D_min","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
289 params->ajouter("Largeur_colonne_distribution_jacobien_2D_max","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
290 params->ajouter("Largeur_colonne_distribution_jacobien_3D_min","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
291 params->ajouter("Largeur_colonne_distribution_jacobien_3D_max","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
292 params->ajouter("Largeur_colonne_distribution_distortion_2D","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
293 params->ajouter("Largeur_colonne_distribution_distortion_3D","0.001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
294 params->ajouter("Largeur_colonne_distribution_volume","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
295 params->ajouter("Largeur_colonne_distribution_fraction_volumique","0.0001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
296 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]");
297 params->ajouter("Boite3D_analyse_Xmin","0.1",OT_PARAMETRES::DOUBLE,"Xmin boite3D d'analyse");
298 params->ajouter("Boite3D_analyse_Ymin","0.1",OT_PARAMETRES::DOUBLE,"Ymin boite3D d'analyse");
299 params->ajouter("Boite3D_analyse_Zmin","0.1",OT_PARAMETRES::DOUBLE,"Zmin boite3D d'analyse");
300 params->ajouter("Boite3D_analyse_Xmax","0.9",OT_PARAMETRES::DOUBLE,"Xmax boite3D d'analyse");
301 params->ajouter("Boite3D_analyse_Ymax","0.9",OT_PARAMETRES::DOUBLE,"Ymax boite3D d'analyse");
302 params->ajouter("Boite3D_analyse_Zmax","0.9",OT_PARAMETRES::DOUBLE,"Zmax boite3D d'analyse");
303 }
304 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_TEMPS)
305 {
306 params->ajouter("Identifiant","Temps",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
307 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_TEMPS,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
308 }
309 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_MODULES_ELASTICITE)
310 {
311 params->ajouter("Identifiant","Modules_elasticite",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
312 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_MODULES_ELASTICITE,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
313 params->ajouter("Identifiant_epsilon","Champ_EPSILON",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ epsilon");
314 params->ajouter("Identifiant_sigma","Champ_SIGMA",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ sigma");
315 params->ajouter("Largeur_colonne_distribution_module_Kapp","1000000",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
316 params->ajouter("Largeur_colonne_distribution_module_Gapp","1000000",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
317 params->ajouter("Largeur_colonne_distribution_module_Eapp","1000000",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
318 params->ajouter("Largeur_colonne_distribution_module_Nuapp","0.00001",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
319 }
320 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE)
321 {
322 params->ajouter("Identifiant","Champ_EPSILON_normalise",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
323 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
324 params->ajouter("Identifiant_champ","Champ_EPSILON",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ epsilon");
325 params->ajouter("Identifiant_champ_reference","Champ_EPSILON",OT_PARAMETRES::STRING,"Identifiant du champ de reference pour la normalisation");
326 params->ajouter("Largeur_colonne_distribution","0.1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
327 }
328 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART)
329 {
330 params->ajouter("Identifiant","Champ_EPSILON_ecart",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
331 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
332 params->ajouter("Identifiant_champ","Champ_EPSILON",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ");
333 params->ajouter("Identifiant_champ_compare","Champ_EPSILON_compare",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ a comparer");
334 params->ajouter("Num_couche","0",OT_PARAMETRES::DOUBLE,"Numero de la couche a comparer");
335 params->ajouter("Type_ecart","0",OT_PARAMETRES::STRING,"Ecart relatif [0], ecart absolue [1], ecart quadratique [2]");
336 params->ajouter("Largeur_colonne_distribution","0.1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
337 }
338 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART_CHARGEMENT)
339 {
340 params->ajouter("Identifiant","Champ_EPSILON_ecart",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
341 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART_CHARGEMENT,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
342 params->ajouter("Identifiant_champ","Champ_EPSILON",OT_PARAMETRES::STRING,"Identifiant de l'analyse du champ");
343 params->ajouter("Type_chargement","0",OT_PARAMETRES::STRING,"Spherique [0], deviatorique [1]");
344 params->ajouter("Type_ecart","0",OT_PARAMETRES::STRING,"Ecart relatif [0], ecart absolue [1], ecart quadratique [2]");
345 params->ajouter("Largeur_colonne_distribution","0.1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
346 }
347 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION_ECART)
348 {
349 params->ajouter("Identifiant","Orientation_Particule_ecart",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
350 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION_ECART,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
351 params->ajouter("Identifiant_orientation","Orientation_Particule",OT_PARAMETRES::STRING,"Identifiant de l'analyse de l'orientation");
352 params->ajouter("Type_ecart","0",OT_PARAMETRES::STRING,"Ecart relatif [0], ecart absolue [1], ecart quadratique [2]");
353 params->ajouter("a_11","0.33333333333",OT_PARAMETRES::DOUBLE,"Valeur du tenseur d'orientation");
354 params->ajouter("a_22","0.33333333333",OT_PARAMETRES::DOUBLE,"Valeur du tenseur d'orientation");
355 params->ajouter("a_33","0.33333333333",OT_PARAMETRES::DOUBLE,"Valeur du tenseur d'orientation");
356 params->ajouter("a_12","0.0",OT_PARAMETRES::DOUBLE,"Valeur du tenseur d'orientation");
357 params->ajouter("a_23","0.0",OT_PARAMETRES::DOUBLE,"Valeur du tenseur d'orientation");
358 params->ajouter("a_13","0.0",OT_PARAMETRES::DOUBLE,"Valeur du tenseur d'orientation");
359 }
360 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_CONDUCTIVITE_THERMIQUE)
361 {
362 params->ajouter("Identifiant","Conductivite_thermique",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
363 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_CONDUCTIVITE_THERMIQUE,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
364 params->ajouter("Num_solution_temp","0",OT_PARAMETRES::STRING,"Numero de la FEM_SOLUTION solution (0,1,2,...)");
365 params->ajouter("Num_solution_flux","1",OT_PARAMETRES::STRING,"Numero de la FEM_SOLUTION solution (0,1,2,...)");
366 params->ajouter("Direction","0",OT_PARAMETRES::STRING,"Direction X[0], Y[1], Z[2]");
367 params->ajouter("Largeur_colonne_distribution","0.1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
368 }
369 if(erosion)
370 {
371 params->ajouter("Analyse_erosion","1",OT_PARAMETRES::DOUBLE,"Analyse d'erosion [1], sans erosion [0]");
372 params->ajouter("Nb_couche",nb_couche_erosion+1,OT_PARAMETRES::DOUBLE,"Nombre de couche d'erosion");
373 params->ajouter("Epaisseur_couche",epaisseur_couche_erosion,OT_PARAMETRES::DOUBLE,"Epaisseur d'une couche d'erosion");
374 }
375 if(!erosion)
376 {
377 params->ajouter("Analyse_erosion","0",OT_PARAMETRES::DOUBLE,"Analyse d'erosion [1], sans erosion [0]");
378 }
379 else if(type_post_traitement==MSTRUCT::TYPE_POST_TRAITEMENT::POST_ENERGIE_HILL)
380 {
381 params->ajouter("Identifiant","Energie_hill",OT_PARAMETRES::STRING,"Identifiant de l'analyse");
382 params->ajouter("Type_post_traitement",MSTRUCT::TYPE_POST_TRAITEMENT::POST_ENERGIE_HILL,OT_PARAMETRES::DOUBLE,"Type de post_traitement");
383 params->ajouter("Num_solution_epsilon","1",OT_PARAMETRES::STRING,"Numero de la FEM_SOLUTION solution (0,1,2,...)");
384 params->ajouter("Num_solution_sigma","2",OT_PARAMETRES::STRING,"Numero de la FEM_SOLUTION solution (0,1,2,...)");
385 params->ajouter("Largeur_colonne_distribution","0.1",OT_PARAMETRES::DOUBLE,"Largeur d'une colonne pour graph de distribution");
386 }
387 if(erosion)
388 {
389 params->ajouter("Analyse_erosion","1",OT_PARAMETRES::DOUBLE,"Analyse d'erosion [1], sans erosion [0]");
390 params->ajouter("Nb_couche",nb_couche_erosion+1,OT_PARAMETRES::DOUBLE,"Nombre de couche d'erosion");
391 params->ajouter("Epaisseur_couche",epaisseur_couche_erosion,OT_PARAMETRES::DOUBLE,"Epaisseur d'une couche d'erosion");
392 }
393 if(!erosion)
394 {
395 params->ajouter("Analyse_erosion","0",OT_PARAMETRES::DOUBLE,"Analyse d'erosion [1], sans erosion [0]");
396 }
397 }
398
399
400 int PARAMETRES::generer_fichier_parametres(bool etude_mecanique,
401 bool etude_thermique,
402 int type_generateur,
403 int type_inclusion,
404 bool fem_maill_lin,
405 bool fem_maill_quad,
406 int nb_couche_erosion,
407 double epaisseur_couche_erosion,
408 fonction_affiche *fonc_affiche)
409 {
410 bool erosion;
411 if(nb_couche_erosion>0) erosion=true;
412 else erosion=false;
413 int mkdir_err=0;
414 std::string sys_command = "mkdir parametre";
415 mkdir_err = system(sys_command.c_str());
416 if(mkdir_err !=0)
417 {
418 std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametres! ***" << std::endl;
419 return FAIL;
420 }
421 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/geometrie");
422 mkdir_err = system(sys_command.c_str());
423 if(mkdir_err !=0)
424 {
425 std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametres/geometrie ! ***" << std::endl;
426 return FAIL;
427 }
428 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/materiau");
429 mkdir_err = system(sys_command.c_str());
430 if(mkdir_err !=0)
431 {
432 std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametre/materiau ! ***" << std::endl;
433 return FAIL;
434 }
435 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/carte");
436 mkdir_err = system(sys_command.c_str());
437 if(mkdir_err !=0)
438 {
439 std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametres/carte ! ***" << std::endl;
440 return FAIL;
441 }
442 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/maillage");
443 mkdir_err = system(sys_command.c_str());
444 if(mkdir_err !=0)
445 {
446 std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametre/maillage ! ***" << std::endl;
447 return FAIL;
448 }
449 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/fem_maillage");
450 mkdir_err = system(sys_command.c_str());
451 if(mkdir_err !=0)
452 {
453 std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametre/fem_maillage ! ***" << std::endl;
454 return FAIL;
455 }
456 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/etude");
457 mkdir_err = system(sys_command.c_str());
458 if(mkdir_err !=0)
459 {
460 std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametre/etude ! ***" << std::endl;
461 return FAIL;
462 }
463 sys_command.clear(); sys_command.append("mkdir -p "); sys_command.append("parametre/post_traitement");
464 mkdir_err = system(sys_command.c_str());
465 if(mkdir_err !=0)
466 {
467 std::cerr << "*** PARAMETRES::generer_fichier_parametres -> Erreur lors de la creation des dossiers parametre/post_traitement ! ***" << std::endl;
468 return FAIL;
469 }
470 std::ofstream f;
471
472 if(type_generateur==MSTRUCT::TYPE_GENERATEUR::RSA)
473 {
474 OT_PARAMETRES params_geo_1;
475 ini_param_generateur_rsa(&params_geo_1,type_inclusion);
476 sys_command.clear(); sys_command.append("parametre/geometrie/param_geo_particule.txt");
477 params_geo_1.enregistrer((char*)sys_command.c_str());
478 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
479 }
480 else if(type_generateur==MSTRUCT::TYPE_GENERATEUR::DCR)
481 {
482 OT_PARAMETRES params_geo_1;
483 ini_param_generateur_dcr(&params_geo_1,type_inclusion);
484 sys_command.clear(); sys_command.append("parametre/geometrie/param_geo_particule.txt");
485 params_geo_1.enregistrer((char*)sys_command.c_str());
486 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
487 }
488 sys_command.clear(); sys_command.append("parametre/geometrie/lstparam_geo.txt");
489 f.open(sys_command.c_str(),std::ios::out);
490 f << "// Fichier de parametres GEOMETRIE" << std::endl;
491 f << "param_geo_particule.txt" << std::endl;
492 f.close();
493 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
494
495 OT_PARAMETRES params_mat_particule;
496 ini_param_materiau(&params_mat_particule,(char*)"Particule",etude_mecanique,etude_thermique);
497 if(etude_mecanique)
498 {
499 params_mat_particule.change_valeur("Mu_E",72.3e09);
500 params_mat_particule.change_valeur("Mu_nu",0.22);
501 }
502 if(etude_thermique)
503 {
504 params_mat_particule.change_valeur("Mu_Lambda",1.2);
505 params_mat_particule.change_valeur("Mu_Ro",2550);
506 params_mat_particule.change_valeur("Mu_Cp",800);
507 }
508 sys_command.clear(); sys_command.append("parametre/materiau/param_mat_particule.txt");
509 params_mat_particule.enregistrer((char*)sys_command.c_str());
510 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
511
512 OT_PARAMETRES params_mat_matrice;
513 ini_param_materiau(&params_mat_matrice,(char*)"Matrice",etude_mecanique,etude_thermique);
514 if(etude_mecanique)
515 {
516 params_mat_matrice.change_valeur("Mu_E",3.5e09);
517 params_mat_matrice.change_valeur("Mu_nu",0.33);
518 }
519 if(etude_thermique)
520 {
521 params_mat_particule.change_valeur("Mu_Lambda",0.2);
522 params_mat_particule.change_valeur("Mu_Ro",1200);
523 params_mat_particule.change_valeur("Mu_Cp",1300);
524 }
525 sys_command.clear(); sys_command.append("parametre/materiau/param_mat_matrice.txt");
526 params_mat_matrice.enregistrer((char*)sys_command.c_str());
527 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
528
529 sys_command.clear(); sys_command.append("parametre/materiau/lstparam_mat.txt");
530 f.open(sys_command.c_str(),std::ios::out);
531 f << "// Fichier de parametres MATERIAU" << std::endl;
532 f << "param_mat_particule.txt" << std::endl;
533 f << "param_mat_matrice.txt" << std::endl;
534 f.close();
535 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
536
537
538 OT_PARAMETRES params_carte;
539 ini_param_carte_taille(&params_carte);
540 sys_command.clear(); sys_command.append("parametre/carte/param_carte.txt");
541 params_carte.enregistrer((char*)sys_command.c_str());
542 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
543
544 OT_PARAMETRES params_maill;
545 ini_param_mailleur(&params_maill);
546 sys_command.clear(); sys_command.append("parametre/maillage/param_maill.txt");
547 params_maill.enregistrer((char*)sys_command.c_str());
548 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
549
550 if(fem_maill_lin)
551 {
552 OT_PARAMETRES params_fem_maillage_lin;
553 ini_param_mailleur_fem(&params_fem_maillage_lin);
554 params_fem_maillage_lin.change_valeur("Degre",1);
555 sys_command.clear(); sys_command.append("parametre/fem_maillage/param_fem_maill_lin.txt");
556 params_fem_maillage_lin.enregistrer((char*)sys_command.c_str());
557 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
558 }
559
560 if(fem_maill_quad)
561 {
562 OT_PARAMETRES params_fem_maillage_quad;
563 ini_param_mailleur_fem(&params_fem_maillage_quad);
564 params_fem_maillage_quad.change_valeur("Degre",2);
565 sys_command.clear(); sys_command.append("parametre/fem_maillage/param_fem_maill_quad.txt");
566 params_fem_maillage_quad.enregistrer((char*)sys_command.c_str());
567 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
568 }
569
570 if(etude_mecanique)
571 {
572 OT_PARAMETRES params_etude_CLDH_sph;
573 ini_param_etude(&params_etude_CLDH_sph,MSTRUCT::TYPE_ETUDE::MECANIQUE);
574 params_etude_CLDH_sph.change_valeur("Type_Chargement",MSTRUCT::TYPE_CHARGEMENT::SPHERIQUE);
575 params_etude_CLDH_sph.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::DEFORMATION_HOMOGENE);
576 params_etude_CLDH_sph.change_valeur("Valeur_CL",0.0001);
577 sys_command.clear(); sys_command.append("parametre/etude/param_etude_CLDH_sph.txt");
578 params_etude_CLDH_sph.enregistrer((char*)sys_command.c_str());
579 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
580
581 OT_PARAMETRES params_etude_CLCH_sph;
582 ini_param_etude(&params_etude_CLCH_sph,MSTRUCT::TYPE_ETUDE::MECANIQUE);
583 params_etude_CLCH_sph.change_valeur("Type_Chargement",MSTRUCT::TYPE_CHARGEMENT::SPHERIQUE);
584 params_etude_CLCH_sph.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::CONTRAINTE_HOMOGENE);
585 params_etude_CLCH_sph.change_valeur("Valeur_CL",1000000);
586 sys_command.clear(); sys_command.append("parametre/etude/param_etude_CLCH_sph.txt");
587 params_etude_CLCH_sph.enregistrer((char*)sys_command.c_str());
588 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
589
590 OT_PARAMETRES params_etude_CLDH_dev;
591 ini_param_etude(&params_etude_CLDH_dev,MSTRUCT::TYPE_ETUDE::MECANIQUE);
592 params_etude_CLDH_dev.change_valeur("Type_Chargement",MSTRUCT::TYPE_CHARGEMENT::DEVIATORIQUE);
593 params_etude_CLDH_dev.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::DEFORMATION_HOMOGENE);
594 params_etude_CLDH_dev.change_valeur("Valeur_CL",0.0001);
595 sys_command.clear(); sys_command.append("parametre/etude/param_etude_CLDH_dev.txt");
596 params_etude_CLDH_dev.enregistrer((char*)sys_command.c_str());
597 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
598
599 OT_PARAMETRES params_etude_CLCH_dev;
600 ini_param_etude(&params_etude_CLCH_dev,MSTRUCT::TYPE_ETUDE::MECANIQUE);
601 params_etude_CLCH_dev.change_valeur("Type_Chargement",MSTRUCT::TYPE_CHARGEMENT::DEVIATORIQUE);
602 params_etude_CLCH_dev.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::CONTRAINTE_HOMOGENE);
603 params_etude_CLCH_dev.change_valeur("Valeur_CL",1000000);
604 sys_command.clear(); sys_command.append("parametre/etude/param_etude_CLCH_dev.txt");
605 params_etude_CLCH_dev.enregistrer((char*)sys_command.c_str());
606 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
607 }
608 if(etude_thermique)
609 {
610 OT_PARAMETRES params_etude_CLG_x;
611 ini_param_etude(&params_etude_CLG_x,MSTRUCT::TYPE_ETUDE::THERMIQUE);
612 params_etude_CLG_x.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::GRADIENT_TEMPERATURE);
613 params_etude_CLG_x.change_valeur("Valeur_CL",1.0);
614 params_etude_CLG_x.change_valeur("Direction",0);
615 sys_command.clear(); sys_command.append("parametre/etude/params_etude_CLG_x.txt");
616 params_etude_CLG_x.enregistrer((char*)sys_command.c_str());
617 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
618
619 OT_PARAMETRES params_etude_CLG_y;
620 ini_param_etude(&params_etude_CLG_y,MSTRUCT::TYPE_ETUDE::THERMIQUE);
621 params_etude_CLG_y.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::GRADIENT_TEMPERATURE);
622 params_etude_CLG_y.change_valeur("Valeur_CL",1.0);
623 params_etude_CLG_y.change_valeur("Direction",1);
624 sys_command.clear(); sys_command.append("parametre/etude/params_etude_CLG_y.txt");
625 params_etude_CLG_y.enregistrer((char*)sys_command.c_str());
626 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
627
628 OT_PARAMETRES params_etude_CLG_z;
629 ini_param_etude(&params_etude_CLG_z,MSTRUCT::TYPE_ETUDE::THERMIQUE);
630 params_etude_CLG_z.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::GRADIENT_TEMPERATURE);
631 params_etude_CLG_z.change_valeur("Valeur_CL",1.0);
632 params_etude_CLG_z.change_valeur("Direction",2);
633 sys_command.clear(); sys_command.append("parametre/etude/params_etude_CLG_z.txt");
634 params_etude_CLG_z.enregistrer((char*)sys_command.c_str());
635 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
636
637 OT_PARAMETRES params_etude_CLF_x;
638 ini_param_etude(&params_etude_CLF_x,MSTRUCT::TYPE_ETUDE::THERMIQUE);
639 params_etude_CLF_x.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::FLUX_CHALEUR);
640 params_etude_CLF_x.change_valeur("Valeur_CL",1.0);
641 params_etude_CLF_x.change_valeur("Direction",0);
642 sys_command.clear(); sys_command.append("parametre/etude/params_etude_CLF_x.txt");
643 params_etude_CLF_x.enregistrer((char*)sys_command.c_str());
644 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
645
646 OT_PARAMETRES params_etude_CLF_y;
647 ini_param_etude(&params_etude_CLF_y,MSTRUCT::TYPE_ETUDE::THERMIQUE);
648 params_etude_CLF_y.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::FLUX_CHALEUR);
649 params_etude_CLF_y.change_valeur("Valeur_CL",1.0);
650 params_etude_CLF_y.change_valeur("Direction",1);
651 sys_command.clear(); sys_command.append("parametre/etude/params_etude_CLF_y.txt");
652 params_etude_CLF_y.enregistrer((char*)sys_command.c_str());
653 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
654
655 OT_PARAMETRES params_etude_CLF_z;
656 ini_param_etude(&params_etude_CLF_z,MSTRUCT::TYPE_ETUDE::THERMIQUE);
657 params_etude_CLF_z.change_valeur("Type_CL",MSTRUCT::TYPE_CONDITIONS_LIMITES::FLUX_CHALEUR);
658 params_etude_CLF_z.change_valeur("Valeur_CL",1.0);
659 params_etude_CLF_z.change_valeur("Direction",2);
660 sys_command.clear(); sys_command.append("parametre/etude/params_etude_CLF_z.txt");
661 params_etude_CLF_z.enregistrer((char*)sys_command.c_str());
662 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
663 }
664
665 MG_EXPORT exp;
666 OT_PARAMETRES *params_aster=exp.get_param_aster();
667 params_aster->change_valeur("Memoire",1024);
668 params_aster->change_valeur("Temps_max",250000);
669 params_aster->change_valeur("Nb_CPU",8);
670 params_aster->change_valeur("Noeud_ele",2);
671 params_aster->change_valeur("Base_num_mail",36);
672 params_aster->change_valeur("Pas",0);
673 sys_command.clear(); sys_command.append("parametre/etude/param_aster.txt");
674 params_aster->enregistrer((char*)sys_command.c_str());
675 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
676
677 OT_PARAMETRES params_post_temps;
678 ini_param_post_traitement(&params_post_temps,MSTRUCT::TYPE_POST_TRAITEMENT::POST_TEMPS,false);
679 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_temps.txt");
680 params_post_temps.enregistrer((char*)sys_command.c_str());
681 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
682
683 OT_PARAMETRES params_post_cao_all;
684 ini_param_post_traitement(&params_post_cao_all,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CAO);
685 params_post_cao_all.change_valeur("Identifiant","Cao_ALL");
686 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_cao_all.txt");
687 params_post_cao_all.enregistrer((char*)sys_command.c_str());
688 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
689 OT_PARAMETRES params_post_cao_particule;
690 ini_param_post_traitement(&params_post_cao_particule,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CAO);
691 params_post_cao_particule.change_valeur("Identifiant","Cao_Particule");
692 params_post_cao_particule.change_valeur("Nom_groupe_forme","Particule");
693 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_cao_particule.txt");
694 params_post_cao_particule.enregistrer((char*)sys_command.c_str());
695 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
696 OT_PARAMETRES params_post_cao_matrice;
697 ini_param_post_traitement(&params_post_cao_matrice,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CAO);
698 params_post_cao_matrice.change_valeur("Identifiant","Cao_Matrice");
699 params_post_cao_matrice.change_valeur("Nom_groupe_forme","Matrice");
700 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_cao_matrice.txt");
701 params_post_cao_matrice.enregistrer((char*)sys_command.c_str());
702 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
703 OT_PARAMETRES params_post_prop_mass_particule;
704 ini_param_post_traitement(&params_post_prop_mass_particule,MSTRUCT::TYPE_POST_TRAITEMENT::POST_PROPRIETE_MASSIQUE);
705 params_post_prop_mass_particule.change_valeur("Identifiant","Prop_mass_Particule");
706 params_post_prop_mass_particule.change_valeur("Nom_groupe_forme","Particule");
707 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_prop_mass_particule.txt");
708 params_post_prop_mass_particule.enregistrer((char*)sys_command.c_str());
709 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
710
711 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
712 {
713 OT_PARAMETRES params_post_orientation_cao;
714 ini_param_post_traitement(&params_post_orientation_cao,MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION);
715 params_post_orientation_cao.change_valeur("Identifiant","Orientation_Particule");
716 params_post_orientation_cao.change_valeur("Avec_fem_maillage","0");
717 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_orientation_cao.txt");
718 params_post_orientation_cao.enregistrer((char*)sys_command.c_str());
719 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
720
721 OT_PARAMETRES params_post_orientation_ecart;
722 ini_param_post_traitement(&params_post_orientation_ecart,MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION_ECART);
723 params_post_orientation_ecart.change_valeur("Identifiant","Orientation_Particule_ecart");
724 params_post_orientation_ecart.change_valeur("Identifiant_orientation","Orientation_Particule");
725 params_post_orientation_ecart.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_ABSOLUE);
726 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_orientation_ecart.txt");
727 params_post_orientation_ecart.enregistrer((char*)sys_command.c_str());
728 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
729 }
730
731 sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_geometrie.txt");
732 f.open(sys_command.c_str(),std::ios::out);
733 f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
734 f << "params_post_cao_all.txt" << std::endl;
735 f << "params_post_cao_particule.txt" << std::endl;
736 f << "params_post_cao_matrice.txt" << std::endl;
737 f << "params_post_prop_mass_particule.txt" << std::endl;
738 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
739 {
740 f << "params_post_orientation_cao.txt" << std::endl;
741 f << "params_post_orientation_ecart.txt" << std::endl;
742 }
743
744 f.close();
745 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
746
747 OT_PARAMETRES params_post_mg_maillage_all;
748 ini_param_post_traitement(&params_post_mg_maillage_all,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_MG);
749 params_post_mg_maillage_all.change_valeur("Identifiant","MG_maillage_ALL");
750 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_mg_maillage_all.txt");
751 params_post_mg_maillage_all.enregistrer((char*)sys_command.c_str());
752 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
753
754 OT_PARAMETRES params_post_mg_maillage_particule;
755 ini_param_post_traitement(&params_post_mg_maillage_particule,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_MG);
756 params_post_mg_maillage_particule.change_valeur("Identifiant","MG_maillage_Particule");
757 params_post_mg_maillage_particule.change_valeur("Nom_groupe_forme","Particule");
758 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_mg_maillage_particule.txt");
759 params_post_mg_maillage_particule.enregistrer((char*)sys_command.c_str());
760 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
761
762 OT_PARAMETRES params_post_mg_maillage_matrice;
763 ini_param_post_traitement(&params_post_mg_maillage_matrice,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_MG);
764 params_post_mg_maillage_matrice.change_valeur("Identifiant","MG_maillage_Matrice");
765 params_post_mg_maillage_matrice.change_valeur("Nom_groupe_forme","Matrice");
766 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_mg_maillage_matrice.txt");
767 params_post_mg_maillage_matrice.enregistrer((char*)sys_command.c_str());
768 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
769
770
771 sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_mg_maillage.txt");
772 f.open(sys_command.c_str(),std::ios::out);
773 f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
774 f << "params_post_mg_maillage_all.txt" << std::endl;
775 f << "params_post_mg_maillage_particule.txt" << std::endl;
776 f << "params_post_mg_maillage_matrice.txt" << std::endl;
777 f.close();
778 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
779
780 OT_PARAMETRES params_post_fem_maillage_all;
781 ini_param_post_traitement(&params_post_fem_maillage_all,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_FEM,nb_couche_erosion,epaisseur_couche_erosion);
782 params_post_fem_maillage_all.change_valeur("Identifiant","FEM_maillage_ALL");
783 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_fem_maillage_all.txt");
784 params_post_fem_maillage_all.enregistrer((char*)sys_command.c_str());
785 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
786
787 OT_PARAMETRES params_post_fem_maillage_particule;
788 ini_param_post_traitement(&params_post_fem_maillage_particule,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_FEM,nb_couche_erosion,epaisseur_couche_erosion);
789 params_post_fem_maillage_particule.change_valeur("Identifiant","FEM_maillage_Particule");
790 params_post_fem_maillage_particule.change_valeur("Nom_groupe_forme","Particule");
791 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_fem_maillage_particule.txt");
792 params_post_fem_maillage_particule.enregistrer((char*)sys_command.c_str());
793 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
794
795 OT_PARAMETRES params_post_fem_maillage_matrice;
796 ini_param_post_traitement(&params_post_fem_maillage_matrice,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MAILLAGE_FEM,nb_couche_erosion,epaisseur_couche_erosion);
797 params_post_fem_maillage_matrice.change_valeur("Identifiant","FEM_maillage_Matrice");
798 params_post_fem_maillage_matrice.change_valeur("Nom_groupe_forme","Matrice");
799 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_fem_maillage_matrice.txt");
800 params_post_fem_maillage_matrice.enregistrer((char*)sys_command.c_str());
801 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
802
803 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
804 {
805 OT_PARAMETRES params_post_orientation_ponderee;
806 ini_param_post_traitement(&params_post_orientation_ponderee,MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION,nb_couche_erosion,epaisseur_couche_erosion);
807 params_post_orientation_ponderee.change_valeur("Identifiant","Orientation_Particule_ponderee");
808 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_orientation_ponderee.txt");
809 params_post_orientation_ponderee.enregistrer((char*)sys_command.c_str());
810 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
811
812 OT_PARAMETRES params_post_orientation_ponderee_ecart;
813 ini_param_post_traitement(&params_post_orientation_ponderee_ecart,MSTRUCT::TYPE_POST_TRAITEMENT::POST_ORIENTATION_ECART,nb_couche_erosion,epaisseur_couche_erosion);
814 params_post_orientation_ponderee_ecart.change_valeur("Identifiant","Orientation_Particule_ponderee_ecart");
815 params_post_orientation_ponderee_ecart.change_valeur("Identifiant_orientation","Orientation_Particule_ponderee");
816 params_post_orientation_ponderee_ecart.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_ABSOLUE);
817 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_orientation_ponderee_ecart.txt");
818 params_post_orientation_ponderee_ecart.enregistrer((char*)sys_command.c_str());
819 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
820 }
821 sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_fem_maillage.txt");
822 f.open(sys_command.c_str(),std::ios::out);
823 f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
824 f << "params_post_fem_maillage_all.txt" << std::endl;
825 f << "params_post_fem_maillage_particule.txt" << std::endl;
826 f << "params_post_fem_maillage_matrice.txt" << std::endl;
827 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
828 {
829 f << "params_post_orientation_ponderee.txt" << std::endl;
830 f << "params_post_orientation_ponderee_ecart.txt" << std::endl;
831 }
832 f.close();
833 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
834
835 if(etude_mecanique)
836 {
837 OT_PARAMETRES params_post_champ_sigma;
838 ini_param_post_traitement(&params_post_champ_sigma,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
839 params_post_champ_sigma.change_valeur("Identifiant","Champ_SIGMA");
840 params_post_champ_sigma.change_valeur("Num_solution",2);
841 params_post_champ_sigma.change_valeur("Largeur_colonne_distribution","1000.0");
842 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_sigma.txt");
843 params_post_champ_sigma.enregistrer((char*)sys_command.c_str());
844 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
845 // Nom_groupe_forme
846 OT_PARAMETRES params_post_champ_sigma_normalise;
847 ini_param_post_traitement(&params_post_champ_sigma_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
848 params_post_champ_sigma_normalise.change_valeur("Identifiant","Champ_SIGMA_normalise");
849 params_post_champ_sigma_normalise.change_valeur("Identifiant_champ","Champ_SIGMA");
850 params_post_champ_sigma_normalise.change_valeur("Identifiant_champ_reference","Champ_SIGMA");
851 params_post_champ_sigma_normalise.change_valeur("Largeur_colonne_distribution","0.02");
852 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_sigma_normalise.txt");
853 params_post_champ_sigma_normalise.enregistrer((char*)sys_command.c_str());
854 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
855
856 OT_PARAMETRES params_post_champ_epsilon;
857 ini_param_post_traitement(&params_post_champ_epsilon,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
858 params_post_champ_epsilon.change_valeur("Identifiant","Champ_EPSILON");
859 params_post_champ_epsilon.change_valeur("Num_solution",1);
860 params_post_champ_epsilon.change_valeur("Largeur_colonne_distribution","1.0e-6");
861 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_epsilon.txt");
862 params_post_champ_epsilon.enregistrer((char*)sys_command.c_str());
863 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
864
865 OT_PARAMETRES params_post_champ_epsilon_normalise;
866 ini_param_post_traitement(&params_post_champ_epsilon_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
867 params_post_champ_epsilon_normalise.change_valeur("Identifiant","Champ_EPSILON_normalise");
868 params_post_champ_epsilon_normalise.change_valeur("Identifiant_champ","Champ_EPSILON");
869 params_post_champ_epsilon_normalise.change_valeur("Identifiant_champ_reference","Champ_EPSILON");
870 params_post_champ_epsilon_normalise.change_valeur("Largeur_colonne_distribution","0.02");
871 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_epsilon_normalise.txt");
872 params_post_champ_epsilon_normalise.enregistrer((char*)sys_command.c_str());
873 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
874
875 OT_PARAMETRES params_post_champ_sigma_particule;
876 ini_param_post_traitement(&params_post_champ_sigma_particule,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
877 params_post_champ_sigma_particule.change_valeur("Identifiant","Champ_SIGMA_particule");
878 params_post_champ_sigma_particule.change_valeur("Nom_groupe_forme","Particule");
879 params_post_champ_sigma_particule.change_valeur("Num_solution",2);
880 params_post_champ_sigma_particule.change_valeur("Largeur_colonne_distribution","1000.0");
881 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_sigma_particule.txt");
882 params_post_champ_sigma_particule.enregistrer((char*)sys_command.c_str());
883 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
884 OT_PARAMETRES params_post_champ_sigma_particule_normalise;
885 ini_param_post_traitement(&params_post_champ_sigma_particule_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
886 params_post_champ_sigma_particule_normalise.change_valeur("Identifiant","Champ_SIGMA_particule_normalise");
887 params_post_champ_sigma_particule_normalise.change_valeur("Identifiant_champ","Champ_SIGMA_particule");
888 params_post_champ_sigma_particule_normalise.change_valeur("Identifiant_champ_reference","Champ_SIGMA");
889 params_post_champ_sigma_particule_normalise.change_valeur("Largeur_colonne_distribution","0.02");
890 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_sigma_particule_normalise.txt");
891 params_post_champ_sigma_particule_normalise.enregistrer((char*)sys_command.c_str());
892 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
893
894 OT_PARAMETRES params_post_champ_epsilon_particule;
895 ini_param_post_traitement(&params_post_champ_epsilon_particule,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
896 params_post_champ_epsilon_particule.change_valeur("Identifiant","Champ_EPSILON_particule");
897 params_post_champ_epsilon_particule.change_valeur("Nom_groupe_forme","Particule");
898 params_post_champ_epsilon_particule.change_valeur("Num_solution",1);
899 params_post_champ_epsilon_particule.change_valeur("Largeur_colonne_distribution","1.0e-6");
900 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_epsilon_particule.txt");
901 params_post_champ_epsilon_particule.enregistrer((char*)sys_command.c_str());
902 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
903
904 OT_PARAMETRES params_post_champ_epsilon_particule_normalise;
905 ini_param_post_traitement(&params_post_champ_epsilon_particule_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
906 params_post_champ_epsilon_particule_normalise.change_valeur("Identifiant","Champ_EPSILON_particule_normalise");
907 params_post_champ_epsilon_particule_normalise.change_valeur("Identifiant_champ","Champ_EPSILON_particule");
908 params_post_champ_epsilon_particule_normalise.change_valeur("Identifiant_champ_reference","Champ_EPSILON");
909 params_post_champ_epsilon_particule_normalise.change_valeur("Largeur_colonne_distribution","0.02");
910 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_epsilon_particule_normalise.txt");
911 params_post_champ_epsilon_particule_normalise.enregistrer((char*)sys_command.c_str());
912 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
913
914 OT_PARAMETRES params_post_champ_sigma_matrice;
915 ini_param_post_traitement(&params_post_champ_sigma_matrice,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
916 params_post_champ_sigma_matrice.change_valeur("Identifiant","Champ_SIGMA_matrice");
917 params_post_champ_sigma_matrice.change_valeur("Nom_groupe_forme","Matrice");
918 params_post_champ_sigma_matrice.change_valeur("Num_solution",2);
919 params_post_champ_sigma_matrice.change_valeur("Largeur_colonne_distribution","1000.0");
920 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_sigma_matrice.txt");
921 params_post_champ_sigma_matrice.enregistrer((char*)sys_command.c_str());
922 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
923 OT_PARAMETRES params_post_champ_sigma_matrice_normalise;
924 ini_param_post_traitement(&params_post_champ_sigma_matrice_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
925 params_post_champ_sigma_matrice_normalise.change_valeur("Identifiant","Champ_SIGMA_matrice_normalise");
926 params_post_champ_sigma_matrice_normalise.change_valeur("Identifiant_champ","Champ_SIGMA_matrice");
927 params_post_champ_sigma_matrice_normalise.change_valeur("Identifiant_champ_reference","Champ_SIGMA");
928 params_post_champ_sigma_matrice_normalise.change_valeur("Largeur_colonne_distribution","0.02");
929 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_sigma_matrice_normalise.txt");
930 params_post_champ_sigma_matrice_normalise.enregistrer((char*)sys_command.c_str());
931 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
932
933 OT_PARAMETRES params_post_champ_epsilon_matrice;
934 ini_param_post_traitement(&params_post_champ_epsilon_matrice,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
935 params_post_champ_epsilon_matrice.change_valeur("Identifiant","Champ_EPSILON_matrice");
936 params_post_champ_epsilon_matrice.change_valeur("Nom_groupe_forme","Matrice");
937 params_post_champ_epsilon_matrice.change_valeur("Num_solution",1);
938 params_post_champ_epsilon_matrice.change_valeur("Largeur_colonne_distribution","1.0e-6");
939 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_epsilon_matrice.txt");
940 params_post_champ_epsilon_matrice.enregistrer((char*)sys_command.c_str());
941 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
942
943 OT_PARAMETRES params_post_champ_epsilon_matrice_normalise;
944 ini_param_post_traitement(&params_post_champ_epsilon_matrice_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
945 params_post_champ_epsilon_matrice_normalise.change_valeur("Identifiant","Champ_EPSILON_matrice_normalise");
946 params_post_champ_epsilon_matrice_normalise.change_valeur("Identifiant_champ","Champ_EPSILON_matrice");
947 params_post_champ_epsilon_matrice_normalise.change_valeur("Identifiant_champ_reference","Champ_EPSILON");
948 params_post_champ_epsilon_matrice_normalise.change_valeur("Largeur_colonne_distribution","0.02");
949 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_epsilon_matrice_normalise.txt");
950 params_post_champ_epsilon_matrice_normalise.enregistrer((char*)sys_command.c_str());
951 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
952
953 OT_PARAMETRES params_post_champ_energie_hill;
954 ini_param_post_traitement(&params_post_champ_energie_hill,MSTRUCT::TYPE_POST_TRAITEMENT::POST_ENERGIE_HILL,nb_couche_erosion,epaisseur_couche_erosion);
955 params_post_champ_energie_hill.change_valeur("Identifiant","Champ_ENERGIE_hill");
956 params_post_champ_energie_hill.change_valeur("Num_solution_epsilon",1);
957 params_post_champ_energie_hill.change_valeur("Num_solution_sigma",2);
958 params_post_champ_energie_hill.change_valeur("Largeur_colonne_distribution","1");
959 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_energie_hill.txt");
960 params_post_champ_energie_hill.enregistrer((char*)sys_command.c_str());
961 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
962
963
964
965
966 OT_PARAMETRES params_post_champ_energie;
967 ini_param_post_traitement(&params_post_champ_energie,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
968 params_post_champ_energie.change_valeur("Identifiant","Champ_ENERGIE");
969 params_post_champ_energie.change_valeur("Num_solution",5);
970 params_post_champ_energie.change_valeur("Largeur_colonne_distribution","1e-04");
971 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_energie.txt");
972 params_post_champ_energie.enregistrer((char*)sys_command.c_str());
973 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
974
975 OT_PARAMETRES params_post_champ_energie_normalise;
976 ini_param_post_traitement(&params_post_champ_energie_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
977 params_post_champ_energie_normalise.change_valeur("Identifiant","Champ_ENERGIE_normalise");
978 params_post_champ_energie_normalise.change_valeur("Identifiant_champ","Champ_ENERGIE");
979 params_post_champ_energie_normalise.change_valeur("Identifiant_champ_reference","Champ_ENERGIE");
980 params_post_champ_energie_normalise.change_valeur("Largeur_colonne_distribution","0.025");
981 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_energie_normalise.txt");
982 params_post_champ_energie_normalise.enregistrer((char*)sys_command.c_str());
983 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
984
985 OT_PARAMETRES params_post_champ_energie_ecart;
986 ini_param_post_traitement(&params_post_champ_energie_ecart,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_ECART,nb_couche_erosion,epaisseur_couche_erosion);
987 params_post_champ_energie_ecart.change_valeur("Identifiant","Champ_ENERGIE_ecart");
988 params_post_champ_energie_ecart.change_valeur("Identifiant_champ","Champ_ENERGIE");
989 params_post_champ_energie_ecart.change_valeur("Identifiant_champ_compare","Champ_ENERGIE");
990 params_post_champ_energie_ecart.change_valeur("Num_couche","0");
991 params_post_champ_energie_ecart.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_RELATIF);
992 params_post_champ_energie_ecart.change_valeur("Largeur_colonne_distribution","1e-04");
993 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_energie_ecart.txt");
994 params_post_champ_energie_ecart.enregistrer((char*)sys_command.c_str());
995 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
996
997 sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_champ_meca.txt");
998 f.open(sys_command.c_str(),std::ios::out);
999 f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
1000 f << "params_post_champ_sigma.txt" << std::endl;
1001 f << "params_post_champ_sigma_normalise.txt" << std::endl;
1002 f << "params_post_champ_sigma_particule.txt" << std::endl;
1003 f << "params_post_champ_sigma_particule_normalise.txt" << std::endl;
1004 f << "params_post_champ_sigma_matrice.txt" << std::endl;
1005 f << "params_post_champ_sigma_matrice_normalise.txt" << std::endl;
1006 f << "params_post_champ_epsilon.txt" << std::endl;
1007 f << "params_post_champ_epsilon_normalise.txt" << std::endl;
1008 f << "params_post_champ_epsilon_particule.txt" << std::endl;
1009 f << "params_post_champ_epsilon_particule_normalise.txt" << std::endl;
1010 f << "params_post_champ_epsilon_matrice.txt" << std::endl;
1011 f << "params_post_champ_epsilon_matrice_normalise.txt" << std::endl;
1012 f << "params_post_champ_energie_hill.txt" << std::endl;
1013 f << "params_post_champ_energie.txt" << std::endl;
1014 f << "params_post_champ_energie_normalise.txt" << std::endl;
1015 f << "params_post_champ_energie_ecart.txt" << std::endl;
1016 f << "params_post_temps.txt" << std::endl;
1017 f.close();
1018 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1019
1020 OT_PARAMETRES params_post_champ_sigma_ecart_chargement_sph;
1021 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);
1022 params_post_champ_sigma_ecart_chargement_sph.change_valeur("Identifiant","Champ_SIGMA_ecart_chargement_sph");
1023 params_post_champ_sigma_ecart_chargement_sph.change_valeur("Identifiant_champ","Champ_SIGMA");
1024 params_post_champ_sigma_ecart_chargement_sph.change_valeur("Type_chargement","0");
1025 params_post_champ_sigma_ecart_chargement_sph.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_RELATIF_ABSOLUE);
1026 params_post_champ_sigma_ecart_chargement_sph.change_valeur("Largeur_colonne_distribution","0.1");
1027 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_sigma_ecart_chargement_sph.txt");
1028 params_post_champ_sigma_ecart_chargement_sph.enregistrer((char*)sys_command.c_str());
1029 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1030
1031 OT_PARAMETRES params_post_champ_epsilon_ecart_chargement_sph;
1032 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);
1033 params_post_champ_epsilon_ecart_chargement_sph.change_valeur("Identifiant","Champ_EPSILON_ecart_chargement_sph");
1034 params_post_champ_epsilon_ecart_chargement_sph.change_valeur("Identifiant_champ","Champ_EPSILON");
1035 params_post_champ_epsilon_ecart_chargement_sph.change_valeur("Type_chargement","0");
1036 params_post_champ_epsilon_ecart_chargement_sph.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_RELATIF_ABSOLUE);
1037 params_post_champ_epsilon_ecart_chargement_sph.change_valeur("Largeur_colonne_distribution","0.1");
1038 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_epsilon_ecart_chargement_sph.txt");
1039 params_post_champ_epsilon_ecart_chargement_sph.enregistrer((char*)sys_command.c_str());
1040 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1041
1042 sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_sph.txt");
1043 f.open(sys_command.c_str(),std::ios::out);
1044 f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
1045 f << "params_post_champ_sigma_ecart_chargement_sph.txt" << std::endl;
1046 f << "params_post_champ_epsilon_ecart_chargement_sph.txt" << std::endl;
1047 f.close();
1048 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1049
1050 OT_PARAMETRES params_post_champ_sigma_ecart_chargement_dev;
1051 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);
1052 params_post_champ_sigma_ecart_chargement_dev.change_valeur("Identifiant","Champ_SIGMA_ecart_chargement_dev");
1053 params_post_champ_sigma_ecart_chargement_dev.change_valeur("Identifiant_champ","Champ_SIGMA");
1054 params_post_champ_sigma_ecart_chargement_dev.change_valeur("Type_chargement","1");
1055 params_post_champ_sigma_ecart_chargement_dev.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_RELATIF_ABSOLUE);
1056 params_post_champ_sigma_ecart_chargement_dev.change_valeur("Largeur_colonne_distribution","0.1");
1057 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_sigma_ecart_chargement_dev.txt");
1058 params_post_champ_sigma_ecart_chargement_dev.enregistrer((char*)sys_command.c_str());
1059 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1060
1061 OT_PARAMETRES params_post_champ_epsilon_ecart_chargement_dev;
1062 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);
1063 params_post_champ_epsilon_ecart_chargement_dev.change_valeur("Identifiant","Champ_EPSILON_ecart_chargement_dev");
1064 params_post_champ_epsilon_ecart_chargement_dev.change_valeur("Identifiant_champ","Champ_EPSILON");
1065 params_post_champ_epsilon_ecart_chargement_dev.change_valeur("Type_chargement","1");
1066 params_post_champ_epsilon_ecart_chargement_dev.change_valeur("Type_ecart",MSTRUCT::TYPE_COMPARAISON::ECART_RELATIF_ABSOLUE);
1067 params_post_champ_epsilon_ecart_chargement_dev.change_valeur("Largeur_colonne_distribution","0.1");
1068 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_epsilon_ecart_chargement_dev.txt");
1069 params_post_champ_epsilon_ecart_chargement_dev.enregistrer((char*)sys_command.c_str());
1070 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1071
1072 sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_champ_meca_ecart_chargement_dev.txt");
1073 f.open(sys_command.c_str(),std::ios::out);
1074 f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
1075 f << "params_post_champ_sigma_ecart_chargement_dev.txt" << std::endl;
1076 f << "params_post_champ_epsilon_ecart_chargement_dev.txt" << std::endl;
1077 f.close();
1078 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1079
1080 OT_PARAMETRES params_post_modules_elasticite;
1081 ini_param_post_traitement(&params_post_modules_elasticite,MSTRUCT::TYPE_POST_TRAITEMENT::POST_MODULES_ELASTICITE,nb_couche_erosion,epaisseur_couche_erosion);
1082 params_post_modules_elasticite.change_valeur("Identifiant_epsilon","Champ_EPSILON");
1083 params_post_modules_elasticite.change_valeur("Identifiant_sigma","Champ_SIGMA");
1084 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_modules_elasticite.txt");
1085 params_post_modules_elasticite.enregistrer((char*)sys_command.c_str());
1086 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1087 }
1088 if(etude_thermique)
1089 {
1090 OT_PARAMETRES params_post_champ_temp;
1091 ini_param_post_traitement(&params_post_champ_temp,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
1092 params_post_champ_temp.change_valeur("Identifiant","Champ_TEMP");
1093 params_post_champ_temp.change_valeur("Num_solution",0);
1094 params_post_champ_temp.change_valeur("Largeur_colonne_distribution","0.01");
1095 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_temp.txt");
1096 params_post_champ_temp.enregistrer((char*)sys_command.c_str());
1097 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1098
1099 OT_PARAMETRES params_post_champ_temp_normalise;
1100 ini_param_post_traitement(&params_post_champ_temp_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
1101 params_post_champ_temp_normalise.change_valeur("Identifiant","Champ_TEMP_normalise");
1102 params_post_champ_temp_normalise.change_valeur("Identifiant_champ","Champ_TEMP");
1103 params_post_champ_temp_normalise.change_valeur("Identifiant_champ_reference","Champ_TEMP");
1104 params_post_champ_temp_normalise.change_valeur("Num_solution",0);
1105 params_post_champ_temp_normalise.change_valeur("Largeur_colonne_distribution","1e-06");
1106 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_temp_normalise.txt");
1107 params_post_champ_temp_normalise.enregistrer((char*)sys_command.c_str());
1108 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1109
1110 OT_PARAMETRES params_post_champ_flux;
1111 ini_param_post_traitement(&params_post_champ_flux,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP,nb_couche_erosion,epaisseur_couche_erosion);
1112 params_post_champ_flux.change_valeur("Identifiant","Champ_FLUX");
1113 params_post_champ_flux.change_valeur("Num_solution",1);
1114 params_post_champ_flux.change_valeur("Largeur_colonne_distribution","0.01");
1115 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_flux.txt");
1116 params_post_champ_flux.enregistrer((char*)sys_command.c_str());
1117 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1118
1119 OT_PARAMETRES params_post_champ_flux_normalise;
1120 ini_param_post_traitement(&params_post_champ_flux_normalise,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CHAMP_NORMALISE,nb_couche_erosion,epaisseur_couche_erosion);
1121 params_post_champ_flux_normalise.change_valeur("Identifiant","Champ_FLUX_normalise");
1122 params_post_champ_flux_normalise.change_valeur("Identifiant_champ","Champ_FLUX");
1123 params_post_champ_flux_normalise.change_valeur("Identifiant_champ_reference","Champ_FLUX");
1124 params_post_champ_flux_normalise.change_valeur("Num_solution",0);
1125 params_post_champ_flux_normalise.change_valeur("Largeur_colonne_distribution","1e-06");
1126 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_champ_flux_normalise.txt");
1127 params_post_champ_flux_normalise.enregistrer((char*)sys_command.c_str());
1128 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1129
1130 OT_PARAMETRES params_post_conductivite_thermique_x;
1131 ini_param_post_traitement(&params_post_conductivite_thermique_x,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CONDUCTIVITE_THERMIQUE,nb_couche_erosion,epaisseur_couche_erosion);
1132 params_post_conductivite_thermique_x.change_valeur("Identifiant","Conductivite_thermique");
1133 params_post_conductivite_thermique_x.change_valeur("Num_solution_temp","0");
1134 params_post_conductivite_thermique_x.change_valeur("Num_solution_flux","1");
1135 params_post_conductivite_thermique_x.change_valeur("Direction","0");
1136 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_conductivite_thermique_x.txt");
1137 params_post_conductivite_thermique_x.enregistrer((char*)sys_command.c_str());
1138 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1139
1140 OT_PARAMETRES params_post_conductivite_thermique_y;
1141 ini_param_post_traitement(&params_post_conductivite_thermique_y,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CONDUCTIVITE_THERMIQUE,nb_couche_erosion,epaisseur_couche_erosion);
1142 params_post_conductivite_thermique_y.change_valeur("Identifiant","Conductivite_thermique");
1143 params_post_conductivite_thermique_y.change_valeur("Num_solution_temp","0");
1144 params_post_conductivite_thermique_y.change_valeur("Num_solution_flux","1");
1145 params_post_conductivite_thermique_y.change_valeur("Direction","1");
1146 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_conductivite_thermique_y.txt");
1147 params_post_conductivite_thermique_y.enregistrer((char*)sys_command.c_str());
1148 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1149
1150 OT_PARAMETRES params_post_conductivite_thermique_z;
1151 ini_param_post_traitement(&params_post_conductivite_thermique_z,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CONDUCTIVITE_THERMIQUE,nb_couche_erosion,epaisseur_couche_erosion);
1152 params_post_conductivite_thermique_z.change_valeur("Identifiant","Conductivite_thermique");
1153 params_post_conductivite_thermique_z.change_valeur("Num_solution_temp","0");
1154 params_post_conductivite_thermique_z.change_valeur("Num_solution_flux","1");
1155 params_post_conductivite_thermique_z.change_valeur("Direction","2");
1156 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_conductivite_thermique_z.txt");
1157 params_post_conductivite_thermique_z.enregistrer((char*)sys_command.c_str());
1158 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1159
1160 OT_PARAMETRES params_post_conductivite_thermique;
1161 ini_param_post_traitement(&params_post_conductivite_thermique,MSTRUCT::TYPE_POST_TRAITEMENT::POST_CONDUCTIVITE_THERMIQUE,nb_couche_erosion,epaisseur_couche_erosion);
1162 params_post_conductivite_thermique.change_valeur("Identifiant","Conductivite_thermique");
1163 sys_command.clear(); sys_command.append("parametre/post_traitement/params_post_conductivite_thermique.txt");
1164 params_post_conductivite_thermique.enregistrer((char*)sys_command.c_str());
1165 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1166
1167 sys_command.clear(); sys_command.append("parametre/post_traitement/lstparam_post_champ_ther.txt");
1168 f.open(sys_command.c_str(),std::ios::out);
1169 f << "// Fichier de parametres POST_TRAITEMENT" << std::endl;
1170 f << "params_post_champ_temp.txt" << std::endl;
1171 f << "params_post_champ_temp_normalise.txt" << std::endl;
1172 f << "params_post_champ_flux.txt" << std::endl;
1173 f << "params_post_champ_flux_normalise.txt" << std::endl;
1174 f << "params_post_temps.txt" << std::endl;
1175 f.close();
1176 if(fonc_affiche!=NULL) fonc_affiche((char*)sys_command.c_str());
1177 }
1178
1179
1180 return OK;
1181 }
1182
1183 int PARAMETRES::generer_script_ves(bool etude_mecanique,
1184 bool etude_thermique,
1185 int type_inclusion,
1186 bool fem_maill_lin,
1187 bool fem_maill_quad,
1188 fonction_affiche *fonc_affiche)
1189 {
1190 std::ofstream ofstrm((char*)"generer_nb_ves",std::ios::out|std::ios::trunc);
1191 ofstrm.precision(16);
1192 ofstrm.setf(std::ios::showpoint);
1193 ofstrm << "#!/bin/bash" << std::endl;
1194 ofstrm << "INDEX_DEPART=$1" << std::endl;
1195 ofstrm << "INDEX_FIN=$2" << std::endl;
1196 ofstrm << "CHEMINCOMPILE=$3" << std::endl;
1197 ofstrm << "if [ -z ${INDEX_DEPART// } ]" << std::endl;
1198 ofstrm << "then" << std::endl;
1199 ofstrm << " echo \"Erreur : Numero du ves de depart manquant\"" << std::endl;
1200 ofstrm << " exit" << std::endl;
1201 ofstrm << "fi" << std::endl;
1202 ofstrm << "if [ -z ${INDEX_FIN// } ]" << std::endl;
1203 ofstrm << "then" << std::endl;
1204 ofstrm << " echo \"Erreur : Numero du ves de fin manquant\"" << std::endl;
1205 ofstrm << " exit" << std::endl;
1206 ofstrm << "fi" << std::endl;
1207 ofstrm << "if [ -z ${CHEMINCOMPILE// } ]" << std::endl;
1208 ofstrm << "then" << std::endl;
1209 ofstrm << " if [ -z $PATHMAGICEXEAPP ]" << std::endl;
1210 ofstrm << " then" << std::endl;
1211 ofstrm << " echo \"Erreur : Chemin vers exe/app manquant\"" << std::endl;
1212 ofstrm << " exit" << std::endl;
1213 ofstrm << " else" << std::endl;
1214 ofstrm << " CHEMINCOMPILE=$PATHMAGICEXEAPP" << std::endl;
1215 ofstrm << " fi" << std::endl;
1216 ofstrm << "fi" << std::endl;
1217 ofstrm << "function executer" << std::endl;
1218 ofstrm << "{" << std::endl;
1219 ofstrm << "OPERATION_REUSSIE=1;" << std::endl;
1220 ofstrm << "$*" << std::endl;
1221 ofstrm << "VAR=$?" << std::endl;
1222 ofstrm << "if (( $VAR )) ; then " << std::endl;
1223 ofstrm << " OPERATION_REUSSIE=0; " << std::endl;
1224 ofstrm << " STAT=$VAR;" << std::endl;
1225 ofstrm << "fi" << std::endl;
1226 ofstrm << "}" << std::endl;
1227 ofstrm << "" << std::endl;
1228 ofstrm << "echo \"*********************************************************\"" << std::endl;
1229 ofstrm << "echo \"Generation des microstructures $INDEX_DEPART - $INDEX_FIN\"" << std::endl;
1230 ofstrm << "echo \"*********************************************************\"" << std::endl;
1231 ofstrm << "STAT=$?" << std::endl;
1232 ofstrm << "" << std::endl;
1233 ofstrm << "if [ $INDEX_DEPART -eq 1 ]" << std::endl;
1234 ofstrm << "then" << std::endl;
1235 ofstrm << "mkdir etude" << std::endl;
1236 ofstrm << "fi" << std::endl;
1237 ofstrm << "cd etude" << std::endl;
1238 ofstrm << "for (( k=$INDEX_DEPART; k<=$INDEX_FIN; k++ ))" << std::endl;
1239 ofstrm << "do" << std::endl;
1240 ofstrm << " echo \"Microstructure #$k\"" << std::endl;
1241 ofstrm << " mkdir e$k" << std::endl;
1242 ofstrm << " cd e$k" << std::endl;
1243 ofstrm << " OPERATION_REUSSIE=0" << std::endl;
1244 ofstrm << " until [ $OPERATION_REUSSIE -eq 1 ]; do" << std::endl;
1245 ofstrm << " executer ../../ves $CHEMINCOMPILE" << std::endl;
1246 ofstrm << " done" << std::endl;
1247 ofstrm << " DOSSIER_ACTUEL=$(pwd)" << std::endl;
1248 ofstrm << " cd .." << std::endl;
1249 ofstrm << "done" << std::endl;
1250 ofstrm << "cd .." << std::endl;
1251 ofstrm << "echo \"**********************\"" << std::endl;
1252 ofstrm << "echo \" FIN \"" << std::endl;
1253 ofstrm << "echo \"**********************\"" << std::endl;
1254 ofstrm << "exit $STAT" << std::endl;
1255 ofstrm.close();
1256 if(fonc_affiche!=NULL) fonc_affiche((char*)"generer_nb_ves");
1257 system((char*)"chmod 744 generer_nb_ves");
1258
1259
1260 ofstrm.open((char*)"generer_ves_para",std::ios::out|std::ios::trunc);
1261 ofstrm.precision(16);
1262 ofstrm.setf(std::ios::showpoint);
1263 ofstrm << "#!/bin/bash" << std::endl;
1264 ofstrm << "CHEMINCOMPILE=$1" << std::endl;
1265 ofstrm << "if [ -z ${CHEMINCOMPILE// } ]" << std::endl;
1266 ofstrm << "then" << std::endl;
1267 ofstrm << " if [ -z $PATHMAGICEXEAPP ]" << std::endl;
1268 ofstrm << " then" << std::endl;
1269 ofstrm << " echo \"Erreur : Chemin vers exe/app manquant\"" << std::endl;
1270 ofstrm << " exit" << std::endl;
1271 ofstrm << " else" << std::endl;
1272 ofstrm << " CHEMINCOMPILE=$PATHMAGICEXEAPP" << std::endl;
1273 ofstrm << " fi" << std::endl;
1274 ofstrm << "fi" << std::endl;
1275 ofstrm << "" << std::endl;
1276 ofstrm << "function executer" << std::endl;
1277 ofstrm << "{" << std::endl;
1278 ofstrm << "OPERATION_REUSSIE=1;" << std::endl;
1279 ofstrm << "$*" << std::endl;
1280 ofstrm << "VAR=$?" << std::endl;
1281 ofstrm << "if (( $VAR )) ; then " << std::endl;
1282 ofstrm << " OPERATION_REUSSIE=0; " << std::endl;
1283 ofstrm << " STAT=$VAR;" << std::endl;
1284 ofstrm << "fi" << std::endl;
1285 ofstrm << "}" << std::endl;
1286 ofstrm << "" << std::endl;
1287 ofstrm << "OPERATION_REUSSIE=0" << std::endl;
1288 ofstrm << "until [ $OPERATION_REUSSIE -eq 1 ]; do" << std::endl;
1289 ofstrm << "executer ../../ves $CHEMINCOMPILE" << std::endl;
1290 ofstrm << "done" << std::endl;
1291 ofstrm << "exit $STAT" << std::endl;
1292 ofstrm.close();
1293 if(fonc_affiche!=NULL) fonc_affiche((char*)"generer_ves_para");
1294 system((char*)"chmod 744 generer_ves_para");
1295
1296
1297 ofstrm.open((char*)"ves",std::ios::out|std::ios::trunc);
1298 ofstrm.precision(16);
1299 ofstrm.setf(std::ios::showpoint);
1300 ofstrm << "#!/bin/bash" << std::endl;
1301 ofstrm << "CHEMINCOMPILE=$1" << std::endl;
1302 ofstrm << "function executer" << std::endl;
1303 ofstrm << "{" << std::endl;
1304 ofstrm << "op=$*" << std::endl;
1305 ofstrm << "$*" << std::endl;
1306 ofstrm << "VAR=$?" << std::endl;
1307 ofstrm << "if (( $VAR )) ; then " << std::endl;
1308 ofstrm << " STATUSTXT=\"ERREUR dans les tests\"; " << std::endl;
1309 ofstrm << " STAT=$VAR;" << std::endl;
1310 ofstrm << " echo $op $(date) >> ../../log_erreur.txt" << std::endl;
1311 ofstrm << " exit $STAT" << std::endl;
1312 ofstrm << "fi" << std::endl;
1313 ofstrm << "}" << std::endl;
1314 ofstrm << "STATUSTXT=\"Test sans ERREUR\"" << std::endl;
1315 ofstrm << "echo \"*******************************\"" << std::endl;
1316 ofstrm << "echo \"Generation d'une microstructure\"" << std::endl;
1317 ofstrm << "echo \"*******************************\"" << std::endl;
1318 ofstrm << "STAT=$?" << std::endl;
1319 ofstrm << "" << std::endl;
1320 ofstrm << "#Geometrie" << std::endl;
1321 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_geo -ves_out ves_geo.ves -lstparam ../../parametre/geometrie/lstparam_geo.txt" << std::endl;
1322 ofstrm << "executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -brep_out -in ves_geo.magic -out ves_brep.brep" << std::endl;
1323 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;
1324 ofstrm << "" << std::endl;
1325 ofstrm << "#Materiau" << std::endl;
1326 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;
1327 ofstrm << "" << std::endl;
1328 ofstrm << "#Carte" << std::endl;
1329 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;
1330 ofstrm << "" << std::endl;
1331 ofstrm << "#MG Maillage" << std::endl;
1332 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;
1333 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;
1334 ofstrm << "executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -gmsh -in ves_mg_maill.magic" << std::endl;
1335 ofstrm << "" << std::endl;
1336 ofstrm << "#Fem Maillage" << std::endl;
1337 if(fem_maill_lin)
1338 {
1339 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;
1340 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;
1341 }
1342 if(fem_maill_quad)
1343 {
1344 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;
1345 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;
1346 }
1347 ofstrm << "" << std::endl;
1348 ofstrm << "#Etude" << std::endl;
1349 if(fem_maill_lin)
1350 {
1351 if(etude_mecanique)
1352 {
1353 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;
1354 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;
1355 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;
1356 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;
1357 }
1358 if(etude_thermique)
1359 {
1360 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;
1361 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;
1362 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;
1363 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;
1364 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;
1365 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;
1366 }
1367 }
1368 if(fem_maill_quad)
1369 {
1370 if(etude_mecanique)
1371 {
1372 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;
1373 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;
1374 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;
1375 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;
1376 }
1377 if(etude_thermique)
1378 {
1379 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;
1380 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;
1381 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;
1382 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;
1383 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;
1384 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;
1385
1386 }
1387 }
1388 ofstrm << "" << std::endl;
1389 ofstrm << "#Calcul" << std::endl;
1390 if(fem_maill_lin)
1391 {
1392 if(etude_mecanique)
1393 {
1394 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;
1395 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;
1396 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;
1397 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;
1398 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;
1399 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;
1400 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;
1401 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;
1402 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;
1403 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;
1404 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;
1405 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;
1406 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;
1407 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;
1408 }
1409 if(etude_thermique)
1410 {
1411 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;
1412 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;
1413 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLG_x_post_lin.ves -ves_out ves_calcul_CLG_x_post_lin.ves -param ../../parametre/post_traitement/params_post_conductivite_thermique_x.txt" << std::endl;
1414 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;
1415 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;
1416 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLG_y_post_lin.ves -ves_out ves_calcul_CLG_y_post_lin.ves -param ../../parametre/post_traitement/params_post_conductivite_thermique_y.txt" << std::endl;
1417 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;
1418 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;
1419 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLG_z_post_lin.ves -ves_out ves_calcul_CLG_z_post_lin.ves -param ../../parametre/post_traitement/params_post_conductivite_thermique_z.txt" << std::endl;
1420 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;
1421 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;
1422 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLF_x_post_lin.ves -ves_out ves_calcul_CLF_x_post_lin.ves -param ../../parametre/post_traitement/params_post_conductivite_thermique_x.txt" << std::endl;
1423 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;
1424 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;
1425 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLF_y_post_lin.ves -ves_out ves_calcul_CLF_y_post_lin.ves -param ../../parametre/post_traitement/params_post_conductivite_thermique_y.txt" << std::endl;
1426 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;
1427 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;
1428 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLF_z_post_lin.ves -ves_out ves_calcul_CLF_z_post_lin.ves -param ../../parametre/post_traitement/params_post_conductivite_thermique_z.txt" << std::endl;
1429 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_lambda_x ves_calcul_CLG_x_post_lin.ves "
1430 "-ves_lambda_y ves_calcul_CLG_y_post_lin.ves "
1431 "-ves_lambda_z ves_calcul_CLG_z_post_lin.ves "
1432 "-ves_out ves_CLG_conductivite_thermique_post_lin.ves "
1433 "-param ../../parametre/post_traitement/params_post_conductivite_thermique.txt" << std::endl;
1434 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_lambda_x ves_calcul_CLF_x_post_lin.ves "
1435 "-ves_lambda_y ves_calcul_CLF_y_post_lin.ves "
1436 "-ves_lambda_z ves_calcul_CLF_z_post_lin.ves "
1437 "-ves_out ves_CLF_conductivite_thermique_post_lin.ves "
1438 "-param ../../parametre/post_traitement/params_post_conductivite_thermique.txt" << std::endl;
1439 }
1440 }
1441
1442 if(fem_maill_quad)
1443 {
1444 if(etude_mecanique)
1445 {
1446 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;
1447 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;
1448 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;
1449 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;
1450 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;
1451 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;
1452 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;
1453 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;
1454 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;
1455 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;
1456 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;
1457 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;
1458 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;
1459 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;
1460 }
1461 if(etude_thermique)
1462 {
1463 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;
1464 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;
1465 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLG_x_post_quad.ves -ves_out ves_calcul_CLG_x_post_quad.ves -param ../../parametre/post_traitement/params_post_conductivite_thermique_x.txt" << std::endl;
1466 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;
1467 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;
1468 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLG_y_post_quad.ves -ves_out ves_calcul_CLG_y_post_quad.ves -param ../../parametre/post_traitement/params_post_conductivite_thermique_y.txt" << std::endl;
1469 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;
1470 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;
1471 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLG_z_post_quad.ves -ves_out ves_calcul_CLG_z_post_quad.ves -param ../../parametre/post_traitement/params_post_conductivite_thermique_z.txt" << std::endl;
1472 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;
1473 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;
1474 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLF_x_post_quad.ves -ves_out ves_calcul_CLF_x_post_quad.ves -param ../../parametre/post_traitement/params_post_conductivite_thermique_x.txt" << std::endl;
1475 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;
1476 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;
1477 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLF_y_post_quad.ves -ves_out ves_calcul_CLF_y_post_quad.ves -param ../../parametre/post_traitement/params_post_conductivite_thermique_y.txt" << std::endl;
1478 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;
1479 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;
1480 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_in ves_calcul_CLF_z_post_quad.ves -ves_out ves_calcul_CLF_z_post_quad.ves -param ../../parametre/post_traitement/params_post_conductivite_thermique_z.txt" << std::endl;
1481 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_lambda_x ves_calcul_CLG_x_post_quad.ves "
1482 "-ves_lambda_y ves_calcul_CLG_y_post_quad.ves "
1483 "-ves_lambda_z ves_calcul_CLG_z_post_quad.ves "
1484 "-ves_out ves_CLG_conductivite_thermique_post_quad.ves "
1485 "-param ../../parametre/post_traitement/params_post_conductivite_thermique.txt" << std::endl;
1486 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -gen_post_traitement -ves_lambda_x ves_calcul_CLF_x_post_quad.ves "
1487 "-ves_lambda_y ves_calcul_CLF_y_post_quad.ves "
1488 "-ves_lambda_z ves_calcul_CLF_z_post_quad.ves "
1489 "-ves_out ves_CLF_conductivite_thermique_post_quad.ves "
1490 "-param ../../parametre/post_traitement/params_post_conductivite_thermique.txt" << std::endl;
1491 }
1492 }
1493 ofstrm << "" << std::endl;
1494 ofstrm << "rm *.msh" << std::endl;
1495 ofstrm << "rm *.sol" << std::endl;
1496 ofstrm << "rm *.resu" << std::endl;
1497 ofstrm << "rm *.comm" << std::endl;
1498 ofstrm << "rm *.mail" << std::endl;
1499 ofstrm << "rm *.retour" << std::endl;
1500 ofstrm << "rm *.export" << std::endl;
1501 ofstrm << "rm *.log" << std::endl;
1502 ofstrm << "rm *.mess" << std::endl;
1503 ofstrm << "rm *.magic" << std::endl;
1504 ofstrm << "#find . ! -name '*.ves' -type f -exec rm -f {} +" << std::endl;
1505 ofstrm << "cd .." << std::endl;
1506 ofstrm << "echo \"**********************\"" << std::endl;
1507 ofstrm << "echo $STATUSTXT" << std::endl;
1508 ofstrm << "echo \"**********************\"" << std::endl;
1509 ofstrm << "exit $STAT" << std::endl;
1510 ofstrm.close();
1511 if(fonc_affiche!=NULL) fonc_affiche((char*)"ves");
1512 system((char*)"chmod 744 ves");
1513
1514 return OK;
1515 }
1516
1517 int PARAMETRES::generer_script_post_traitement(bool etude_mecanique,
1518 bool etude_thermique,
1519 int type_inclusion,
1520 bool fem_maill_lin,
1521 bool fem_maill_quad,
1522 double epaisseur_couche_erosion,
1523 fonction_affiche *fonc_affiche)
1524 {
1525 std::ofstream ofstrm((char*)"post_traitement",std::ios::out|std::ios::trunc);
1526 ofstrm.precision(16);
1527 ofstrm.setf(std::ios::showpoint);
1528 ofstrm << "#!/bin/bash" << std::endl;
1529 ofstrm << "CHEMINCOMPILE=$1" << std::endl;
1530 ofstrm << "if [ -z ${CHEMINCOMPILE// } ]" << std::endl;
1531 ofstrm << "then" << std::endl;
1532 ofstrm << " if [ -z $PATHMAGICEXEAPP ]" << std::endl;
1533 ofstrm << " then" << std::endl;
1534 ofstrm << " echo \"Erreur : Chemin vers exe/app manquant\"" << std::endl;
1535 ofstrm << " exit" << std::endl;
1536 ofstrm << " else" << std::endl;
1537 ofstrm << " CHEMINCOMPILE=$PATHMAGICEXEAPP" << std::endl;
1538 ofstrm << " fi" << std::endl;
1539 ofstrm << "fi" << std::endl;
1540 ofstrm << "function executer" << std::endl;
1541 ofstrm << "{" << std::endl;
1542 ofstrm << "$*" << std::endl;
1543 ofstrm << "VAR=$?" << std::endl;
1544 ofstrm << "if (( $VAR )) ; then " << std::endl;
1545 ofstrm << " STATUSTXT=\"ERREUR dans les tests\"; " << std::endl;
1546 ofstrm << " STAT=$VAR;" << std::endl;
1547 ofstrm << " exit $STAT" << std::endl;
1548 ofstrm << "fi" << std::endl;
1549 ofstrm << "}" << std::endl;
1550 ofstrm << "STATUSTXT=\"Test sans ERREUR\"" << std::endl;
1551 ofstrm << "echo \"*******************************\"" << std::endl;
1552 ofstrm << "echo \"Generation d'une microstructure\"" << std::endl;
1553 ofstrm << "echo \"*******************************\"" << std::endl;
1554 ofstrm << "STAT=$?" << std::endl;
1555 ofstrm << "" << std::endl;
1556 ofstrm << "mkdir resultats" << std::endl;
1557 ofstrm << "" << std::endl;
1558 ofstrm << "#Geometrie" << std::endl;
1559 ofstrm << "mkdir -p resultats/cao" << std::endl;
1560 ofstrm << "find . -name \"ves_geo_post.ves\" | sort > tmp_lst_ves_geo_post.txt" << std::endl;
1561 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;
1562 ofstrm << "rm tmp_lst_ves_geo_post.txt" << std::endl;
1563 ofstrm << "" << std::endl;
1564 ofstrm << "#MG Maillage" << std::endl;
1565 ofstrm << "mkdir -p resultats/maillage_mg" << std::endl;
1566 ofstrm << "find . -name \"ves_mg_maill_post.ves\" | sort > tmp_lst_ves_mg_maill_post.txt" << std::endl;
1567 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;
1568 ofstrm << "rm tmp_lst_ves_mg_maill_post.txt" << std::endl;
1569 ofstrm << "" << std::endl;
1570 ofstrm << "#Fem Maillage" << std::endl;
1571 if(fem_maill_lin)
1572 {
1573 ofstrm << "mkdir -p resultats/maillage_fem/lin" << std::endl;
1574 ofstrm << "find . -name \"ves_fem_maill_post_lin.ves\" | sort > tmp_lst_ves_fem_maill_post_lin.txt" << std::endl;
1575 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;
1576 ofstrm << "rm tmp_lst_ves_fem_maill_post_lin.txt" << std::endl;
1577 }
1578 if(fem_maill_quad)
1579 {
1580 ofstrm << "mkdir -p resultats/maillage_fem/quad" << std::endl;
1581 ofstrm << "find . -name \"ves_fem_maill_post_quad.ves\" | sort > tmp_lst_ves_fem_maill_post_quad.txt" << std::endl;
1582 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;
1583 ofstrm << "rm tmp_lst_ves_fem_maill_post_quad.txt" << std::endl;
1584 }
1585 ofstrm << "" << std::endl;
1586 ofstrm << "#Calculs" << std::endl;
1587 if(fem_maill_lin)
1588 {
1589 if(etude_mecanique)
1590 {
1591 ofstrm << "mkdir -p resultats/champ/DH/sph/lin" << std::endl;
1592 ofstrm << "mkdir -p resultats/champ/DH/dev/lin" << std::endl;
1593 ofstrm << "mkdir -p resultats/champ/CH/sph/lin" << std::endl;
1594 ofstrm << "mkdir -p resultats/champ/CH/dev/lin" << std::endl;
1595 ofstrm << "mkdir -p resultats/modules_elasticite/DH/lin" << std::endl;
1596 ofstrm << "mkdir -p resultats/modules_elasticite/CH/lin" << std::endl;
1597 ofstrm << "find . -name \"ves_calcul_CLDH_sph_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLDH_sph_post_lin.txt" << std::endl;
1598 ofstrm << "find . -name \"ves_calcul_CLCH_sph_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLCH_sph_post_lin.txt" << std::endl;
1599 ofstrm << "find . -name \"ves_calcul_CLDH_dev_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLDH_dev_post_lin.txt" << std::endl;
1600 ofstrm << "find . -name \"ves_calcul_CLCH_dev_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLCH_dev_post_lin.txt" << std::endl;
1601 ofstrm << "find . -name \"ves_calcul_CLDH_sph_ecart_chargement_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLDH_sph_ecart_chargement_post_lin.txt" << std::endl;
1602 ofstrm << "find . -name \"ves_calcul_CLCH_sph_ecart_chargement_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLCH_sph_ecart_chargement_post_lin.txt" << std::endl;
1603 ofstrm << "find . -name \"ves_calcul_CLDH_dev_ecart_chargement_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLDH_dev_ecart_chargement_post_lin.txt" << std::endl;
1604 ofstrm << "find . -name \"ves_calcul_CLCH_dev_ecart_chargement_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLCH_dev_ecart_chargement_post_lin.txt" << std::endl;
1605 ofstrm << "find . -name \"ves_CLDH_modules_elasticite_post_lin.ves\" | sort > tmp_lst_ves_CLDH_modules_elasticite_post_lin.txt" << std::endl;
1606 ofstrm << "find . -name \"ves_CLCH_modules_elasticite_post_lin.ves\" | sort > tmp_lst_ves_CLCH_modules_elasticite_post_lin.txt" << std::endl;
1607 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;
1608 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;
1609 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;
1610 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;
1611 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;
1612 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;
1613 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;
1614 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;
1615 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;
1616 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;
1617 ofstrm << "rm tmp_lst_ves_calcul_CLDH_sph_post_lin.txt" << std::endl;
1618 ofstrm << "rm tmp_lst_ves_calcul_CLCH_sph_post_lin.txt" << std::endl;
1619 ofstrm << "rm tmp_lst_ves_calcul_CLDH_dev_post_lin.txt" << std::endl;
1620 ofstrm << "rm tmp_lst_ves_calcul_CLCH_dev_post_lin.txt" << std::endl;
1621 ofstrm << "rm tmp_lst_ves_calcul_CLDH_sph_ecart_chargement_post_lin.txt" << std::endl;
1622 ofstrm << "rm tmp_lst_ves_calcul_CLCH_sph_ecart_chargement_post_lin.txt" << std::endl;
1623 ofstrm << "rm tmp_lst_ves_calcul_CLDH_dev_ecart_chargement_post_lin.txt" << std::endl;
1624 ofstrm << "rm tmp_lst_ves_calcul_CLCH_dev_ecart_chargement_post_lin.txt" << std::endl;
1625 ofstrm << "rm tmp_lst_ves_CLDH_modules_elasticite_post_lin.txt" << std::endl;
1626 ofstrm << "rm tmp_lst_ves_CLCH_modules_elasticite_post_lin.txt" << std::endl;
1627 }
1628 if(etude_thermique)
1629 {
1630 ofstrm << "mkdir -p resultats/champ/FH/F_x/lin" << std::endl;
1631 ofstrm << "mkdir -p resultats/champ/FH/F_y/lin" << std::endl;
1632 ofstrm << "mkdir -p resultats/champ/FH/F_z/lin" << std::endl;
1633 ofstrm << "mkdir -p resultats/champ/GH/G_x/lin" << std::endl;
1634 ofstrm << "mkdir -p resultats/champ/GH/G_y/lin" << std::endl;
1635 ofstrm << "mkdir -p resultats/champ/GH/G_z/lin" << std::endl;
1636 ofstrm << "mkdir -p resultats/conductivite_thermique/FH/lin" << std::endl;
1637 ofstrm << "mkdir -p resultats/conductivite_thermique/GH/lin" << std::endl;
1638 ofstrm << "find . -name \"ves_calcul_CLF_x_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLF_x_post_lin.txt" << std::endl;
1639 ofstrm << "find . -name \"ves_calcul_CLF_y_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLF_y_post_lin.txt" << std::endl;
1640 ofstrm << "find . -name \"ves_calcul_CLF_z_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLF_z_post_lin.txt" << std::endl;
1641 ofstrm << "find . -name \"ves_calcul_CLG_x_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLG_x_post_lin.txt" << std::endl;
1642 ofstrm << "find . -name \"ves_calcul_CLG_y_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLG_y_post_lin.txt" << std::endl;
1643 ofstrm << "find . -name \"ves_calcul_CLG_z_post_lin.ves\" | sort > tmp_lst_ves_calcul_CLG_z_post_lin.txt" << std::endl;
1644 ofstrm << "find . -name \"ves_CLF_conductivite_thermique_post_lin.ves\" | sort > tmp_lst_ves_CLF_conductivite_thermique_post_lin.txt" << std::endl;
1645 ofstrm << "find . -name \"ves_CLG_conductivite_thermique_post_lin.ves\" | sort > tmp_lst_ves_CLG_conductivite_thermique_post_lin.txt" << std::endl;
1646 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;
1647 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;
1648 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;
1649 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;
1650 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;
1651 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;
1652
1653 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLF_x_post_lin.txt -param parametre/post_traitement/params_post_conductivite_thermique_x.txt -dossier resultats/champ/FH/F_x/lin" << std::endl;
1654 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLF_y_post_lin.txt -param parametre/post_traitement/params_post_conductivite_thermique_y.txt -dossier resultats/champ/FH/F_y/lin" << std::endl;
1655 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLF_z_post_lin.txt -param parametre/post_traitement/params_post_conductivite_thermique_z.txt -dossier resultats/champ/FH/F_z/lin" << std::endl;
1656 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLG_x_post_lin.txt -param parametre/post_traitement/params_post_conductivite_thermique_x.txt -dossier resultats/champ/GH/G_x/lin" << std::endl;
1657 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLG_y_post_lin.txt -param parametre/post_traitement/params_post_conductivite_thermique_y.txt -dossier resultats/champ/GH/G_y/lin" << std::endl;
1658 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLG_z_post_lin.txt -param parametre/post_traitement/params_post_conductivite_thermique_z.txt -dossier resultats/champ/GH/G_z/lin" << std::endl;
1659
1660 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;
1661 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;
1662 ofstrm << "rm tmp_lst_ves_calcul_CLF_x_post_lin.txt" << std::endl;
1663 ofstrm << "rm tmp_lst_ves_calcul_CLF_y_post_lin.txt" << std::endl;
1664 ofstrm << "rm tmp_lst_ves_calcul_CLF_z_post_lin.txt" << std::endl;
1665 ofstrm << "rm tmp_lst_ves_calcul_CLG_x_post_lin.txt" << std::endl;
1666 ofstrm << "rm tmp_lst_ves_calcul_CLG_y_post_lin.txt" << std::endl;
1667 ofstrm << "rm tmp_lst_ves_calcul_CLG_z_post_lin.txt" << std::endl;
1668 ofstrm << "rm tmp_lst_ves_CLF_conductivite_thermique_post_lin.txt" << std::endl;
1669 ofstrm << "rm tmp_lst_ves_CLG_conductivite_thermique_post_lin.txt" << std::endl;
1670 }
1671 }
1672 if(fem_maill_quad)
1673 {
1674 if(etude_mecanique)
1675 {
1676 ofstrm << "mkdir -p resultats/champ/DH/sph/quad" << std::endl;
1677 ofstrm << "mkdir -p resultats/champ/DH/dev/quad" << std::endl;
1678 ofstrm << "mkdir -p resultats/champ/CH/sph/quad" << std::endl;
1679 ofstrm << "mkdir -p resultats/champ/CH/dev/quad" << std::endl;
1680 ofstrm << "mkdir -p resultats/modules_elasticite/DH/quad" << std::endl;
1681 ofstrm << "mkdir -p resultats/modules_elasticite/CH/quad" << std::endl;
1682 ofstrm << "find . -name \"ves_calcul_CLDH_sph_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLDH_sph_post_quad.txt" << std::endl;
1683 ofstrm << "find . -name \"ves_calcul_CLCH_sph_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLCH_sph_post_quad.txt" << std::endl;
1684 ofstrm << "find . -name \"ves_calcul_CLDH_dev_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLDH_dev_post_quad.txt" << std::endl;
1685 ofstrm << "find . -name \"ves_calcul_CLCH_dev_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLCH_dev_post_quad.txt" << std::endl;
1686 ofstrm << "find . -name \"ves_calcul_CLDH_sph_ecart_chargement_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLDH_sph_ecart_chargement_post_quad.txt" << std::endl;
1687 ofstrm << "find . -name \"ves_calcul_CLCH_sph_ecart_chargement_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLCH_sph_ecart_chargement_post_quad.txt" << std::endl;
1688 ofstrm << "find . -name \"ves_calcul_CLDH_dev_ecart_chargement_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLDH_dev_ecart_chargement_post_quad.txt" << std::endl;
1689 ofstrm << "find . -name \"ves_calcul_CLCH_dev_ecart_chargement_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLCH_dev_ecart_chargement_post_quad.txt" << std::endl;
1690 ofstrm << "find . -name \"ves_CLDH_modules_elasticite_post_quad.ves\" | sort > tmp_lst_ves_CLDH_modules_elasticite_post_quad.txt" << std::endl;
1691 ofstrm << "find . -name \"ves_CLCH_modules_elasticite_post_quad.ves\" | sort > tmp_lst_ves_CLCH_modules_elasticite_post_quad.txt" << std::endl;
1692 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;
1693 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;
1694 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;
1695 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;
1696 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;
1697 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;
1698 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;
1699 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;
1700 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;
1701 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;
1702 ofstrm << "rm tmp_lst_ves_calcul_CLDH_sph_post_quad.txt" << std::endl;
1703 ofstrm << "rm tmp_lst_ves_calcul_CLCH_sph_post_quad.txt" << std::endl;
1704 ofstrm << "rm tmp_lst_ves_calcul_CLDH_dev_post_quad.txt" << std::endl;
1705 ofstrm << "rm tmp_lst_ves_calcul_CLCH_dev_post_quad.txt" << std::endl;
1706 ofstrm << "rm tmp_lst_ves_calcul_CLDH_sph_ecart_chargement_post_quad.txt" << std::endl;
1707 ofstrm << "rm tmp_lst_ves_calcul_CLCH_sph_ecart_chargement_post_quad.txt" << std::endl;
1708 ofstrm << "rm tmp_lst_ves_calcul_CLDH_dev_ecart_chargement_post_quad.txt" << std::endl;
1709 ofstrm << "rm tmp_lst_ves_calcul_CLCH_dev_ecart_chargement_post_quad.txt" << std::endl;
1710 ofstrm << "rm tmp_lst_ves_CLDH_modules_elasticite_post_quad.txt" << std::endl;
1711 ofstrm << "rm tmp_lst_ves_CLCH_modules_elasticite_post_quad.txt" << std::endl;
1712 }
1713 if(etude_thermique)
1714 {
1715 ofstrm << "mkdir -p resultats/champ/FH/F_x/quad" << std::endl;
1716 ofstrm << "mkdir -p resultats/champ/FH/F_y/quad" << std::endl;
1717 ofstrm << "mkdir -p resultats/champ/FH/F_z/quad" << std::endl;
1718 ofstrm << "mkdir -p resultats/champ/GH/G_x/quad" << std::endl;
1719 ofstrm << "mkdir -p resultats/champ/GH/G_y/quad" << std::endl;
1720 ofstrm << "mkdir -p resultats/champ/GH/G_z/quad" << std::endl;
1721 ofstrm << "mkdir -p resultats/conductivite_thermique/FH/quad" << std::endl;
1722 ofstrm << "mkdir -p resultats/conductivite_thermique/GH/quad" << std::endl;
1723 ofstrm << "find . -name \"ves_calcul_CLF_x_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLF_x_post_quad.txt" << std::endl;
1724 ofstrm << "find . -name \"ves_calcul_CLF_y_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLF_y_post_quad.txt" << std::endl;
1725 ofstrm << "find . -name \"ves_calcul_CLF_z_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLF_z_post_quad.txt" << std::endl;
1726 ofstrm << "find . -name \"ves_calcul_CLG_x_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLG_x_post_quad.txt" << std::endl;
1727 ofstrm << "find . -name \"ves_calcul_CLG_y_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLG_y_post_quad.txt" << std::endl;
1728 ofstrm << "find . -name \"ves_calcul_CLG_z_post_quad.ves\" | sort > tmp_lst_ves_calcul_CLG_z_post_quad.txt" << std::endl;
1729 ofstrm << "find . -name \"ves_CLF_conductivite_thermique_post_quad.ves\" | sort > tmp_lst_ves_CLF_conductivite_thermique_post_quad.txt" << std::endl;
1730 ofstrm << "find . -name \"ves_CLG_conductivite_thermique_post_quad.ves\" | sort > tmp_lst_ves_CLG_conductivite_thermique_post_quad.txt" << std::endl;
1731 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;
1732 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;
1733 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;
1734 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;
1735 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;
1736 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;
1737
1738 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLF_x_post_quad.txt -param parametre/post_traitement/params_post_conductivite_thermique_x.txt -dossier resultats/champ/FH/F_x/quad" << std::endl;
1739 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLF_y_post_quad.txt -param parametre/post_traitement/params_post_conductivite_thermique_y.txt -dossier resultats/champ/FH/F_y/quad" << std::endl;
1740 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLF_z_post_quad.txt -param parametre/post_traitement/params_post_conductivite_thermique_z.txt -dossier resultats/champ/FH/F_z/quad" << std::endl;
1741 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLG_x_post_quad.txt -param parametre/post_traitement/params_post_conductivite_thermique_x.txt -dossier resultats/champ/GH/G_x/quad" << std::endl;
1742 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLG_y_post_quad.txt -param parametre/post_traitement/params_post_conductivite_thermique_y.txt -dossier resultats/champ/GH/G_y/quad" << std::endl;
1743 ofstrm << "executer $CHEMINCOMPILE/microstructure/microstructure.exe -cumuler_post_traitement -lstves tmp_lst_ves_calcul_CLG_z_post_quad.txt -param parametre/post_traitement/params_post_conductivite_thermique_z.txt -dossier resultats/champ/GH/G_z/quad" << std::endl;
1744
1745 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;
1746 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;
1747 ofstrm << "rm tmp_lst_ves_calcul_CLF_x_post_quad.txt" << std::endl;
1748 ofstrm << "rm tmp_lst_ves_calcul_CLF_y_post_quad.txt" << std::endl;
1749 ofstrm << "rm tmp_lst_ves_calcul_CLF_z_post_quad.txt" << std::endl;
1750 ofstrm << "rm tmp_lst_ves_calcul_CLG_x_post_quad.txt" << std::endl;
1751 ofstrm << "rm tmp_lst_ves_calcul_CLG_y_post_quad.txt" << std::endl;
1752 ofstrm << "rm tmp_lst_ves_calcul_CLG_z_post_quad.txt" << std::endl;
1753 ofstrm << "rm tmp_lst_ves_CLF_conductivite_thermique_post_quad.txt" << std::endl;
1754 ofstrm << "rm tmp_lst_ves_CLG_conductivite_thermique_post_quad.txt" << std::endl;
1755 }
1756 }
1757 ofstrm << "" << std::endl;
1758 ofstrm << "./produire_figures 0" << std::endl;
1759 ofstrm << "echo \"**********************\"" << std::endl;
1760 ofstrm << "echo \" FIN \"" << std::endl;
1761 ofstrm << "echo \"**********************\"" << std::endl;
1762 ofstrm << "exit $STAT" << std::endl;
1763 ofstrm.close();
1764 if(fonc_affiche!=NULL) fonc_affiche((char*)"post_traitement");
1765 system((char*)"chmod 744 post_traitement");
1766
1767
1768
1769
1770 ofstrm.open((char*)"produire_figures",std::ios::out|std::ios::trunc);
1771 ofstrm.precision(16);
1772 ofstrm.setf(std::ios::showpoint);
1773 ofstrm << "#!/bin/bash" << std::endl;
1774 ofstrm << "COUCHE_REF=\"$1\"" << std::endl;
1775 ofstrm << "#Data pour graph" << std::endl;
1776 ofstrm << "PWD=pwd" << std::endl;
1777 ofstrm << "mkdir -p resultats/data_graph resultats/graph" << std::endl;
1778 if(type_inclusion==MSTRUCT::TYPE_INCLUSION::CYLINDRE)
1779 {
1780 ofstrm << "#Orientation" << std::endl;
1781 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;
1782 ofstrm << "sed -i '1s/^/Nb_ves somme_ecart_absolu\\n/' resultats/data_graph/cumul_Err_abs_ori.txt" << std::endl;
1783 if(fem_maill_lin)
1784 {
1785 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;
1786 ofstrm << "sed -i '1s/^/Couche Nb_ves somme_ecart_absolu\\n/' resultats/data_graph/cumul_erosion_Err_abs_ori_lin.txt" << std::endl;
1787 }
1788 if(fem_maill_quad)
1789 {
1790 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;
1791 ofstrm << "sed -i '1s/^/Couche Nb_ves somme_ecart_absolu\\n/' resultats/data_graph/cumul_erosion_Err_abs_ori_quad.txt" << std::endl;
1792 }
1793 }
1794 if(fem_maill_lin)
1795 {
1796 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;
1797 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;
1798 if(etude_mecanique)
1799 {
1800 ofstrm << "#Module elasticite" << std::endl;
1801 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;
1802 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;
1803 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;
1804 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;
1805 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;
1806 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;
1807 ofstrm << "rm resultats/data_graph/tmp_erosion_Modules_app_CH_lin resultats/data_graph/tmp_erosion_Modules_app_DH_lin" << std::endl;
1808 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;
1809 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;
1810 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;
1811 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;
1812 ofstrm << "sed -i '1s/^/# Fvol Eapp Nuapp Gapp Kapp\\n/' resultats/data_graph/liste_Modules_app_CH_lin.txt" << std::endl;
1813 ofstrm << "sed -i '1s/^/# Fvol Eapp Nuapp Gapp Kapp\\n/' resultats/data_graph/liste_Modules_app_DH_lin.txt" << std::endl;
1814 ofstrm << "rm resultats/data_graph/tmp_Modules_app_CH_lin resultats/data_graph/tmp_Modules_app_DH_lin" << std::endl;
1815 }
1816 if(etude_thermique)
1817 {
1818 ofstrm << "#Conductivite thermique" << std::endl;
1819 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;
1820 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;
1821 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;
1822 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;
1823 ofstrm << "sed -i '1s/^/Couche Nb_ves Fvol(moy ±) Lambda(moy ±)\\n/' resultats/data_graph/erosion_Conductivite_thermique_app_FH_lin.txt" << std::endl;
1824 ofstrm << "sed -i '1s/^/Couche Nb_ves Fvol(moy ±) Lambda(moy ±)\\n/' resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt" << std::endl;
1825 ofstrm << "rm resultats/data_graph/tmp_erosion_Conductivite_thermique_app_FH_lin resultats/data_graph/tmp_erosion_Conductivite_thermique_app_GH_lin" << std::endl;
1826 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;
1827 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;
1828 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;
1829 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;
1830 ofstrm << "sed -i '1s/^/# Fvol Lambda_app\\n/' resultats/data_graph/liste_Conductivite_thermique_app_FH_lin.txt" << std::endl;
1831 ofstrm << "sed -i '1s/^/# Fvol Lambda_app\\n/' resultats/data_graph/liste_Conductivite_thermique_app_GH_lin.txt" << std::endl;
1832 ofstrm << "rm resultats/data_graph/tmp_Conductivite_thermique_app_FH_lin resultats/data_graph/tmp_Conductivite_thermique_app_GH_lin" << std::endl;
1833 }
1834 ofstrm << "rm resultats/data_graph/tmp_erosion_fem_maill_lin resultats/data_graph/tmp_liste_fem_maill_lin" << std::endl;
1835 }
1836 if(fem_maill_quad)
1837 {
1838 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;
1839 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;
1840 if(etude_mecanique)
1841 {
1842 ofstrm << "#Module elasticite" << std::endl;
1843 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;
1844 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;
1845 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;
1846 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;
1847 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;
1848 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;
1849 ofstrm << "rm resultats/data_graph/tmp_erosion_Modules_app_CH_quad resultats/data_graph/tmp_erosion_Modules_app_DH_quad" << std::endl;
1850 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;
1851 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;
1852 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;
1853 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;
1854 ofstrm << "sed -i '1s/^/# Fvol Eapp Nuapp Gapp Kapp\\n/' resultats/data_graph/liste_Modules_app_CH_quad.txt" << std::endl;
1855 ofstrm << "sed -i '1s/^/# Fvol Eapp Nuapp Gapp Kapp\\n/' resultats/data_graph/liste_Modules_app_DH_quad.txt" << std::endl;
1856 ofstrm << "rm resultats/data_graph/tmp_Modules_app_CH_quad resultats/data_graph/tmp_Modules_app_DH_quad" << std::endl;
1857 }
1858 if(etude_thermique)
1859 {
1860 ofstrm << "#Conductivite thermique" << std::endl;
1861 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;
1862 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;
1863 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;
1864 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;
1865 ofstrm << "sed -i '1s/^/Couche Nb_ves Fvol(moy ±) Lambda(moy ±)\\n/' resultats/data_graph/erosion_Conductivite_thermique_app_FH_quad.txt" << std::endl;
1866 ofstrm << "sed -i '1s/^/Couche Nb_ves Fvol(moy ±) Lambda(moy ±)\\n/' resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt" << std::endl;
1867 ofstrm << "rm resultats/data_graph/tmp_erosion_Conductivite_thermique_app_FH_quad resultats/data_graph/tmp_erosion_Conductivite_thermique_app_GH_quad" << std::endl;
1868 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;
1869 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;
1870 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;
1871 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;
1872 ofstrm << "sed -i '1s/^/# Fvol Lambda_app\\n/' resultats/data_graph/liste_Conductivite_thermique_app_FH_quad.txt" << std::endl;
1873 ofstrm << "sed -i '1s/^/# Fvol Lambda_app\\n/' resultats/data_graph/liste_Conductivite_thermique_app_GH_quad.txt" << std::endl;
1874 ofstrm << "rm resultats/data_graph/tmp_Conductivite_thermique_app_FH_quad resultats/data_graph/tmp_Conductivite_thermique_app_GH_quad" << std::endl;
1875 }
1876 ofstrm << "rm resultats/data_graph/tmp_erosion_fem_maill_quad resultats/data_graph/tmp_liste_fem_maill_quad" << std::endl;
1877 }
1878 ofstrm << "gnuplot -e \"couche_ref=0\" fig.gnu" << std::endl;
1879 if(fonc_affiche!=NULL) fonc_affiche((char*)"produire_figures");
1880 system((char*)"chmod 744 produire_figures");
1881 ofstrm.close();
1882
1883
1884 ofstrm.open((char*)"fig.gnu",std::ios::out|std::ios::trunc);
1885 ofstrm.precision(16);
1886 ofstrm.setf(std::ios::showpoint);
1887 ofstrm << "" << std::endl;
1888 ofstrm << "" << std::endl;
1889 ofstrm << "if (!exists(\"couche_ref\")) couche_ref=0" << std::endl;
1890 ofstrm << "if (!exists(\"sortie\")) sortie=\"svg\"" << std::endl;
1891 ofstrm << "if (sortie eq \"svg\") {term=\"svg\";ext=\"svg\";}" << std::endl;
1892 ofstrm << "if (sortie eq \"pdf\") {term=\"pdf size 10,8 font 'Helvetica,20'\";ext=\"pdf\";}" << std::endl;
1893
1894 ofstrm << "print sprintf(\"Format de sortie : %s\",sortie)" << std::endl;
1895 ofstrm << "print sprintf(\"couche ref : c_%i\",couche_ref)" << std::endl;
1896 ofstrm << "" << std::endl;
1897 ofstrm << "set terminal term" << std::endl;
1898 ofstrm << "set lmargin 10" << std::endl;
1899 ofstrm << "set rmargin 15 " << std::endl;
1900 ofstrm << "set key outside" << std::endl;
1901 ofstrm << "set grid" << std::endl;
1902 ofstrm << "c1(c)=c" << std::endl;
1903 ofstrm << "c2(c)=1.0-c" << std::endl;
1904 ofstrm << "" << std::endl;
1905 ofstrm << "E1=real(system(sprintf(\"grep 'Mu_E' parametre/materiau/param_mat_particule.txt | awk '{print $3/(1000000000)}'\")))" << std::endl;
1906 ofstrm << "nu1=real(system(sprintf(\"grep 'Mu_nu' parametre/materiau/param_mat_particule.txt | awk '{print $3}'\")))" << std::endl;
1907 ofstrm << "E2=real(system(sprintf(\"grep 'Mu_E' parametre/materiau/param_mat_matrice.txt | awk '{print $3/(1000000000)}'\")))" << std::endl;
1908 ofstrm << "nu2=real(system(sprintf(\"grep 'Mu_nu' parametre/materiau/param_mat_matrice.txt | awk '{print $3}'\")))" << std::endl;
1909 ofstrm << "print sprintf(\"E1 = %f GPa, nu1 = %f\",E1,nu1)" << std::endl;
1910 ofstrm << "print sprintf(\"E2 = %f GPa, nu2 = %f\",E2,nu2)" << std::endl;
1911 ofstrm << "transfk(E,nu)=E/(3.0*(1.0-2.0*nu))" << std::endl;
1912 ofstrm << "transfmu(E,nu)=E*0.5/(1.0+nu)" << std::endl;
1913 ofstrm << "transfE(k,mu)=9.0*mu*k/(3.0*k+mu)" << std::endl;
1914 ofstrm << "transfnu(k,mu)=(3.0*k-2.0*mu)/(6.0*k+2.0*mu)" << std::endl;
1915 ofstrm << "fk(c,mu)=k1+c2(c)*(k2-k1)/(1.0+c1(c)*(k2-k1)/(k1+4.0*mu/3.0))" << std::endl;
1916 ofstrm << "fm(c,k,mu)=mu1+c2(c)*(mu2-mu1)/(1.0+c1(c)*(mu2-mu1)/(mu1+(1.5/((1.0/mu)+(10.0/(9.0*k+8.0*mu))))))" << std::endl;
1917 ofstrm << "mu1=transfmu(E1,nu1)" << std::endl;
1918 ofstrm << "k1=transfk(E1,nu1)" << std::endl;
1919 ofstrm << "mu2=transfmu(E2,nu2)" << std::endl;
1920 ofstrm << "k2=transfk(E2,nu2)" << std::endl;
1921 ofstrm << "k_voigt(c)=c1(c)*k1+c2(c)*k2" << std::endl;
1922 ofstrm << "mu_voigt(c)=c1(c)*mu1+c2(c)*mu2" << std::endl;
1923 ofstrm << "k_reuss(c)=(k1*k2)/(c1(c)*k2+c2(c)*k1)" << std::endl;
1924 ofstrm << "mu_reuss(c)=(mu1*mu2)/(c1(c)*mu2+c2(c)*mu1)" << std::endl;
1925 ofstrm << "E_voigt(c)=transfE(k_voigt(c),mu_voigt(c))" << std::endl;
1926 ofstrm << "nu_voigt(c)=transfnu(k_voigt(c),mu_voigt(c))" << std::endl;
1927 ofstrm << "E_reuss(c)=transfE(k_reuss(c),mu_reuss(c))" << std::endl;
1928 ofstrm << "nu_reuss(c)=transfnu(k_reuss(c),mu_reuss(c))" << std::endl;
1929 ofstrm << "ka(c)=fk(c,mu1)" << std::endl;
1930 ofstrm << "kb(c)=fk(c,mu2)" << std::endl;
1931 ofstrm << "k_hs_inf(c)=ka(c)<kb(c) ? ka(c) : kb(c)" << std::endl;
1932 ofstrm << "k_hs_sup(c)=ka(c)<kb(c) ? kb(c) : ka(c)" << std::endl;
1933 ofstrm << "mua(c)=((mu1-mu2)*(k1-k2))>=0. ? fm(c,k1,mu1) : fm(c,k2,mu1)" << std::endl;
1934 ofstrm << "mub(c)=((mu1-mu2)*(k1-k2))>=0. ? fm(c,k2,mu2) : fm(c,k1,mu2)" << std::endl;
1935 ofstrm << "mu_hs_inf(c)=mua(c)<mub(c) ? mua(c) : mub(c)" << std::endl;
1936 ofstrm << "mu_hs_sup(c)=mua(c)<mub(c) ? mub(c) : mua(c)" << std::endl;
1937 ofstrm << "E_hs_inf(c)=transfE(k_hs_inf(c),mu_hs_inf(c))" << std::endl;
1938 ofstrm << "E_hs_sup(c)=transfE(k_hs_sup(c),mu_hs_sup(c))" << std::endl;
1939 ofstrm << "lambda1=real(system(sprintf(\"grep 'Mu_Lambda' parametre/materiau/param_mat_particule.txt | awk '{print $3}'\")))" << std::endl;
1940 ofstrm << "lambda2=real(system(sprintf(\"grep 'Mu_Lambda' parametre/materiau/param_mat_matrice.txt | awk '{print $3}'\")))" << std::endl;
1941 ofstrm << "print sprintf(\"lambda1 = %f (W/(mK))\",lambda1)" << std::endl;
1942 ofstrm << "print sprintf(\"lambda2 = %f (W/(mK))\",lambda2)" << std::endl;
1943 ofstrm << "lambda_voigt(c)=c1(c)*lambda1+c2(c)*lambda2" << std::endl;
1944 ofstrm << "lambda_reuss(c)=1.0/((c1(c)/lambda1)+(c2(c)/lambda2))" << std::endl;
1945 ofstrm << "lambda_a(c)=lambda1+(c2(c)/((1.0/(lambda2-lambda1))+(c1(c)/(3.0*lambda1))))" << std::endl;
1946 ofstrm << "lambda_b(c)=lambda2+(c1(c)/((1.0/(lambda1-lambda2))+(c2(c)/(3.0*lambda2))))" << std::endl;
1947 ofstrm << "lambda_hs_inf(c)=(lambda_a(c)>lambda_b(c)) ? lambda_b(c) : lambda_a(c)" << std::endl;
1948 ofstrm << "lambda_hs_sup(c)=(lambda_a(c)>lambda_b(c)) ? lambda_a(c) : lambda_b(c)" << std::endl;
1949 ofstrm << "" << std::endl;
1950 ofstrm << "#print sprintf(\"K_voigt = %f\",k_voigt(0.099))" << std::endl;
1951 ofstrm << "#print sprintf(\"K_hs_sup = %f\",k_hs_sup(0.099))" << std::endl;
1952 ofstrm << "#print sprintf(\"K_hs_inf = %f\",k_hs_inf(0.099))" << std::endl;
1953 ofstrm << "#print sprintf(\"K_reuss = %f\",k_reuss(0.099))" << std::endl;
1954 ofstrm << "#print sprintf(\"G_voigt = %f\",mu_voigt(0.099))" << std::endl;
1955 ofstrm << "#print sprintf(\"G_hs_sup = %f\",mu_hs_sup(0.099))" << std::endl;
1956 ofstrm << "#print sprintf(\"G_hs_inf = %f\",mu_hs_inf(0.099))" << std::endl;
1957 ofstrm << "#print sprintf(\"G_reuss = %f\",mu_reuss(0.099))" << std::endl;
1958 ofstrm << "#print sprintf(\"E_voigt = %f\",E_voigt(0.099))" << std::endl;
1959 ofstrm << "#print sprintf(\"E_hs_sup = %f\",E_hs_sup(0.099))" << std::endl;
1960 ofstrm << "#print sprintf(\"E_hs_inf = %f\",E_hs_inf(0.099))" << std::endl;
1961 ofstrm << "#print sprintf(\"E_reuss = %f\",E_reuss(0.099))" << std::endl;
1962 ofstrm << "#print sprintf(\"lambda_voigt = %f\",lambda_voigt(0.099))" << std::endl;
1963 ofstrm << "#print sprintf(\"lambda_hs_sup = %f\",lambda_hs_sup(0.099))" << std::endl;
1964 ofstrm << "#print sprintf(\"lambda_hs_inf = %f\",lambda_hs_inf(0.099))" << std::endl;
1965 ofstrm << "#print sprintf(\"lambda_reuss = %f\",lambda_reuss(0.099))" << std::endl;
1966 ofstrm << "" << std::endl;
1967 if(etude_mecanique)
1968 {
1969 ofstrm << "#Nuage Eapp" << std::endl;
1970 if(fem_maill_lin)
1971 {
1972 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/nuage_Eapp_lin.\",ext)" << std::endl;
1973 ofstrm << "#set xrange [0:100]" << std::endl;
1974 ofstrm << "#set yrange [3:6]" << std::endl;
1975 ofstrm << "#set title \"Module de Young (GPa)\"" << std::endl;
1976 ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
1977 ofstrm << "set ylabel \"Module de Young (GPa)\"" << std::endl;
1978 ofstrm << "plot \"resultats/data_graph/liste_Modules_app_DH_lin.txt\" u ($2*100):($3/(1000000000)) pt 4 ps 0.5 lc rgb 'blue' lw 1 title \"DH\",\\" << std::endl;
1979 ofstrm << "\"resultats/data_graph/liste_Modules_app_CH_lin.txt\" u ($2*100):($3/(1000000000)) pt 4 ps 0.5 lc rgb 'red' lw 1 title \"CH\",\\" << std::endl;
1980 ofstrm << "E_reuss(x/100.0) with line lw 2 lc rgb 'black' lt 2 title \"E_{Reuss}\" ,\\" << std::endl;
1981 ofstrm << "E_hs_inf(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"E_{HS-}\" ,\\" << std::endl;
1982 ofstrm << "E_hs_sup(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"E_{HS+}\" ,\\" << std::endl;
1983 ofstrm << "E_voigt(x/100.0) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"E_{Voigt}\"" << std::endl;
1984 }
1985 if(fem_maill_quad)
1986 {
1987 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/nuage_Eapp_quad.\",ext)" << std::endl;
1988 ofstrm << "#set xrange [0:100]" << std::endl;
1989 ofstrm << "#set yrange [3:6]" << std::endl;
1990 ofstrm << "#set title \"Module de Young (GPa)\"" << std::endl;
1991 ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
1992 ofstrm << "set ylabel \"Module de Young (GPa)\"" << std::endl;
1993 ofstrm << "plot \"resultats/data_graph/liste_Modules_app_DH_quad.txt\" u ($2*100):($3/(1000000000)) pt 5 ps 0.5 lc rgb 'blue' lw 1 title \"DH\",\\" << std::endl;
1994 ofstrm << "\"resultats/data_graph/liste_Modules_app_CH_quad.txt\" u ($2*100):($3/(1000000000)) pt 5 ps 0.5 lc rgb 'red' lw 1 title \"CH\",\\" << std::endl;
1995 ofstrm << "E_reuss(x/100.0) with line lw 2 lc rgb 'black' lt 2 title \"E_{Reuss}\" ,\\" << std::endl;
1996 ofstrm << "E_hs_inf(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"E_{HS-}\" ,\\" << std::endl;
1997 ofstrm << "E_hs_sup(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"E_{HS+}\" ,\\" << std::endl;
1998 ofstrm << "E_voigt(x/100.0) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"E_{Voigt}\"" << std::endl;
1999 }
2000 if(fem_maill_lin && fem_maill_quad)
2001 {
2002 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/nuage_Eapp_lin_quad.\",ext)" << std::endl;
2003 ofstrm << "#set xrange [0:100]" << std::endl;
2004 ofstrm << "#set yrange [3:6]" << std::endl;
2005 ofstrm << "#set title \"Module de Young (GPa)\"" << std::endl;
2006 ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
2007 ofstrm << "set ylabel \"Module de Young (GPa)\"" << std::endl;
2008 ofstrm << "plot \"resultats/data_graph/liste_Modules_app_DH_lin.txt\" u ($2*100):($3/(1000000000)) pt 4 ps 0.5 lc rgb 'blue' lw 1 title \"DH lin\",\\" << std::endl;
2009 ofstrm << "\"resultats/data_graph/liste_Modules_app_CH_lin.txt\" u ($2*100):($3/(1000000000)) pt 4 ps 0.5 lc rgb 'red' lw 1 title \"CH lin\",\\" << std::endl;
2010 ofstrm << "\"resultats/data_graph/liste_Modules_app_DH_quad.txt\" u ($2*100):($3/(1000000000)) pt 5 ps 0.5 lc rgb 'blue' lw 1 title \"DH quad\",\\" << std::endl;
2011 ofstrm << "\"resultats/data_graph/liste_Modules_app_CH_quad.txt\" u ($2*100):($3/(1000000000)) pt 5 ps 0.5 lc rgb 'red' lw 1 title \"CH quad\",\\" << std::endl;
2012 ofstrm << "E_reuss(x/100.0) with line lw 2 lc rgb 'black' lt 2 title \"E_{Reuss}\" ,\\" << std::endl;
2013 ofstrm << "E_hs_inf(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"E_{HS-}\" ,\\" << std::endl;
2014 ofstrm << "E_hs_sup(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"E_{HS+}\" ,\\" << std::endl;
2015 ofstrm << "E_voigt(x/100.0) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"E_{Voigt}\"" << std::endl;
2016 }
2017
2018 ofstrm << "" << std::endl;
2019 ofstrm << "#Cumul Eapp" << std::endl;
2020 if(fem_maill_lin)
2021 {
2022 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/cumul_Eapp_lin.\",ext)" << std::endl;
2023 ofstrm << "#set title \"Module de Young (GPa)\"" << std::endl;
2024 ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
2025 ofstrm << "set ylabel \"Module de Young (GPa)\"" << std::endl;
2026 ofstrm << "plot sprintf(\"<(sed -n %ip resultats/data_graph/erosion_Modules_app_DH_lin.txt)\",couche_ref+2) u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 4 ps 0.5 lc rgb 'blue' lw 1 title \"DH\",\\" << std::endl;
2027 ofstrm << "sprintf(\"<(sed -n %ip resultats/data_graph/erosion_Modules_app_CH_lin.txt)\",couche_ref+2) u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 4 ps 0.5 lc rgb 'red' lw 1 title \"CH\",\\" << std::endl;
2028 ofstrm << "E_reuss(x/100.0) with line lw 2 lc rgb 'grey' lt 2 title \"E_{Reuss}\" ,\\" << std::endl;
2029 ofstrm << "E_hs_inf(x/100.0) with line lw 2 lc rgb 'black' lt 2 title \"E_{HS-}\" ,\\" << std::endl;
2030 ofstrm << "E_hs_sup(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"E_{HS+}\" ,\\" << std::endl;
2031 ofstrm << "E_voigt(x/100.0) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"E_{Voigt}\"" << std::endl;
2032 }
2033 if(fem_maill_quad)
2034 {
2035 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/cumul_Eapp_quad.\",ext)" << std::endl;
2036 ofstrm << "#set title \"Module de Young (GPa)\"" << std::endl;
2037 ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
2038 ofstrm << "set ylabel \"Module de Young (GPa)\"" << std::endl;
2039 ofstrm << "plot sprintf(\"<(sed -n %ip resultats/data_graph/erosion_Modules_app_DH_quad.txt)\",couche_ref+2) u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 5 ps 0.5 lc rgb 'blue' lw 1 title \"DH\",\\" << std::endl;
2040 ofstrm << "sprintf(\"<(sed -n %ip resultats/data_graph/erosion_Modules_app_CH_quad.txt)\",couche_ref+2) u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 5 ps 0.5 lc rgb 'red' lw 1 title \"CH\",\\" << std::endl;
2041 ofstrm << "E_reuss(x/100.0) with line lw 2 lc rgb 'grey' lt 2 title \"E_{Reuss}\" ,\\" << std::endl;
2042 ofstrm << "E_hs_inf(x/100.0) with line lw 2 lc rgb 'black' lt 2 title \"E_{HS-}\" ,\\" << std::endl;
2043 ofstrm << "E_hs_sup(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"E_{HS+}\" ,\\" << std::endl;
2044 ofstrm << "E_voigt(x/100.0) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"E_{Voigt}\"" << std::endl;
2045 }
2046 if(fem_maill_lin && fem_maill_quad)
2047 {
2048 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/cumul_Eapp_lin_quad.\",ext)" << std::endl;
2049 ofstrm << "#set title \"Module de Young (GPa)\"" << std::endl;
2050 ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
2051 ofstrm << "set ylabel \"Module de Young (GPa)\"" << std::endl;
2052 ofstrm << "plot sprintf(\"<(sed -n %ip resultats/data_graph/erosion_Modules_app_DH_lin.txt)\",couche_ref+2) u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 4 ps 0.5 lc rgb 'blue' lw 1 title \"DH lin\",\\" << std::endl;
2053 ofstrm << "sprintf(\"<(sed -n %ip resultats/data_graph/erosion_Modules_app_CH_lin.txt)\",couche_ref+2) u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 4 ps 0.5 lc rgb 'red' lw 1 title \"CH lin\",\\" << std::endl;
2054 ofstrm << "sprintf(\"<(sed -n %ip resultats/data_graph/erosion_Modules_app_DH_quad.txt)\",couche_ref+2) u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 5 ps 0.5 lc rgb 'blue' lw 1 title \"DH quad\",\\" << std::endl;
2055 ofstrm << "sprintf(\"<(sed -n %ip resultats/data_graph/erosion_Modules_app_CH_quad.txt)\",couche_ref+2) u ($3*100):($5/(1000000000)):($4*100):($6/(1000000000)) with xyerrorbars pt 5 ps 0.5 lc rgb 'red' lw 1 title \"CH quad\",\\" << std::endl;
2056 ofstrm << "E_reuss(x/100.0) with line lw 2 lc rgb 'grey' lt 2 title \"E_{Reuss}\" ,\\" << std::endl;
2057 ofstrm << "E_hs_inf(x/100.0) with line lw 2 lc rgb 'black' lt 2 title \"E_{HS-}\" ,\\" << std::endl;
2058 ofstrm << "E_hs_sup(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"E_{HS+}\" ,\\" << std::endl;
2059 ofstrm << "E_voigt(x/100.0) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"E_{Voigt}\"" << std::endl;
2060 }
2061
2062 ofstrm << "" << std::endl;
2063 ofstrm << "#Cumul erosion Eapp" << std::endl;
2064 if(fem_maill_lin)
2065 {
2066 ofstrm << "set terminal term" << std::endl;
2067 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_Eapp_lin.\",ext)" << std::endl;
2068 ofstrm << "set lmargin 10" << std::endl;
2069 ofstrm << "set rmargin 18" << std::endl;
2070 ofstrm << "set multiplot layout 2, 1" << std::endl;
2071 ofstrm << "#set xrange [0:0.41]" << std::endl;
2072 ofstrm << "#set title \"Module de Young (GPa)\"" << std::endl;
2073 ofstrm << "unset xlabel" << std::endl;
2074 ofstrm << "unset xtic" << std::endl;
2075 ofstrm << "set ylabel \"Module de Young (GPa)\"" << std::endl;
2076 ofstrm << "set ytics nomirror" << std::endl;
2077 ofstrm << "#set yrange [4.0:5]" << std::endl;
2078 ofstrm << "set size 1,0.7" << std::endl;
2079 ofstrm << "set origin 0,0.3" << std::endl;
2080 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_DH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with linespoint pt 4 ps 1.0 lc rgb 'blue' lw 2 title \"DH\" ,\\" << std::endl;
2081 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.0 lc rgb 'blue' lw 2 notitle ,\\" << std::endl;
2082 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with linespoint pt 4 ps 1.0 lc rgb 'red' lw 2 title \"CH\" axes x1y1 ,\\" << std::endl;
2083 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.0 lc rgb 'red' lw 2 notitle ,\\" << std::endl;
2084 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):(E_hs_inf($3)) with linespoint pt 9 ps 1.0 lw 2 lc rgb 'black' lt 2 title \"E_{HS-}\" #,\\" << std::endl;
2085 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):(E_reuss($3)) with line lw 2 lc rgb 'grey' lt 2 title \"E_{Reuss}\" ,\\" << std::endl;
2086 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):(E_hs_sup($3)) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"E_{HS+}\" ,\\" << std::endl;
2087 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):(E_voigt($3)) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"E_{Voigt}\"" << std::endl;
2088 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
2089 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2090 ofstrm << "unset yrange" << std::endl;
2091 ofstrm << "set size 1,0.3" << std::endl;
2092 ofstrm << "set origin 0,0" << std::endl;
2093 ofstrm << "set xtics" << std::endl;
2094 ofstrm << "#set yrange [9:14]" << std::endl;
2095 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 6 ps 1.0 title \"Frac. Vol.\" ,\\" << std::endl;
2096 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'black' pt 6 ps 1.0 notitle" << std::endl;
2097 ofstrm << "unset yrange" << std::endl;
2098 ofstrm << "#unset lmargin" << std::endl;
2099 ofstrm << "#unset rmargin" << std::endl;
2100 ofstrm << "unset multiplot" << std::endl;
2101 }
2102 if(fem_maill_quad)
2103 {
2104 ofstrm << "set terminal term" << std::endl;
2105 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_Eapp_quad.\",ext)" << std::endl;
2106 ofstrm << "set lmargin 10" << std::endl;
2107 ofstrm << "set rmargin 18" << std::endl;
2108 ofstrm << "set multiplot layout 2, 1" << std::endl;
2109 ofstrm << "#set xrange [0:0.41]" << std::endl;
2110 ofstrm << "#set title \"Module de Young (GPa)\"" << std::endl;
2111 ofstrm << "unset xlabel" << std::endl;
2112 ofstrm << "unset xtic" << std::endl;
2113 ofstrm << "set ylabel \"Module de Young (GPa)\"" << std::endl;
2114 ofstrm << "set ytics nomirror" << std::endl;
2115 ofstrm << "#set yrange [4.0:5]" << std::endl;
2116 ofstrm << "set size 1,0.7" << std::endl;
2117 ofstrm << "set origin 0,0.3" << std::endl;
2118 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_DH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with linespoint pt 5 ps 1.0 lc rgb 'blue' lw 2 title \"DH\" ,\\" << std::endl;
2119 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.0 lc rgb 'blue' lw 2 notitle ,\\" << std::endl;
2120 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with linespoint pt 5 ps 1.0 lc rgb 'red' lw 2 title \"CH\" axes x1y1 ,\\" << std::endl;
2121 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.0 lc rgb 'red' lw 2 notitle ,\\" << std::endl;
2122 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):(E_hs_inf($3)) with linespoint pt 9 ps 1.0 lw 2 lc rgb 'black' lt 2 title \"E_{HS-}\" #,\\" << std::endl;
2123 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):(E_reuss($3)) with line lw 2 lc rgb 'grey' lt 2 title \"E_{Reuss}\" ,\\" << std::endl;
2124 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):(E_hs_sup($3)) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"E_{HS+}\" ,\\" << std::endl;
2125 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):(E_voigt($3)) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"E_{Voigt}\"" << std::endl;
2126 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
2127 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2128 ofstrm << "unset yrange" << std::endl;
2129 ofstrm << "set size 1,0.3" << std::endl;
2130 ofstrm << "set origin 0,0" << std::endl;
2131 ofstrm << "set xtics" << std::endl;
2132 ofstrm << "#set yrange [9:14]" << std::endl;
2133 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 7 ps 1.0 title \"Frac. Vol.\" ,\\" << std::endl;
2134 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 7 ps 1.0 notitle" << std::endl;
2135 ofstrm << "unset yrange" << std::endl;
2136 ofstrm << "#unset lmargin" << std::endl;
2137 ofstrm << "#unset rmargin" << std::endl;
2138 ofstrm << "unset multiplot" << std::endl;
2139 }
2140 if(fem_maill_lin && fem_maill_quad)
2141 {
2142 ofstrm << "set terminal term" << std::endl;
2143 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_Eapp_lin_quad.\",ext)" << std::endl;
2144 ofstrm << "set lmargin 10" << std::endl;
2145 ofstrm << "set rmargin 18" << std::endl;
2146 ofstrm << "set multiplot layout 2, 1" << std::endl;
2147 ofstrm << "#set xrange [0:0.41]" << std::endl;
2148 ofstrm << "#set title \"Module de Young (GPa)\"" << std::endl;
2149 ofstrm << "unset xlabel" << std::endl;
2150 ofstrm << "unset xtic" << std::endl;
2151 ofstrm << "set ylabel \"Module de Young (GPa)\"" << std::endl;
2152 ofstrm << "set ytics nomirror" << std::endl;
2153 ofstrm << "#set yrange [4.0:5]" << std::endl;
2154 ofstrm << "set size 1,0.7" << std::endl;
2155 ofstrm << "set origin 0,0.3" << std::endl;
2156 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_DH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with linespoint pt 4 ps 1.0 lc rgb 'blue' lw 2 title \"DH lin\" ,\\" << std::endl;
2157 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.0 lc rgb 'blue' lw 2 notitle ,\\" << std::endl;
2158 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with linespoint pt 4 ps 1.0 lc rgb 'red' lw 2 title \"CH lin\" axes x1y1 ,\\" << std::endl;
2159 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.0 lc rgb 'red' lw 2 notitle ,\\" << std::endl;
2160 ofstrm << "\"resultats/data_graph/erosion_Modules_app_DH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with linespoint pt 5 ps 1.0 lc rgb 'blue' lw 2 title \"DH quad\" ,\\" << std::endl;
2161 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.0 lc rgb 'blue' lw 2 notitle ,\\" << std::endl;
2162 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5/(1000000000)) with linespoint pt 5 ps 1.0 lc rgb 'red' lw 2 title \"CH quad\" axes x1y1 ,\\" << std::endl;
2163 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.0 lc rgb 'red' lw 2 notitle" << std::endl;
2164 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
2165 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2166 ofstrm << "unset yrange" << std::endl;
2167 ofstrm << "set size 1,0.3" << std::endl;
2168 ofstrm << "set origin 0,0" << std::endl;
2169 ofstrm << "set xtics" << std::endl;
2170 ofstrm << "#set yrange [9:14]" << std::endl;
2171 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 6 ps 1.0 title \"Frac. Vol. lin\" ,\\" << std::endl;
2172 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'black' pt 6 ps 1.0 notitle ,\\" << std::endl;
2173 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 7 ps 1.0 title \"Frac. Vol. quad\" ,\\" << std::endl;
2174 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 7 ps 1.0 notitle" << std::endl;
2175 ofstrm << "unset yrange" << std::endl;
2176 ofstrm << "unset multiplot" << std::endl;
2177 }
2178
2179 ofstrm << "" << std::endl;
2180 ofstrm << "#Cumul erosion energie" << std::endl;
2181 if(fem_maill_lin)
2182 {
2183 ofstrm << "set terminal term" << std::endl;
2184 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_energie_lin.\",ext)" << std::endl;
2185 ofstrm << "set lmargin 10" << std::endl;
2186 ofstrm << "set rmargin 18" << std::endl;
2187 ofstrm << "set multiplot layout 2, 1" << std::endl;
2188 ofstrm << "#set xrange [0:0.41]" << std::endl;
2189 ofstrm << "unset xlabel" << std::endl;
2190 ofstrm << "unset xtic" << std::endl;
2191 ofstrm << "set ytics nomirror" << std::endl;
2192 ofstrm << "#set yrange [-20:5]" << std::endl;
2193 ofstrm << "set size 1,0.7" << std::endl;
2194 ofstrm << "set origin 0,0.3" << std::endl;
2195 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
2196 ofstrm << "set ylabel \"Ecart d'energie relatif (%)\"" << std::endl;
2197 ofstrm << "plot \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 4 ps 0.5 lc rgb 'red' dt 1 lw 1 title \"CH dev\",\\" << std::endl;
2198 ofstrm << "\"resultats/champ/CH/sph/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 4 ps 0.5 lc rgb 'red' dt 2 lw 1 title \"CH sph\",\\" << std::endl;
2199 ofstrm << "\"resultats/champ/DH/dev/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 4 ps 0.5 lc rgb 'blue' dt 1 lw 1 title \"DH dev\",\\" << std::endl;
2200 ofstrm << "\"resultats/champ/DH/sph/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 4 ps 0.5 lc rgb 'blue' dt 2 lw 1 title \"DH sph\"" << std::endl;
2201 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
2202 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2203 ofstrm << "unset yrange" << std::endl;
2204 ofstrm << "set size 1,0.3" << std::endl;
2205 ofstrm << "set origin 0,0" << std::endl;
2206 ofstrm << "set xtics" << std::endl;
2207 ofstrm << "#set yrange [9:14]" << std::endl;
2208 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 6 ps 1.0 title \"Frac. Vol.\" ,\\" << std::endl;
2209 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'black' pt 6 ps 1.0 notitle" << std::endl;
2210 ofstrm << "unset yrange" << std::endl;
2211 ofstrm << "unset multiplot" << std::endl;
2212 }
2213 if(fem_maill_quad)
2214 {
2215 ofstrm << "set terminal term" << std::endl;
2216 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_energie_quad.\",ext)" << std::endl;
2217 ofstrm << "set lmargin 10" << std::endl;
2218 ofstrm << "set rmargin 18" << std::endl;
2219 ofstrm << "set multiplot layout 2, 1" << std::endl;
2220 ofstrm << "#set xrange [0:0.41]" << std::endl;
2221 ofstrm << "unset xlabel" << std::endl;
2222 ofstrm << "unset xtic" << std::endl;
2223 ofstrm << "set ytics nomirror" << std::endl;
2224 ofstrm << "#set yrange [-20:5]" << std::endl;
2225 ofstrm << "set size 1,0.7" << std::endl;
2226 ofstrm << "set origin 0,0.3" << std::endl;
2227 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
2228 ofstrm << "set ylabel \"Ecart d'energie relatif (%)\"" << std::endl;
2229 ofstrm << "plot \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 5 ps 0.5 lc rgb 'red' dt 1 lw 1 title \"CH dev\",\\" << std::endl;
2230 ofstrm << "\"resultats/champ/CH/sph/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 5 ps 0.5 lc rgb 'red' dt 2 lw 1 title \"CH sph\",\\" << std::endl;
2231 ofstrm << "\"resultats/champ/DH/dev/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 5 ps 0.5 lc rgb 'blue' dt 1 lw 1 title \"DH dev\",\\" << std::endl;
2232 ofstrm << "\"resultats/champ/DH/sph/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 5 ps 0.5 lc rgb 'blue' dt 2 lw 1 title \"DH sph\"" << std::endl;
2233 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
2234 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2235 ofstrm << "unset yrange" << std::endl;
2236 ofstrm << "set size 1,0.3" << std::endl;
2237 ofstrm << "set origin 0,0" << std::endl;
2238 ofstrm << "set xtics" << std::endl;
2239 ofstrm << "#set yrange [9:14]" << std::endl;
2240 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 7 ps 1.0 title \"Frac. Vol.\" ,\\" << std::endl;
2241 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 7 ps 1.0 notitle" << std::endl;
2242 ofstrm << "unset yrange" << std::endl;
2243 ofstrm << "unset multiplot" << std::endl;
2244 }
2245 if(fem_maill_lin && fem_maill_quad)
2246 {
2247 ofstrm << "set terminal term" << std::endl;
2248 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_energie_lin_quad.\",ext)" << std::endl;
2249 ofstrm << "set lmargin 10" << std::endl;
2250 ofstrm << "set rmargin 18" << std::endl;
2251 ofstrm << "set multiplot layout 2, 1" << std::endl;
2252 ofstrm << "#set xrange [0:0.41]" << std::endl;
2253 ofstrm << "unset xlabel" << std::endl;
2254 ofstrm << "unset xtic" << std::endl;
2255 ofstrm << "set ytics nomirror" << std::endl;
2256 ofstrm << "#set yrange [-20:5]" << std::endl;
2257 ofstrm << "set size 1,0.7" << std::endl;
2258 ofstrm << "set origin 0,0.3" << std::endl;
2259 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
2260 ofstrm << "set ylabel \"Ecart d'energie relatif (%)\"" << std::endl;
2261 ofstrm << "plot \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 4 ps 0.5 lc rgb 'red' dt 1 lw 1 title \"CH dev lin\",\\" << std::endl;
2262 ofstrm << "\"resultats/champ/CH/sph/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 4 ps 0.5 lc rgb 'red' dt 2 lw 1 title \"CH sph lin\",\\" << std::endl;
2263 ofstrm << "\"resultats/champ/DH/dev/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 4 ps 0.5 lc rgb 'blue' dt 1 lw 1 title \"DH dev lin\",\\" << std::endl;
2264 ofstrm << "\"resultats/champ/DH/sph/lin/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 4 ps 0.5 lc rgb 'blue' dt 2 lw 1 title \"DH sph lin\",\\" << std::endl;
2265 ofstrm << "\"resultats/champ/CH/dev/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 5 ps 0.5 lc rgb 'red' dt 1 lw 1 title \"CH dev quad\",\\" << std::endl;
2266 ofstrm << "\"resultats/champ/CH/sph/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 5 ps 0.5 lc rgb 'red' dt 2 lw 1 title \"CH sph quad\",\\" << std::endl;
2267 ofstrm << "\"resultats/champ/DH/dev/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 5 ps 0.5 lc rgb 'blue' dt 1 lw 1 title \"DH dev quad\",\\" << std::endl;
2268 ofstrm << "\"resultats/champ/DH/sph/quad/cumul_erosion_Champ_ENERGIE_ecart.txt\" u ($1*0.02):($3*100.0) with linespoint pt 5 ps 0.5 lc rgb 'blue' dt 2 lw 1 title \"DH sph quad\"" << std::endl;
2269 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
2270 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2271 ofstrm << "unset yrange" << std::endl;
2272 ofstrm << "set size 1,0.3" << std::endl;
2273 ofstrm << "set origin 0,0" << std::endl;
2274 ofstrm << "set xtics" << std::endl;
2275 ofstrm << "#set yrange [9:14]" << std::endl;
2276 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 7 ps 1.0 title \"Frac. Vol. lin\" ,\\" << std::endl;
2277 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'black' pt 7 ps 1.0 notitle ,\\" << std::endl;
2278 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 7 ps 1.0 title \"Frac. Vol. quad\" ,\\" << std::endl;
2279 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 7 ps 1.0 notitle" << std::endl;
2280 ofstrm << "unset yrange" << std::endl;
2281 ofstrm << "unset multiplot" << std::endl;
2282 }
2283
2284 ofstrm << "" << std::endl;
2285 ofstrm << "#Cumul erosion fraction volumique" << std::endl;
2286 if(fem_maill_lin)
2287 {
2288 ofstrm << "set terminal term" << std::endl;
2289 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/cumul_erosion_fraction_volumique_lin.\",ext)" << std::endl;
2290 ofstrm << "#set xrange [0:0.41]" << std::endl;
2291 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
2292 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2293 ofstrm << "set xtics" << std::endl;
2294 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 6 ps 1.0 title \"Frac. Vol.\" ,\\" << std::endl;
2295 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'black' pt 6 ps 1.0 notitle" << std::endl;
2296 }
2297 if(fem_maill_quad)
2298 {
2299 ofstrm << "set terminal term" << std::endl;
2300 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/cumul_erosion_fraction_volumique_quad.\",ext)" << std::endl;
2301 ofstrm << "#set xrange [0:0.41]" << std::endl;
2302 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
2303 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2304 ofstrm << "set xtics" << std::endl;
2305 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 7 ps 1.0 title \"Frac. Vol.\" ,\\" << std::endl;
2306 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 7 ps 1.0 notitle" << std::endl;
2307 }
2308 if(fem_maill_lin && fem_maill_quad)
2309 {
2310 ofstrm << "set terminal term" << std::endl;
2311 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/cumul_erosion_fraction_volumique_lin_quad.\",ext)" << std::endl;
2312 ofstrm << "#set xrange [0:0.41]" << std::endl;
2313 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
2314 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2315 ofstrm << "set xtics" << std::endl;
2316 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 6 ps 1.0 title \"Frac. Vol. lin\" ,\\" << std::endl;
2317 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'black' pt 6 ps 1.0 notitle ,\\" << std::endl;
2318 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 7 ps 1.0 title \"Frac. Vol. quad\" ,\\" << std::endl;
2319 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 7 ps 1.0 notitle" << std::endl;
2320 }
2321
2322 ofstrm << "" << std::endl;
2323 ofstrm << "#Cumul erosion ecart chargement sph" << std::endl;
2324 if(fem_maill_lin)
2325 {
2326 ofstrm << "set terminal term" << std::endl;
2327 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_ecart_chargement_sph_lin.\",ext)" << std::endl;
2328 ofstrm << "set lmargin 10" << std::endl;
2329 ofstrm << "set rmargin 15" << std::endl;
2330 ofstrm << "set bmargin 2" << std::endl;
2331 ofstrm << "set multiplot layout 2, 1" << std::endl;
2332 ofstrm << "#set xrange [0:0.41]" << std::endl;
2333 ofstrm << "unset xlabel" << std::endl;
2334 ofstrm << "unset xtic" << std::endl;
2335 ofstrm << "set ytics nomirror" << std::endl;
2336 ofstrm << "set size 1,0.5" << std::endl;
2337 ofstrm << "set origin 0,0.5" << std::endl;
2338 ofstrm << "set ylabel \"Ecart de chargement (%)\"" << std::endl;
2339 ofstrm << "set xtics" << std::endl;
2340 ofstrm << "set grid" << std::endl;
2341 ofstrm << "plot \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 6 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"CH {/Symbol E}\",\\" << std::endl;
2342 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 6 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2343 ofstrm << "\"resultats/champ/CH/sph/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 8 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"CH {/Symbol S}\",\\" << std::endl;
2344 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 8 ps 1.0 lc rgb 'brown4' lw 1 notitle" << std::endl;
2345 ofstrm << "set xlabel \"Distance d'erosion d_e\" offset 0,0.2" << std::endl;
2346 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2347 ofstrm << "unset yrange" << std::endl;
2348 ofstrm << "set size 1,0.5" << std::endl;
2349 ofstrm << "set origin 0,0.03" << std::endl;
2350 ofstrm << "set bmargin 2" << std::endl;
2351 ofstrm << "plot \"resultats/champ/DH/sph/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 6 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"DH {/Symbol E}\",\\" << std::endl;
2352 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 6 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2353 ofstrm << "\"resultats/champ/DH/sph/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 8 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"DH {/Symbol S}\",\\" << std::endl;
2354 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 8 ps 1.0 lc rgb 'brown4' lw 1 notitle" << std::endl;
2355 ofstrm << "unset yrange" << std::endl;
2356 ofstrm << "unset tmargin" << std::endl;
2357 ofstrm << "unset bmargin" << std::endl;
2358 ofstrm << "unset multiplot" << std::endl;
2359 }
2360 if(fem_maill_quad)
2361 {
2362 ofstrm << "set terminal term" << std::endl;
2363 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_ecart_chargement_sph_quad.\",ext)" << std::endl;
2364 ofstrm << "set lmargin 10" << std::endl;
2365 ofstrm << "set rmargin 15" << std::endl;
2366 ofstrm << "set bmargin 2" << std::endl;
2367 ofstrm << "set multiplot layout 2, 1" << std::endl;
2368 ofstrm << "#set xrange [0:0.41]" << std::endl;
2369 ofstrm << "unset xlabel" << std::endl;
2370 ofstrm << "unset xtic" << std::endl;
2371 ofstrm << "set ytics nomirror" << std::endl;
2372 ofstrm << "set size 1,0.5" << std::endl;
2373 ofstrm << "set origin 0,0.5" << std::endl;
2374 ofstrm << "set ylabel \"Ecart de chargement (%)\"" << std::endl;
2375 ofstrm << "set xtics" << std::endl;
2376 ofstrm << "set grid" << std::endl;
2377 ofstrm << "plot \"resultats/champ/CH/sph/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 7 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"CH {/Symbol E}\",\\" << std::endl;
2378 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 7 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2379 ofstrm << "\"resultats/champ/CH/sph/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 9 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"CH {/Symbol S}\",\\" << std::endl;
2380 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 9 ps 1.0 lc rgb 'brown4' lw 1 notitle" << std::endl;
2381 ofstrm << "set xlabel \"Distance d'erosion d_e\" offset 0,0.2" << std::endl;
2382 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2383 ofstrm << "unset yrange" << std::endl;
2384 ofstrm << "set size 1,0.5" << std::endl;
2385 ofstrm << "set origin 0,0.03" << std::endl;
2386 ofstrm << "set bmargin 2" << std::endl;
2387 ofstrm << "plot \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 7 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"DH {/Symbol E}\",\\" << std::endl;
2388 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 7 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2389 ofstrm << "\"resultats/champ/DH/sph/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 9 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"DH {/Symbol S}\",\\" << std::endl;
2390 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 9 ps 1.0 lc rgb 'brown4' lw 1 notitle" << std::endl;
2391 ofstrm << "unset yrange" << std::endl;
2392 ofstrm << "unset tmargin" << std::endl;
2393 ofstrm << "unset bmargin" << std::endl;
2394 ofstrm << "unset multiplot" << std::endl;
2395 }
2396 if(fem_maill_lin && fem_maill_quad)
2397 {
2398 ofstrm << "set terminal term" << std::endl;
2399 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_ecart_chargement_sph_lin_quad.\",ext)" << std::endl;
2400 ofstrm << "set lmargin 10" << std::endl;
2401 ofstrm << "set rmargin 15" << std::endl;
2402 ofstrm << "set bmargin 2" << std::endl;
2403 ofstrm << "set multiplot layout 2, 1" << std::endl;
2404 ofstrm << "#set xrange [0:0.41]" << std::endl;
2405 ofstrm << "unset xlabel" << std::endl;
2406 ofstrm << "unset xtic" << std::endl;
2407 ofstrm << "set ytics nomirror" << std::endl;
2408 ofstrm << "set size 1,0.5" << std::endl;
2409 ofstrm << "set origin 0,0.5" << std::endl;
2410 ofstrm << "set ylabel \"Ecart de chargement (%)\"" << std::endl;
2411 ofstrm << "set xtics" << std::endl;
2412 ofstrm << "set grid" << std::endl;
2413 ofstrm << "plot \"resultats/champ/CH/sph/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 6 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"CH {/Symbol E} lin\",\\" << std::endl;
2414 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 6 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2415 ofstrm << "\"resultats/champ/CH/sph/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 8 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"CH {/Symbol S} lin\",\\" << std::endl;
2416 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 8 ps 1.0 lc rgb 'brown4' lw 1 notitle ,\\" << std::endl;
2417 ofstrm << "\"resultats/champ/CH/sph/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 7 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"CH {/Symbol E} quad\",\\" << std::endl;
2418 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 7 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2419 ofstrm << "\"resultats/champ/CH/sph/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 9 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"CH {/Symbol S} quad\",\\" << std::endl;
2420 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 9 ps 1.0 lc rgb 'brown4' lw 1 notitle" << std::endl;
2421 ofstrm << "set xlabel \"Distance d'erosion d_e\" offset 0,0.2" << std::endl;
2422 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2423 ofstrm << "unset yrange" << std::endl;
2424 ofstrm << "set size 1,0.5" << std::endl;
2425 ofstrm << "set origin 0,0.03" << std::endl;
2426 ofstrm << "set bmargin 2" << std::endl;
2427 ofstrm << "plot \"resultats/champ/DH/sph/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 7 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"DH {/Symbol E} lin\",\\" << std::endl;
2428 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 7 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2429 ofstrm << "\"resultats/champ/DH/sph/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 9 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"DH {/Symbol S} lin\",\\" << std::endl;
2430 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 9 ps 1.0 lc rgb 'brown4' lw 1 notitle ,\\" << std::endl;
2431 ofstrm << "\"resultats/champ/DH/sph/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 6 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"DH {/Symbol E} quad\",\\" << std::endl;
2432 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 6 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2433 ofstrm << "\"resultats/champ/DH/sph/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_sph.txt\" u ($1*0.02):($3*100.0) with linespoint pt 8 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"DH {/Symbol S} quad\",\\" << std::endl;
2434 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 8 ps 1.0 lc rgb 'brown4' lw 1 notitle" << std::endl;
2435 ofstrm << "unset yrange" << std::endl;
2436 ofstrm << "unset tmargin" << std::endl;
2437 ofstrm << "unset bmargin" << std::endl;
2438 ofstrm << "unset multiplot" << std::endl;
2439 }
2440
2441 ofstrm << "" << std::endl;
2442 ofstrm << "#Cumul erosion ecart chargement dev" << std::endl;
2443 if(fem_maill_lin)
2444 {
2445 ofstrm << "set terminal term" << std::endl;
2446 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_ecart_chargement_dev_lin.\",ext)" << std::endl;
2447 ofstrm << "set lmargin 10" << std::endl;
2448 ofstrm << "set rmargin 15" << std::endl;
2449 ofstrm << "set bmargin 2" << std::endl;
2450 ofstrm << "set multiplot layout 2, 1" << std::endl;
2451 ofstrm << "#set xrange [0:0.41]" << std::endl;
2452 ofstrm << "unset xlabel" << std::endl;
2453 ofstrm << "unset xtic" << std::endl;
2454 ofstrm << "set ytics nomirror" << std::endl;
2455 ofstrm << "set size 1,0.5" << std::endl;
2456 ofstrm << "set origin 0,0.5" << std::endl;
2457 ofstrm << "set ylabel \"Ecart de chargement (%)\"" << std::endl;
2458 ofstrm << "set xtics" << std::endl;
2459 ofstrm << "set grid" << std::endl;
2460 ofstrm << "plot \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 6 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"CH {/Symbol E}\",\\" << std::endl;
2461 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 6 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2462 ofstrm << "\"resultats/champ/CH/dev/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 8 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"CH {/Symbol S}\",\\" << std::endl;
2463 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 8 ps 1.0 lc rgb 'brown4' lw 1 notitle" << std::endl;
2464 ofstrm << "set xlabel \"Distance d'erosion d_e\" offset 0,0.2" << std::endl;
2465 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2466 ofstrm << "unset yrange" << std::endl;
2467 ofstrm << "set size 1,0.5" << std::endl;
2468 ofstrm << "set origin 0,0.03" << std::endl;
2469 ofstrm << "set bmargin 2" << std::endl;
2470 ofstrm << "plot \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 6 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"DH {/Symbol E}\",\\" << std::endl;
2471 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 6 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2472 ofstrm << "\"resultats/champ/DH/dev/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 8 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"DH {/Symbol S}\",\\" << std::endl;
2473 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 8 ps 1.0 lc rgb 'brown4' lw 1 notitle" << std::endl;
2474 ofstrm << "unset yrange" << std::endl;
2475 ofstrm << "unset tmargin" << std::endl;
2476 ofstrm << "unset bmargin" << std::endl;
2477 ofstrm << "unset multiplot" << std::endl;
2478 }
2479 if(fem_maill_quad)
2480 {
2481 ofstrm << "set terminal term" << std::endl;
2482 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_ecart_chargement_dev_quad.\",ext)" << std::endl;
2483 ofstrm << "set lmargin 10" << std::endl;
2484 ofstrm << "set rmargin 15" << std::endl;
2485 ofstrm << "set bmargin 2" << std::endl;
2486 ofstrm << "set multiplot layout 2, 1" << std::endl;
2487 ofstrm << "#set xrange [0:0.41]" << std::endl;
2488 ofstrm << "unset xlabel" << std::endl;
2489 ofstrm << "unset xtic" << std::endl;
2490 ofstrm << "set ytics nomirror" << std::endl;
2491 ofstrm << "set size 1,0.5" << std::endl;
2492 ofstrm << "set origin 0,0.5" << std::endl;
2493 ofstrm << "set ylabel \"Ecart de chargement (%)\"" << std::endl;
2494 ofstrm << "set xtics" << std::endl;
2495 ofstrm << "set grid" << std::endl;
2496 ofstrm << "plot \"resultats/champ/CH/dev/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 7 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"CH {/Symbol E}\",\\" << std::endl;
2497 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 7 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2498 ofstrm << "\"resultats/champ/CH/dev/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 9 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"CH {/Symbol S}\",\\" << std::endl;
2499 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 9 ps 1.0 lc rgb 'brown4' lw 1 notitle" << std::endl;
2500 ofstrm << "set xlabel \"Distance d'erosion d_e\" offset 0,0.2" << std::endl;
2501 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2502 ofstrm << "unset yrange" << std::endl;
2503 ofstrm << "set size 1,0.5" << std::endl;
2504 ofstrm << "set origin 0,0.03" << std::endl;
2505 ofstrm << "set bmargin 2" << std::endl;
2506 ofstrm << "plot \"resultats/champ/DH/dev/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 7 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"DH {/Symbol E}\",\\" << std::endl;
2507 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 7 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2508 ofstrm << "\"resultats/champ/DH/dev/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 9 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"DH {/Symbol S}\",\\" << std::endl;
2509 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 9 ps 1.0 lc rgb 'brown4' lw 1 notitle" << std::endl;
2510 ofstrm << "unset yrange" << std::endl;
2511 ofstrm << "unset tmargin" << std::endl;
2512 ofstrm << "unset bmargin" << std::endl;
2513 ofstrm << "unset multiplot" << std::endl;
2514 }
2515 if(fem_maill_lin && fem_maill_quad)
2516 {
2517 ofstrm << "set terminal term" << std::endl;
2518 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_ecart_chargement_dev_lin_quad.\",ext)" << std::endl;
2519 ofstrm << "set lmargin 10" << std::endl;
2520 ofstrm << "set rmargin 15" << std::endl;
2521 ofstrm << "set bmargin 2" << std::endl;
2522 ofstrm << "set multiplot layout 2, 1" << std::endl;
2523 ofstrm << "#set xrange [0:0.41]" << std::endl;
2524 ofstrm << "unset xlabel" << std::endl;
2525 ofstrm << "unset xtic" << std::endl;
2526 ofstrm << "set ytics nomirror" << std::endl;
2527 ofstrm << "set size 1,0.5" << std::endl;
2528 ofstrm << "set origin 0,0.5" << std::endl;
2529 ofstrm << "set ylabel \"Ecart de chargement (%)\"" << std::endl;
2530 ofstrm << "set xtics" << std::endl;
2531 ofstrm << "set grid" << std::endl;
2532 ofstrm << "plot \"resultats/champ/CH/dev/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 6 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"CH {/Symbol E} lin\",\\" << std::endl;
2533 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 6 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2534 ofstrm << "\"resultats/champ/CH/dev/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 8 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"CH {/Symbol S} lin\",\\" << std::endl;
2535 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 8 ps 1.0 lc rgb 'brown4' lw 1 notitle ,\\" << std::endl;
2536 ofstrm << "\"resultats/champ/CH/dev/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 7 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"CH {/Symbol E} quad\",\\" << std::endl;
2537 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 7 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2538 ofstrm << "\"resultats/champ/CH/dev/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 9 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"CH {/Symbol S} quad\",\\" << std::endl;
2539 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 9 ps 1.0 lc rgb 'brown4' lw 1 notitle" << std::endl;
2540 ofstrm << "set xlabel \"Distance d'erosion d_e\" offset 0,0.2" << std::endl;
2541 ofstrm << "set ylabel \"Fraction volumique (%)\"" << std::endl;
2542 ofstrm << "unset yrange" << std::endl;
2543 ofstrm << "set size 1,0.5" << std::endl;
2544 ofstrm << "set origin 0,0.03" << std::endl;
2545 ofstrm << "set bmargin 2" << std::endl;
2546 ofstrm << "plot \"resultats/champ/DH/dev/lin/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 6 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"DH {/Symbol E} lin\",\\" << std::endl;
2547 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 6 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2548 ofstrm << "\"resultats/champ/DH/dev/lin/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 8 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"DH {/Symbol S} lin\",\\" << std::endl;
2549 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 8 ps 1.0 lc rgb 'brown4' lw 1 notitle ,\\" << std::endl;
2550 ofstrm << "\"resultats/champ/DH/dev/quad/cumul_erosion_Champ_EPSILON_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 7 ps 1.0 lc rgb 'web-green' dt 1 lw 1 title \"DH {/Symbol E} quad\",\\" << std::endl;
2551 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 7 ps 1.0 lc rgb 'web-green' lw 1 notitle,\\" << std::endl;
2552 ofstrm << "\"resultats/champ/DH/dev/quad/cumul_erosion_Champ_SIGMA_ecart_chargement_dev.txt\" u ($1*0.02):($3*100.0) with linespoint pt 9 ps 1.0 lc rgb 'brown4' dt 2 lw 1 title \"DH {/Symbol S} quad\",\\" << std::endl;
2553 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 9 ps 1.0 lc rgb 'brown4' lw 1 notitle" << std::endl;
2554 ofstrm << "unset yrange" << std::endl;
2555 ofstrm << "unset tmargin" << std::endl;
2556 ofstrm << "unset bmargin" << std::endl;
2557 ofstrm << "unset multiplot" << std::endl;
2558 }
2559
2560 ofstrm << "" << std::endl;
2561 ofstrm << "#Distribution SIGMA sph xx" << std::endl;
2562 if(fem_maill_lin)
2563 {
2564 ofstrm << "set terminal term" << std::endl;
2565 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_xx_lin.\",ext)" << std::endl;
2566 ofstrm << "set lmargin 10" << std::endl;
2567 ofstrm << "set rmargin 25" << std::endl;
2568 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2569 ofstrm << "set multiplot layout 3, 1" << std::endl;
2570 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2571 ofstrm << "unset xlabel" << std::endl;
2572 ofstrm << "unset xtic" << std::endl;
2573 ofstrm << "set xtics" << std::endl;
2574 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 'blue' dt 2 lw 2 title \"DH σ_{xx}\",\\" << std::endl;
2575 ofstrm << "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 \"CH σ_{xx}\"" << std::endl;
2576 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xx} particules\",\\" << std::endl;
2577 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xx} particules\"" << std::endl;
2578 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xx} matrice\",\\" << std::endl;
2579 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xx} matrice\"" << std::endl;
2580 ofstrm << "unset lmargin" << std::endl;
2581 ofstrm << "unset rmargin" << std::endl;
2582 ofstrm << "unset multiplot" << std::endl;
2583 }
2584 if(fem_maill_quad)
2585 {
2586 ofstrm << "set terminal term" << std::endl;
2587 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_xx_quad.\",ext)" << std::endl;
2588 ofstrm << "set lmargin 10" << std::endl;
2589 ofstrm << "set rmargin 25" << std::endl;
2590 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2591 ofstrm << "set multiplot layout 3, 1" << std::endl;
2592 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2593 ofstrm << "unset xlabel" << std::endl;
2594 ofstrm << "unset xtic" << std::endl;
2595 ofstrm << "set xtics" << std::endl;
2596 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 'blue' dt 1 lw 2 title \"DH σ_{xx}\",\\" << std::endl;
2597 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 \"CH σ_{xx}\"" << std::endl;
2598 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xx} particules\",\\" << std::endl;
2599 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xx} particules\"" << std::endl;
2600 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xx} matrice\",\\" << std::endl;
2601 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xx} matrice\"" << std::endl;
2602 ofstrm << "unset lmargin" << std::endl;
2603 ofstrm << "unset rmargin" << std::endl;
2604 ofstrm << "unset multiplot" << std::endl;
2605 }
2606 if(fem_maill_lin && fem_maill_quad)
2607 {
2608 ofstrm << "set terminal term" << std::endl;
2609 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_xx_lin_quad.\",ext)" << std::endl;
2610 ofstrm << "set lmargin 10" << std::endl;
2611 ofstrm << "set rmargin 25" << std::endl;
2612 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2613 ofstrm << "set multiplot layout 3, 1" << std::endl;
2614 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2615 ofstrm << "unset xlabel" << std::endl;
2616 ofstrm << "unset xtic" << std::endl;
2617 ofstrm << "set xtics" << std::endl;
2618 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 'blue' dt 2 lw 2 title \"DH σ_{xx} lin\",\\" << std::endl;
2619 ofstrm << "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 \"CH σ_{xx} lin\" ,\\" << std::endl;
2620 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xx} quad\",\\" << std::endl;
2621 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 \"CH σ_{xx} quad\"" << std::endl;
2622 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xx} particules lin\",\\" << std::endl;
2623 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xx} particules lin\" ,\\" << std::endl;
2624 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xx} particules quad\",\\" << std::endl;
2625 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xx} particules quad\"" << std::endl;
2626 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xx} matrice lin\",\\" << std::endl;
2627 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xx} matrice lin\",\\" << std::endl;
2628 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xx} matrice quad\",\\" << std::endl;
2629 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xx} matrice quad\"" << std::endl;
2630 ofstrm << "unset lmargin" << std::endl;
2631 ofstrm << "unset rmargin" << std::endl;
2632 ofstrm << "unset multiplot" << std::endl;
2633 }
2634
2635 ofstrm << "" << std::endl;
2636 ofstrm << "#Distribution SIGMA sph yy" << std::endl;
2637 if(fem_maill_lin)
2638 {
2639 ofstrm << "set terminal term" << std::endl;
2640 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_yy_lin.\",ext)" << std::endl;
2641 ofstrm << "set lmargin 10" << std::endl;
2642 ofstrm << "set rmargin 25" << std::endl;
2643 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2644 ofstrm << "set multiplot layout 3, 1" << std::endl;
2645 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2646 ofstrm << "unset xlabel" << std::endl;
2647 ofstrm << "unset xtic" << std::endl;
2648 ofstrm << "set xtics" << std::endl;
2649 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yy}\",\\" << std::endl;
2650 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yy}\"" << std::endl;
2651 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yy} particules\",\\" << std::endl;
2652 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yy} particules\"" << std::endl;
2653 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yy} matrice\",\\" << std::endl;
2654 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yy} matrice\"" << std::endl;
2655 ofstrm << "unset lmargin" << std::endl;
2656 ofstrm << "unset rmargin" << std::endl;
2657 ofstrm << "unset multiplot" << std::endl;
2658 }
2659 if(fem_maill_quad)
2660 {
2661 ofstrm << "set terminal term" << std::endl;
2662 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_yy_quad.\",ext)" << std::endl;
2663 ofstrm << "set lmargin 10" << std::endl;
2664 ofstrm << "set rmargin 25" << std::endl;
2665 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2666 ofstrm << "set multiplot layout 3, 1" << std::endl;
2667 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2668 ofstrm << "unset xlabel" << std::endl;
2669 ofstrm << "unset xtic" << std::endl;
2670 ofstrm << "set xtics" << std::endl;
2671 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yy}\",\\" << std::endl;
2672 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yy}\"" << std::endl;
2673 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yy} particules\",\\" << std::endl;
2674 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yy} particules\"" << std::endl;
2675 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yy} matrice\",\\" << std::endl;
2676 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yy} matrice\"" << std::endl;
2677 ofstrm << "unset lmargin" << std::endl;
2678 ofstrm << "unset rmargin" << std::endl;
2679 ofstrm << "unset multiplot" << std::endl;
2680 }
2681 if(fem_maill_lin && fem_maill_quad)
2682 {
2683 ofstrm << "set terminal term" << std::endl;
2684 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_yy_lin_quad.\",ext)" << std::endl;
2685 ofstrm << "set lmargin 10" << std::endl;
2686 ofstrm << "set rmargin 25" << std::endl;
2687 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2688 ofstrm << "set multiplot layout 3, 1" << std::endl;
2689 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2690 ofstrm << "unset xlabel" << std::endl;
2691 ofstrm << "unset xtic" << std::endl;
2692 ofstrm << "set xtics" << std::endl;
2693 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yy} lin\",\\" << std::endl;
2694 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yy} lin\" ,\\" << std::endl;
2695 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yy} quad\",\\" << std::endl;
2696 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yy} quad\"" << std::endl;
2697 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yy} particules lin\",\\" << std::endl;
2698 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yy} particules lin\" ,\\" << std::endl;
2699 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yy} particules quad\",\\" << std::endl;
2700 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yy} particules quad\"" << std::endl;
2701 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yy} matrice lin\",\\" << std::endl;
2702 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yy} matrice lin\",\\" << std::endl;
2703 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yy} matrice quad\",\\" << std::endl;
2704 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yy} matrice quad\"" << std::endl;
2705 ofstrm << "unset lmargin" << std::endl;
2706 ofstrm << "unset rmargin" << std::endl;
2707 ofstrm << "unset multiplot" << std::endl;
2708 }
2709
2710 ofstrm << "" << std::endl;
2711 ofstrm << "#Distribution SIGMA sph zz" << std::endl;
2712 if(fem_maill_lin)
2713 {
2714 ofstrm << "set terminal term" << std::endl;
2715 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_zz_lin.\",ext)" << std::endl;
2716 ofstrm << "set lmargin 10" << std::endl;
2717 ofstrm << "set rmargin 25" << std::endl;
2718 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2719 ofstrm << "set multiplot layout 3, 1" << std::endl;
2720 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2721 ofstrm << "unset xlabel" << std::endl;
2722 ofstrm << "unset xtic" << std::endl;
2723 ofstrm << "set xtics" << std::endl;
2724 ofstrm << "plot 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 \"DH σ_{zz}\",\\" << std::endl;
2725 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{zz}\"" << std::endl;
2726 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{zz} particules\",\\" << std::endl;
2727 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{zz} particules\"" << std::endl;
2728 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{zz} matrice\",\\" << std::endl;
2729 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{zz} matrice\"" << std::endl;
2730 ofstrm << "unset lmargin" << std::endl;
2731 ofstrm << "unset rmargin" << std::endl;
2732 ofstrm << "unset multiplot" << std::endl;
2733 }
2734 if(fem_maill_quad)
2735 {
2736 ofstrm << "set terminal term" << std::endl;
2737 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_zz_quad.\",ext)" << std::endl;
2738 ofstrm << "set lmargin 10" << std::endl;
2739 ofstrm << "set rmargin 25" << std::endl;
2740 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2741 ofstrm << "set multiplot layout 3, 1" << std::endl;
2742 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2743 ofstrm << "unset xlabel" << std::endl;
2744 ofstrm << "unset xtic" << std::endl;
2745 ofstrm << "set xtics" << std::endl;
2746 ofstrm << "plot 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 \"DH σ_{zz}\",\\" << std::endl;
2747 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{zz}\"" << std::endl;
2748 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{zz} particules\",\\" << std::endl;
2749 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{zz} particules\"" << std::endl;
2750 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{zz} matrice\",\\" << std::endl;
2751 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{zz} matrice\"" << std::endl;
2752 ofstrm << "unset lmargin" << std::endl;
2753 ofstrm << "unset rmargin" << std::endl;
2754 ofstrm << "unset multiplot" << std::endl;
2755 }
2756 if(fem_maill_lin && fem_maill_quad)
2757 {
2758 ofstrm << "set terminal term" << std::endl;
2759 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_zz_lin_quad.\",ext)" << std::endl;
2760 ofstrm << "set lmargin 10" << std::endl;
2761 ofstrm << "set rmargin 25" << std::endl;
2762 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2763 ofstrm << "set multiplot layout 3, 1" << std::endl;
2764 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2765 ofstrm << "unset xlabel" << std::endl;
2766 ofstrm << "unset xtic" << std::endl;
2767 ofstrm << "set xtics" << std::endl;
2768 ofstrm << "plot 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 \"DH σ_{zz} lin\",\\" << std::endl;
2769 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{zz} lin\" ,\\" << std::endl;
2770 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 \"DH σ_{zz} quad\",\\" << std::endl;
2771 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{zz} quad\"" << std::endl;
2772 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{zz} particules lin\",\\" << std::endl;
2773 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{zz} particules lin\" ,\\" << std::endl;
2774 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{zz} particules quad\",\\" << std::endl;
2775 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{zz} particules quad\"" << std::endl;
2776 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{zz} matrice lin\",\\" << std::endl;
2777 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{zz} matrice lin\",\\" << std::endl;
2778 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{zz} matrice quad\",\\" << std::endl;
2779 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{zz} matrice quad\"" << std::endl;
2780 ofstrm << "unset lmargin" << std::endl;
2781 ofstrm << "unset rmargin" << std::endl;
2782 ofstrm << "unset multiplot" << std::endl;
2783 }
2784
2785 ofstrm << "" << std::endl;
2786 ofstrm << "#Distribution SIGMA sph xy" << std::endl;
2787 if(fem_maill_lin)
2788 {
2789 ofstrm << "set terminal term" << std::endl;
2790 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_xy_lin.\",ext)" << std::endl;
2791 ofstrm << "set lmargin 10" << std::endl;
2792 ofstrm << "set rmargin 25" << std::endl;
2793 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2794 ofstrm << "set multiplot layout 3, 1" << std::endl;
2795 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2796 ofstrm << "unset xlabel" << std::endl;
2797 ofstrm << "unset xtic" << std::endl;
2798 ofstrm << "set xtics" << std::endl;
2799 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xy}\",\\" << std::endl;
2800 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xy}\"" << std::endl;
2801 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xy} particules\",\\" << std::endl;
2802 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xy} particules\"" << std::endl;
2803 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xy} matrice\",\\" << std::endl;
2804 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xy} matrice\"" << std::endl;
2805 ofstrm << "unset lmargin" << std::endl;
2806 ofstrm << "unset rmargin" << std::endl;
2807 ofstrm << "unset multiplot" << std::endl;
2808 }
2809 if(fem_maill_quad)
2810 {
2811 ofstrm << "set terminal term" << std::endl;
2812 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_xy_quad.\",ext)" << std::endl;
2813 ofstrm << "set lmargin 10" << std::endl;
2814 ofstrm << "set rmargin 25" << std::endl;
2815 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2816 ofstrm << "set multiplot layout 3, 1" << std::endl;
2817 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2818 ofstrm << "unset xlabel" << std::endl;
2819 ofstrm << "unset xtic" << std::endl;
2820 ofstrm << "set xtics" << std::endl;
2821 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xy}\",\\" << std::endl;
2822 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xy}\"" << std::endl;
2823 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xy} particules\",\\" << std::endl;
2824 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xy} particules\"" << std::endl;
2825 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xy} matrice\",\\" << std::endl;
2826 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xy} matrice\"" << std::endl;
2827 ofstrm << "unset lmargin" << std::endl;
2828 ofstrm << "unset rmargin" << std::endl;
2829 ofstrm << "unset multiplot" << std::endl;
2830 }
2831 if(fem_maill_lin && fem_maill_quad)
2832 {
2833 ofstrm << "set terminal term" << std::endl;
2834 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_xy_lin_quad.\",ext)" << std::endl;
2835 ofstrm << "set lmargin 10" << std::endl;
2836 ofstrm << "set rmargin 25" << std::endl;
2837 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2838 ofstrm << "set multiplot layout 3, 1" << std::endl;
2839 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2840 ofstrm << "unset xlabel" << std::endl;
2841 ofstrm << "unset xtic" << std::endl;
2842 ofstrm << "set xtics" << std::endl;
2843 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xy} lin\",\\" << std::endl;
2844 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xy} lin\" ,\\" << std::endl;
2845 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xy} quad\",\\" << std::endl;
2846 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xy} quad\"" << std::endl;
2847 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xy} particules lin\",\\" << std::endl;
2848 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xy} particules lin\" ,\\" << std::endl;
2849 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xy} particules quad\",\\" << std::endl;
2850 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xy} particules quad\"" << std::endl;
2851 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xy} matrice lin\",\\" << std::endl;
2852 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xy} matrice lin\",\\" << std::endl;
2853 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xy} matrice quad\",\\" << std::endl;
2854 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xy} matrice quad\"" << std::endl;
2855 ofstrm << "unset lmargin" << std::endl;
2856 ofstrm << "unset rmargin" << std::endl;
2857 ofstrm << "unset multiplot" << std::endl;
2858 }
2859
2860 ofstrm << "" << std::endl;
2861 ofstrm << "#Distribution SIGMA sph yz" << std::endl;
2862 if(fem_maill_lin)
2863 {
2864 ofstrm << "set terminal term" << std::endl;
2865 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_yz_lin.\",ext)" << std::endl;
2866 ofstrm << "set lmargin 10" << std::endl;
2867 ofstrm << "set rmargin 25" << std::endl;
2868 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2869 ofstrm << "set multiplot layout 3, 1" << std::endl;
2870 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2871 ofstrm << "unset xlabel" << std::endl;
2872 ofstrm << "unset xtic" << std::endl;
2873 ofstrm << "set xtics" << std::endl;
2874 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yz}\",\\" << std::endl;
2875 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yz}\"" << std::endl;
2876 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yz} particules\",\\" << std::endl;
2877 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yz} particules\"" << std::endl;
2878 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yz} matrice\",\\" << std::endl;
2879 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yz} matrice\"" << std::endl;
2880 ofstrm << "unset lmargin" << std::endl;
2881 ofstrm << "unset rmargin" << std::endl;
2882 ofstrm << "unset multiplot" << std::endl;
2883 }
2884 if(fem_maill_quad)
2885 {
2886 ofstrm << "set terminal term" << std::endl;
2887 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_yz_quad.\",ext)" << std::endl;
2888 ofstrm << "set lmargin 10" << std::endl;
2889 ofstrm << "set rmargin 25" << std::endl;
2890 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2891 ofstrm << "set multiplot layout 3, 1" << std::endl;
2892 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2893 ofstrm << "unset xlabel" << std::endl;
2894 ofstrm << "unset xtic" << std::endl;
2895 ofstrm << "set xtics" << std::endl;
2896 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yz}\",\\" << std::endl;
2897 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yz}\"" << std::endl;
2898 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yz} particules\",\\" << std::endl;
2899 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yz} particules\"" << std::endl;
2900 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yz} matrice\",\\" << std::endl;
2901 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yz} matrice\"" << std::endl;
2902 ofstrm << "unset lmargin" << std::endl;
2903 ofstrm << "unset rmargin" << std::endl;
2904 ofstrm << "unset multiplot" << std::endl;
2905 }
2906 if(fem_maill_lin && fem_maill_quad)
2907 {
2908 ofstrm << "set terminal term" << std::endl;
2909 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_yz_lin_quad.\",ext)" << std::endl;
2910 ofstrm << "set lmargin 10" << std::endl;
2911 ofstrm << "set rmargin 25" << std::endl;
2912 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2913 ofstrm << "set multiplot layout 3, 1" << std::endl;
2914 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2915 ofstrm << "unset xlabel" << std::endl;
2916 ofstrm << "unset xtic" << std::endl;
2917 ofstrm << "set xtics" << std::endl;
2918 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yz} lin\",\\" << std::endl;
2919 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yz} lin\" ,\\" << std::endl;
2920 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yz} quad\",\\" << std::endl;
2921 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yz} quad\"" << std::endl;
2922 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yz} particules lin\",\\" << std::endl;
2923 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yz} particules lin\" ,\\" << std::endl;
2924 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yz} particules quad\",\\" << std::endl;
2925 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yz} particules quad\"" << std::endl;
2926 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yz} matrice lin\",\\" << std::endl;
2927 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yz} matrice lin\",\\" << std::endl;
2928 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yz} matrice quad\",\\" << std::endl;
2929 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yz} matrice quad\"" << std::endl;
2930 ofstrm << "unset lmargin" << std::endl;
2931 ofstrm << "unset rmargin" << std::endl;
2932 ofstrm << "unset multiplot" << std::endl;
2933 }
2934
2935 ofstrm << "" << std::endl;
2936 ofstrm << "#Distribution SIGMA sph xz" << std::endl;
2937 if(fem_maill_lin)
2938 {
2939 ofstrm << "set terminal term" << std::endl;
2940 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_xz_lin.\",ext)" << std::endl;
2941 ofstrm << "set lmargin 10" << std::endl;
2942 ofstrm << "set rmargin 25" << std::endl;
2943 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2944 ofstrm << "set multiplot layout 3, 1" << std::endl;
2945 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2946 ofstrm << "unset xlabel" << std::endl;
2947 ofstrm << "unset xtic" << std::endl;
2948 ofstrm << "set xtics" << std::endl;
2949 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xz}\",\\" << std::endl;
2950 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xz}\"" << std::endl;
2951 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xz} particules\",\\" << std::endl;
2952 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xz} particules\"" << std::endl;
2953 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xz} matrice\",\\" << std::endl;
2954 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xz} matrice\"" << std::endl;
2955 ofstrm << "unset lmargin" << std::endl;
2956 ofstrm << "unset rmargin" << std::endl;
2957 ofstrm << "unset multiplot" << std::endl;
2958 }
2959 if(fem_maill_quad)
2960 {
2961 ofstrm << "set terminal term" << std::endl;
2962 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_xz_quad.\",ext)" << std::endl;
2963 ofstrm << "set lmargin 10" << std::endl;
2964 ofstrm << "set rmargin 25" << std::endl;
2965 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2966 ofstrm << "set multiplot layout 3, 1" << std::endl;
2967 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2968 ofstrm << "unset xlabel" << std::endl;
2969 ofstrm << "unset xtic" << std::endl;
2970 ofstrm << "set xtics" << std::endl;
2971 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xz}\",\\" << std::endl;
2972 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xz}\"" << std::endl;
2973 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xz} particules\",\\" << std::endl;
2974 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xz} particules\"" << std::endl;
2975 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xz} matrice\",\\" << std::endl;
2976 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xz} matrice\"" << std::endl;
2977 ofstrm << "unset lmargin" << std::endl;
2978 ofstrm << "unset rmargin" << std::endl;
2979 ofstrm << "unset multiplot" << std::endl;
2980 }
2981 if(fem_maill_lin && fem_maill_quad)
2982 {
2983 ofstrm << "set terminal term" << std::endl;
2984 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_sph_xz_lin_quad.\",ext)" << std::endl;
2985 ofstrm << "set lmargin 10" << std::endl;
2986 ofstrm << "set rmargin 25" << std::endl;
2987 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
2988 ofstrm << "set multiplot layout 3, 1" << std::endl;
2989 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
2990 ofstrm << "unset xlabel" << std::endl;
2991 ofstrm << "unset xtic" << std::endl;
2992 ofstrm << "set xtics" << std::endl;
2993 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xz} lin\",\\" << std::endl;
2994 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xz} lin\" ,\\" << std::endl;
2995 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xz} quad\",\\" << std::endl;
2996 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xz} quad\"" << std::endl;
2997 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xz} particules lin\",\\" << std::endl;
2998 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xz} particules lin\" ,\\" << std::endl;
2999 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xz} particules quad\",\\" << std::endl;
3000 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xz} particules quad\"" << std::endl;
3001 ofstrm << "plot sprintf(\"resultats/champ/DH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xz} matrice lin\",\\" << std::endl;
3002 ofstrm << "sprintf(\"resultats/champ/CH/sph/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xz} matrice lin\",\\" << std::endl;
3003 ofstrm << "sprintf(\"resultats/champ/DH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xz} matrice quad\",\\" << std::endl;
3004 ofstrm << "sprintf(\"resultats/champ/CH/sph/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xz} matrice quad\"" << std::endl;
3005 ofstrm << "unset lmargin" << std::endl;
3006 ofstrm << "unset rmargin" << std::endl;
3007 ofstrm << "unset multiplot" << std::endl;
3008 }
3009
3010 ofstrm << "" << std::endl;
3011 ofstrm << "#Distribution SIGMA dev xx" << std::endl;
3012 if(fem_maill_lin)
3013 {
3014 ofstrm << "set terminal term" << std::endl;
3015 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_xx_lin.\",ext)" << std::endl;
3016 ofstrm << "set lmargin 10" << std::endl;
3017 ofstrm << "set rmargin 25" << std::endl;
3018 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3019 ofstrm << "set multiplot layout 3, 1" << std::endl;
3020 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3021 ofstrm << "unset xlabel" << std::endl;
3022 ofstrm << "unset xtic" << std::endl;
3023 ofstrm << "set xtics" << std::endl;
3024 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 'blue' dt 2 lw 2 title \"DH σ_{xx}\",\\" << std::endl;
3025 ofstrm << "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 \"CH σ_{xx}\"" << std::endl;
3026 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xx} particules\",\\" << std::endl;
3027 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xx} particules\"" << std::endl;
3028 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xx} matrice\",\\" << std::endl;
3029 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xx} matrice\"" << std::endl;
3030 ofstrm << "unset lmargin" << std::endl;
3031 ofstrm << "unset rmargin" << std::endl;
3032 ofstrm << "unset multiplot" << std::endl;
3033 }
3034 if(fem_maill_quad)
3035 {
3036 ofstrm << "set terminal term" << std::endl;
3037 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_xx_quad.\",ext)" << std::endl;
3038 ofstrm << "set lmargin 10" << std::endl;
3039 ofstrm << "set rmargin 25" << std::endl;
3040 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3041 ofstrm << "set multiplot layout 3, 1" << std::endl;
3042 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3043 ofstrm << "unset xlabel" << std::endl;
3044 ofstrm << "unset xtic" << std::endl;
3045 ofstrm << "set xtics" << std::endl;
3046 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 'blue' dt 1 lw 2 title \"DH σ_{xx}\",\\" << std::endl;
3047 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 \"CH σ_{xx}\"" << std::endl;
3048 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xx} particules\",\\" << std::endl;
3049 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xx} particules\"" << std::endl;
3050 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xx} matrice\",\\" << std::endl;
3051 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xx} matrice\"" << std::endl;
3052 ofstrm << "unset lmargin" << std::endl;
3053 ofstrm << "unset rmargin" << std::endl;
3054 ofstrm << "unset multiplot" << std::endl;
3055 }
3056 if(fem_maill_lin && fem_maill_quad)
3057 {
3058 ofstrm << "set terminal term" << std::endl;
3059 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_xx_lin_quad.\",ext)" << std::endl;
3060 ofstrm << "set lmargin 10" << std::endl;
3061 ofstrm << "set rmargin 25" << std::endl;
3062 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3063 ofstrm << "set multiplot layout 3, 1" << std::endl;
3064 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3065 ofstrm << "unset xlabel" << std::endl;
3066 ofstrm << "unset xtic" << std::endl;
3067 ofstrm << "set xtics" << std::endl;
3068 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 'blue' dt 2 lw 2 title \"DH σ_{xx} lin\",\\" << std::endl;
3069 ofstrm << "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 \"CH σ_{xx} lin\" ,\\" << std::endl;
3070 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xx} quad\",\\" << std::endl;
3071 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 \"CH σ_{xx} quad\"" << std::endl;
3072 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xx} particules lin\",\\" << std::endl;
3073 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xx} particules lin\" ,\\" << std::endl;
3074 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xx} particules quad\",\\" << std::endl;
3075 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xx} particules quad\"" << std::endl;
3076 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xx} matrice lin\",\\" << std::endl;
3077 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xx} matrice lin\",\\" << std::endl;
3078 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xx} matrice quad\",\\" << std::endl;
3079 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_0.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xx} matrice quad\"" << std::endl;
3080 ofstrm << "unset lmargin" << std::endl;
3081 ofstrm << "unset rmargin" << std::endl;
3082 ofstrm << "unset multiplot" << std::endl;
3083 }
3084
3085 ofstrm << "" << std::endl;
3086 ofstrm << "#Distribution SIGMA dev yy" << std::endl;
3087 if(fem_maill_lin)
3088 {
3089 ofstrm << "set terminal term" << std::endl;
3090 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_yy_lin.\",ext)" << std::endl;
3091 ofstrm << "set lmargin 10" << std::endl;
3092 ofstrm << "set rmargin 25" << std::endl;
3093 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3094 ofstrm << "set multiplot layout 3, 1" << std::endl;
3095 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3096 ofstrm << "unset xlabel" << std::endl;
3097 ofstrm << "unset xtic" << std::endl;
3098 ofstrm << "set xtics" << std::endl;
3099 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yy}\",\\" << std::endl;
3100 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yy}\"" << std::endl;
3101 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yy} particules\",\\" << std::endl;
3102 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yy} particules\"" << std::endl;
3103 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yy} matrice\",\\" << std::endl;
3104 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yy} matrice\"" << std::endl;
3105 ofstrm << "unset lmargin" << std::endl;
3106 ofstrm << "unset rmargin" << std::endl;
3107 ofstrm << "unset multiplot" << std::endl;
3108 }
3109 if(fem_maill_quad)
3110 {
3111 ofstrm << "set terminal term" << std::endl;
3112 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_yy_quad.\",ext)" << std::endl;
3113 ofstrm << "set lmargin 10" << std::endl;
3114 ofstrm << "set rmargin 25" << std::endl;
3115 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3116 ofstrm << "set multiplot layout 3, 1" << std::endl;
3117 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3118 ofstrm << "unset xlabel" << std::endl;
3119 ofstrm << "unset xtic" << std::endl;
3120 ofstrm << "set xtics" << std::endl;
3121 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yy}\",\\" << std::endl;
3122 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yy}\"" << std::endl;
3123 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yy} particules\",\\" << std::endl;
3124 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yy} particules\"" << std::endl;
3125 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yy} matrice\",\\" << std::endl;
3126 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yy} matrice\"" << std::endl;
3127 ofstrm << "unset lmargin" << std::endl;
3128 ofstrm << "unset rmargin" << std::endl;
3129 ofstrm << "unset multiplot" << std::endl;
3130 }
3131 if(fem_maill_lin && fem_maill_quad)
3132 {
3133 ofstrm << "set terminal term" << std::endl;
3134 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_yy_lin_quad.\",ext)" << std::endl;
3135 ofstrm << "set lmargin 10" << std::endl;
3136 ofstrm << "set rmargin 25" << std::endl;
3137 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3138 ofstrm << "set multiplot layout 3, 1" << std::endl;
3139 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3140 ofstrm << "unset xlabel" << std::endl;
3141 ofstrm << "unset xtic" << std::endl;
3142 ofstrm << "set xtics" << std::endl;
3143 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yy} lin\",\\" << std::endl;
3144 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yy} lin\" ,\\" << std::endl;
3145 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yy} quad\",\\" << std::endl;
3146 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yy} quad\"" << std::endl;
3147 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yy} particules lin\",\\" << std::endl;
3148 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yy} particules lin\" ,\\" << std::endl;
3149 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yy} particules quad\",\\" << std::endl;
3150 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yy} particules quad\"" << std::endl;
3151 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yy} matrice lin\",\\" << std::endl;
3152 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yy} matrice lin\",\\" << std::endl;
3153 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yy} matrice quad\",\\" << std::endl;
3154 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_1.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yy} matrice quad\"" << std::endl;
3155 ofstrm << "unset lmargin" << std::endl;
3156 ofstrm << "unset rmargin" << std::endl;
3157 ofstrm << "unset multiplot" << std::endl;
3158 }
3159
3160 ofstrm << "" << std::endl;
3161 ofstrm << "#Distribution SIGMA dev zz" << std::endl;
3162 if(fem_maill_lin)
3163 {
3164 ofstrm << "set terminal term" << std::endl;
3165 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_zz_lin.\",ext)" << std::endl;
3166 ofstrm << "set lmargin 10" << std::endl;
3167 ofstrm << "set rmargin 25" << std::endl;
3168 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3169 ofstrm << "set multiplot layout 3, 1" << std::endl;
3170 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3171 ofstrm << "unset xlabel" << std::endl;
3172 ofstrm << "unset xtic" << std::endl;
3173 ofstrm << "set xtics" << std::endl;
3174 ofstrm << "plot 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 \"DH σ_{zz}\",\\" << std::endl;
3175 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{zz}\"" << std::endl;
3176 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{zz} particules\",\\" << std::endl;
3177 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{zz} particules\"" << std::endl;
3178 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{zz} matrice\",\\" << std::endl;
3179 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{zz} matrice\"" << std::endl;
3180 ofstrm << "unset lmargin" << std::endl;
3181 ofstrm << "unset rmargin" << std::endl;
3182 ofstrm << "unset multiplot" << std::endl;
3183 }
3184 if(fem_maill_quad)
3185 {
3186 ofstrm << "set terminal term" << std::endl;
3187 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_zz_quad.\",ext)" << std::endl;
3188 ofstrm << "set lmargin 10" << std::endl;
3189 ofstrm << "set rmargin 25" << std::endl;
3190 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3191 ofstrm << "set multiplot layout 3, 1" << std::endl;
3192 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3193 ofstrm << "unset xlabel" << std::endl;
3194 ofstrm << "unset xtic" << std::endl;
3195 ofstrm << "set xtics" << std::endl;
3196 ofstrm << "plot 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 \"DH σ_{zz}\",\\" << std::endl;
3197 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{zz}\"" << std::endl;
3198 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{zz} particules\",\\" << std::endl;
3199 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{zz} particules\"" << std::endl;
3200 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{zz} matrice\",\\" << std::endl;
3201 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{zz} matrice\"" << std::endl;
3202 ofstrm << "unset lmargin" << std::endl;
3203 ofstrm << "unset rmargin" << std::endl;
3204 ofstrm << "unset multiplot" << std::endl;
3205 }
3206 if(fem_maill_lin && fem_maill_quad)
3207 {
3208 ofstrm << "set terminal term" << std::endl;
3209 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_zz_lin_quad.\",ext)" << std::endl;
3210 ofstrm << "set lmargin 10" << std::endl;
3211 ofstrm << "set rmargin 25" << std::endl;
3212 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3213 ofstrm << "set multiplot layout 3, 1" << std::endl;
3214 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3215 ofstrm << "unset xlabel" << std::endl;
3216 ofstrm << "unset xtic" << std::endl;
3217 ofstrm << "set xtics" << std::endl;
3218 ofstrm << "plot 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 \"DH σ_{zz} lin\",\\" << std::endl;
3219 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{zz} lin\" ,\\" << std::endl;
3220 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 \"DH σ_{zz} quad\",\\" << std::endl;
3221 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{zz} quad\"" << std::endl;
3222 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{zz} particules lin\",\\" << std::endl;
3223 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{zz} particules lin\" ,\\" << std::endl;
3224 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{zz} particules quad\",\\" << std::endl;
3225 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{zz} particules quad\"" << std::endl;
3226 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{zz} matrice lin\",\\" << std::endl;
3227 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{zz} matrice lin\",\\" << std::endl;
3228 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{zz} matrice quad\",\\" << std::endl;
3229 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_2.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{zz} matrice quad\"" << std::endl;
3230 ofstrm << "unset lmargin" << std::endl;
3231 ofstrm << "unset rmargin" << std::endl;
3232 ofstrm << "unset multiplot" << std::endl;
3233 }
3234
3235 ofstrm << "" << std::endl;
3236 ofstrm << "#Distribution SIGMA dev xy" << std::endl;
3237 if(fem_maill_lin)
3238 {
3239 ofstrm << "set terminal term" << std::endl;
3240 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_xy_lin.\",ext)" << std::endl;
3241 ofstrm << "set lmargin 10" << std::endl;
3242 ofstrm << "set rmargin 25" << std::endl;
3243 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3244 ofstrm << "set multiplot layout 3, 1" << std::endl;
3245 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3246 ofstrm << "unset xlabel" << std::endl;
3247 ofstrm << "unset xtic" << std::endl;
3248 ofstrm << "set xtics" << std::endl;
3249 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xy}\",\\" << std::endl;
3250 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xy}\"" << std::endl;
3251 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xy} particules\",\\" << std::endl;
3252 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xy} particules\"" << std::endl;
3253 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xy} matrice\",\\" << std::endl;
3254 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xy} matrice\"" << std::endl;
3255 ofstrm << "unset lmargin" << std::endl;
3256 ofstrm << "unset rmargin" << std::endl;
3257 ofstrm << "unset multiplot" << std::endl;
3258 }
3259 if(fem_maill_quad)
3260 {
3261 ofstrm << "set terminal term" << std::endl;
3262 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_xy_quad.\",ext)" << std::endl;
3263 ofstrm << "set lmargin 10" << std::endl;
3264 ofstrm << "set rmargin 25" << std::endl;
3265 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3266 ofstrm << "set multiplot layout 3, 1" << std::endl;
3267 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3268 ofstrm << "unset xlabel" << std::endl;
3269 ofstrm << "unset xtic" << std::endl;
3270 ofstrm << "set xtics" << std::endl;
3271 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xy}\",\\" << std::endl;
3272 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xy}\"" << std::endl;
3273 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xy} particules\",\\" << std::endl;
3274 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xy} particules\"" << std::endl;
3275 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xy} matrice\",\\" << std::endl;
3276 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xy} matrice\"" << std::endl;
3277 ofstrm << "unset lmargin" << std::endl;
3278 ofstrm << "unset rmargin" << std::endl;
3279 ofstrm << "unset multiplot" << std::endl;
3280 }
3281 if(fem_maill_lin && fem_maill_quad)
3282 {
3283 ofstrm << "set terminal term" << std::endl;
3284 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_xy_lin_quad.\",ext)" << std::endl;
3285 ofstrm << "set lmargin 10" << std::endl;
3286 ofstrm << "set rmargin 25" << std::endl;
3287 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3288 ofstrm << "set multiplot layout 3, 1" << std::endl;
3289 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3290 ofstrm << "unset xlabel" << std::endl;
3291 ofstrm << "unset xtic" << std::endl;
3292 ofstrm << "set xtics" << std::endl;
3293 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xy} lin\",\\" << std::endl;
3294 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xy} lin\" ,\\" << std::endl;
3295 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xy} quad\",\\" << std::endl;
3296 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xy} quad\"" << std::endl;
3297 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xy} particules lin\",\\" << std::endl;
3298 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xy} particules lin\" ,\\" << std::endl;
3299 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xy} particules quad\",\\" << std::endl;
3300 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xy} particules quad\"" << std::endl;
3301 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xy} matrice lin\",\\" << std::endl;
3302 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xy} matrice lin\",\\" << std::endl;
3303 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xy} matrice quad\",\\" << std::endl;
3304 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_3.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xy} matrice quad\"" << std::endl;
3305 ofstrm << "unset lmargin" << std::endl;
3306 ofstrm << "unset rmargin" << std::endl;
3307 ofstrm << "unset multiplot" << std::endl;
3308 }
3309
3310 ofstrm << "" << std::endl;
3311 ofstrm << "#Distribution SIGMA dev yz" << std::endl;
3312 if(fem_maill_lin)
3313 {
3314 ofstrm << "set terminal term" << std::endl;
3315 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_yz_lin.\",ext)" << std::endl;
3316 ofstrm << "set lmargin 10" << std::endl;
3317 ofstrm << "set rmargin 25" << std::endl;
3318 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3319 ofstrm << "set multiplot layout 3, 1" << std::endl;
3320 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3321 ofstrm << "unset xlabel" << std::endl;
3322 ofstrm << "unset xtic" << std::endl;
3323 ofstrm << "set xtics" << std::endl;
3324 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yz}\",\\" << std::endl;
3325 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yz}\"" << std::endl;
3326 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yz} particules\",\\" << std::endl;
3327 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yz} particules\"" << std::endl;
3328 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yz} matrice\",\\" << std::endl;
3329 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yz} matrice\"" << std::endl;
3330 ofstrm << "unset lmargin" << std::endl;
3331 ofstrm << "unset rmargin" << std::endl;
3332 ofstrm << "unset multiplot" << std::endl;
3333 }
3334 if(fem_maill_quad)
3335 {
3336 ofstrm << "set terminal term" << std::endl;
3337 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_yz_quad.\",ext)" << std::endl;
3338 ofstrm << "set lmargin 10" << std::endl;
3339 ofstrm << "set rmargin 25" << std::endl;
3340 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3341 ofstrm << "set multiplot layout 3, 1" << std::endl;
3342 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3343 ofstrm << "unset xlabel" << std::endl;
3344 ofstrm << "unset xtic" << std::endl;
3345 ofstrm << "set xtics" << std::endl;
3346 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yz}\",\\" << std::endl;
3347 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yz}\"" << std::endl;
3348 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yz} particules\",\\" << std::endl;
3349 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yz} particules\"" << std::endl;
3350 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yz} matrice\",\\" << std::endl;
3351 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yz} matrice\"" << std::endl;
3352 ofstrm << "unset lmargin" << std::endl;
3353 ofstrm << "unset rmargin" << std::endl;
3354 ofstrm << "unset multiplot" << std::endl;
3355 }
3356 if(fem_maill_lin && fem_maill_quad)
3357 {
3358 ofstrm << "set terminal term" << std::endl;
3359 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_yz_lin_quad.\",ext)" << std::endl;
3360 ofstrm << "set lmargin 10" << std::endl;
3361 ofstrm << "set rmargin 25" << std::endl;
3362 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3363 ofstrm << "set multiplot layout 3, 1" << std::endl;
3364 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3365 ofstrm << "unset xlabel" << std::endl;
3366 ofstrm << "unset xtic" << std::endl;
3367 ofstrm << "set xtics" << std::endl;
3368 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yz} lin\",\\" << std::endl;
3369 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yz} lin\" ,\\" << std::endl;
3370 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yz} quad\",\\" << std::endl;
3371 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yz} quad\"" << std::endl;
3372 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yz} particules lin\",\\" << std::endl;
3373 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yz} particules lin\" ,\\" << std::endl;
3374 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yz} particules quad\",\\" << std::endl;
3375 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yz} particules quad\"" << std::endl;
3376 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{yz} matrice lin\",\\" << std::endl;
3377 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{yz} matrice lin\",\\" << std::endl;
3378 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{yz} matrice quad\",\\" << std::endl;
3379 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_4.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{yz} matrice quad\"" << std::endl;
3380 ofstrm << "unset lmargin" << std::endl;
3381 ofstrm << "unset rmargin" << std::endl;
3382 ofstrm << "unset multiplot" << std::endl;
3383 }
3384
3385 ofstrm << "" << std::endl;
3386 ofstrm << "#Distribution SIGMA dev xz" << std::endl;
3387 if(fem_maill_lin)
3388 {
3389 ofstrm << "set terminal term" << std::endl;
3390 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_xz_lin.\",ext)" << std::endl;
3391 ofstrm << "set lmargin 10" << std::endl;
3392 ofstrm << "set rmargin 25" << std::endl;
3393 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3394 ofstrm << "set multiplot layout 3, 1" << std::endl;
3395 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3396 ofstrm << "unset xlabel" << std::endl;
3397 ofstrm << "unset xtic" << std::endl;
3398 ofstrm << "set xtics" << std::endl;
3399 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xz}\",\\" << std::endl;
3400 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xz}\"" << std::endl;
3401 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xz} particules\",\\" << std::endl;
3402 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xz} particules\"" << std::endl;
3403 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xz} matrice\",\\" << std::endl;
3404 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xz} matrice\"" << std::endl;
3405 ofstrm << "unset lmargin" << std::endl;
3406 ofstrm << "unset rmargin" << std::endl;
3407 ofstrm << "unset multiplot" << std::endl;
3408 }
3409 if(fem_maill_quad)
3410 {
3411 ofstrm << "set terminal term" << std::endl;
3412 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_xz_quad.\",ext)" << std::endl;
3413 ofstrm << "set lmargin 10" << std::endl;
3414 ofstrm << "set rmargin 25" << std::endl;
3415 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3416 ofstrm << "set multiplot layout 3, 1" << std::endl;
3417 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3418 ofstrm << "unset xlabel" << std::endl;
3419 ofstrm << "unset xtic" << std::endl;
3420 ofstrm << "set xtics" << std::endl;
3421 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xz}\",\\" << std::endl;
3422 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xz}\"" << std::endl;
3423 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xz} particules\",\\" << std::endl;
3424 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xz} particules\"" << std::endl;
3425 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xz} matrice\",\\" << std::endl;
3426 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xz} matrice\"" << std::endl;
3427 ofstrm << "unset lmargin" << std::endl;
3428 ofstrm << "unset rmargin" << std::endl;
3429 ofstrm << "unset multiplot" << std::endl;
3430 }
3431 if(fem_maill_lin && fem_maill_quad)
3432 {
3433 ofstrm << "set terminal term" << std::endl;
3434 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_distribution_SIGMA_dev_xz_lin_quad.\",ext)" << std::endl;
3435 ofstrm << "set lmargin 10" << std::endl;
3436 ofstrm << "set rmargin 25" << std::endl;
3437 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3438 ofstrm << "set multiplot layout 3, 1" << std::endl;
3439 ofstrm << "#set xrange [0.5:2.0]" << std::endl;
3440 ofstrm << "unset xlabel" << std::endl;
3441 ofstrm << "unset xtic" << std::endl;
3442 ofstrm << "set xtics" << std::endl;
3443 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xz} lin\",\\" << std::endl;
3444 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xz} lin\" ,\\" << std::endl;
3445 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xz} quad\",\\" << std::endl;
3446 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xz} quad\"" << std::endl;
3447 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xz} particules lin\",\\" << std::endl;
3448 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xz} particules lin\" ,\\" << std::endl;
3449 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xz} particules quad\",\\" << std::endl;
3450 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_particule_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xz} particules quad\"" << std::endl;
3451 ofstrm << "plot sprintf(\"resultats/champ/DH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 2 lw 2 title \"DH σ_{xz} matrice lin\",\\" << std::endl;
3452 ofstrm << "sprintf(\"resultats/champ/CH/dev/lin/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 2 lw 2 title \"CH σ_{xz} matrice lin\",\\" << std::endl;
3453 ofstrm << "sprintf(\"resultats/champ/DH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'blue' dt 1 lw 2 title \"DH σ_{xz} matrice quad\",\\" << std::endl;
3454 ofstrm << "sprintf(\"resultats/champ/CH/dev/quad/c_%i/histo_Champ_SIGMA_matrice_normalise_5.txt\",couche_ref) u ($3):($4) with lines lc rgb 'red' dt 1 lw 2 title \"CH σ_{xz} matrice quad\"" << std::endl;
3455 ofstrm << "unset lmargin" << std::endl;
3456 ofstrm << "unset rmargin" << std::endl;
3457 ofstrm << "unset multiplot" << std::endl;
3458 }
3459 }
3460 ofstrm << "" << std::endl;
3461 if(etude_thermique)
3462 {
3463 ofstrm << "" << std::endl;
3464 ofstrm << "#Nuage lambda app" << std::endl;
3465 if(fem_maill_lin)
3466 {
3467 ofstrm << "set terminal pdf size 8,4 font 'Helvetica,20'" << std::endl;
3468 ofstrm << "set rmargin 15" << std::endl;
3469 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/nuage_Lambda_app_lin.\",ext)" << std::endl;
3470 ofstrm << "#set xrange [9:11]" << std::endl;
3471 ofstrm << "#set yrange [0.14:0.2]" << std::endl;
3472 ofstrm << "#set title \"Conductivite thermique (W/(m*K))\"" << std::endl;
3473 ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
3474 ofstrm << "set ylabel \"Conductivite thermique (W/(m*K))\"" << std::endl;
3475 ofstrm << "plot \"resultats/data_graph/liste_Conductivite_thermique_app_FH_lin.txt\" u ($2*100):($3) pt 4 ps 0.5 lc rgb 'blue' lw 1 title \"FH\",\\" << std::endl;
3476 ofstrm << "\"resultats/data_graph/liste_Conductivite_thermique_app_GH_lin.txt\" u ($2*100):($3) pt 4 ps 0.5 lc rgb 'red' lw 1 title \"GH\" ,\\" << std::endl;
3477 ofstrm << "lambda_reuss(x/100.0) with line lw 2 lc rgb 'black' lt 2 title \"{/Symbol l}_{Reuss}\" ,\\" << std::endl;
3478 ofstrm << "lambda_hs_inf(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"{/Symbol l}_{HS-}\" ,\\" << std::endl;
3479 ofstrm << "lambda_hs_sup(x/100.0) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"{/Symbol l}_{HS+}\" ,\\" << std::endl;
3480 ofstrm << "lambda_voigt(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"{/Symbol l}_{Voigt}\"" << std::endl;
3481 }
3482 if(fem_maill_quad)
3483 {
3484 ofstrm << "set terminal pdf size 8,4 font 'Helvetica,20'" << std::endl;
3485 ofstrm << "set rmargin 15" << std::endl;
3486 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/nuage_Lambda_app_quad.\",ext)" << std::endl;
3487 ofstrm << "#set xrange [9:11]" << std::endl;
3488 ofstrm << "#set yrange [0.14:0.2]" << std::endl;
3489 ofstrm << "#set title \"Conductivite thermique (W/(m*K))\"" << std::endl;
3490 ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
3491 ofstrm << "set ylabel \"Conductivite thermique (W/(m*K))\"" << std::endl;
3492 ofstrm << "plot \"resultats/data_graph/liste_Conductivite_thermique_app_FH_quad.txt\" u ($2*100):($3) pt 5 ps 0.5 lc rgb 'blue' lw 1 title \"FH\",\\" << std::endl;
3493 ofstrm << "\"resultats/data_graph/liste_Conductivite_thermique_app_GH_quad.txt\" u ($2*100):($3) pt 5 ps 0.5 lc rgb 'red' lw 1 title \"GH\" ,\\" << std::endl;
3494 ofstrm << "lambda_reuss(x/100.0) with line lw 2 lc rgb 'black' lt 2 title \"{/Symbol l}_{Reuss}\" ,\\" << std::endl;
3495 ofstrm << "lambda_hs_inf(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"{/Symbol l}_{HS-}\" ,\\" << std::endl;
3496 ofstrm << "lambda_hs_sup(x/100.0) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"{/Symbol l}_{HS+}\" ,\\" << std::endl;
3497 ofstrm << "lambda_voigt(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"{/Symbol l}_{Voigt}\"" << std::endl;
3498 }
3499 if(fem_maill_lin && fem_maill_quad)
3500 {
3501 ofstrm << "set terminal pdf size 8,4 font 'Helvetica,20'" << std::endl;
3502 ofstrm << "set rmargin 15" << std::endl;
3503 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/nuage_Lambda_app_lin_quad.\",ext)" << std::endl;
3504 ofstrm << "#set xrange [9:11]" << std::endl;
3505 ofstrm << "#set yrange [0.14:0.2]" << std::endl;
3506 ofstrm << "#set title \"Conductivite thermique (W/(m*K))\"" << std::endl;
3507 ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
3508 ofstrm << "set ylabel \"Conductivite thermique (W/(m*K))\"" << std::endl;
3509 ofstrm << "plot \"resultats/data_graph/liste_Conductivite_thermique_app_FH_lin.txt\" u ($2*100):($3) pt 4 ps 0.5 lc rgb 'blue' lw 1 title \"FH lin\",\\" << std::endl;
3510 ofstrm << "\"resultats/data_graph/liste_Conductivite_thermique_app_GH_lin.txt\" u ($2*100):($3) pt 4 ps 0.5 lc rgb 'red' lw 1 title \"GH lin\" ,\\" << std::endl;
3511 ofstrm << "\"resultats/data_graph/liste_Conductivite_thermique_app_FH_quad.txt\" u ($2*100):($3) pt 5 ps 0.5 lc rgb 'blue' lw 1 title \"FH quad\",\\" << std::endl;
3512 ofstrm << "\"resultats/data_graph/liste_Conductivite_thermique_app_GH_quad.txt\" u ($2*100):($3) pt 5 ps 0.5 lc rgb 'red' lw 1 title \"GH quad\" ,\\" << std::endl;
3513 }
3514
3515 ofstrm << "" << std::endl;
3516 ofstrm << "#Cumul lambda app" << std::endl;
3517 if(fem_maill_lin)
3518 {
3519 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/cumul_Lambda_app_lin.\",ext)" << std::endl;
3520 ofstrm << "#set title \"Conductivite thermique (W/(m*K))\"" << std::endl;
3521 ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
3522 ofstrm << "set ylabel \"Conductivite thermique (W/(m*K))\"" << std::endl;
3523 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 0.5 lc rgb 'blue' lw 1 title \"FH\",\\" << std::endl;
3524 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 0.5 lc rgb 'red' lw 1 title \"GH\" ,\\" << std::endl;
3525 ofstrm << "lambda_reuss(x/100.0) with line lw 2 lc rgb 'black' lt 2 title \"{/Symbol l}_{Reuss}\" ,\\" << std::endl;
3526 ofstrm << "lambda_hs_inf(x/100.0) with line lw 2 lc rgb 'grey' lt 2 title \"{/Symbol l}_{HS-}\" ,\\" << std::endl;
3527 ofstrm << "lambda_hs_sup(x/100.0) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"{/Symbol l}_{HS+}\" ,\\" << std::endl;
3528 ofstrm << "lambda_voigt(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"{/Symbol l}_{Voigt}\"" << std::endl;
3529 }
3530 if(fem_maill_quad)
3531 {
3532 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/cumul_Lambda_app_quad.\",ext)" << std::endl;
3533 ofstrm << "#set title \"Conductivite thermique (W/(m*K))\"" << std::endl;
3534 ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
3535 ofstrm << "set ylabel \"Conductivite thermique (W/(m*K))\"" << std::endl;
3536 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 0.5 lc rgb 'blue' lw 1 title \"FH\",\\" << std::endl;
3537 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 0.5 lc rgb 'red' lw 1 title \"GH\" ,\\" << std::endl;
3538 ofstrm << "lambda_reuss(x/100.0) with line lw 2 lc rgb 'black' lt 2 title \"{/Symbol l}_{Reuss}\" ,\\" << std::endl;
3539 ofstrm << "lambda_hs_inf(x/100.0) with line lw 2 lc rgb 'grey' lt 2 title \"{/Symbol l}_{HS-}\" ,\\" << std::endl;
3540 ofstrm << "lambda_hs_sup(x/100.0) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"{/Symbol l}_{HS+}\" ,\\" << std::endl;
3541 ofstrm << "lambda_voigt(x/100.0) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"{/Symbol l}_{Voigt}\"" << std::endl;
3542 }
3543 if(fem_maill_lin && fem_maill_quad)
3544 {
3545 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/cumul_Lambda_app_lin_quad.\",ext)" << std::endl;
3546 ofstrm << "#set title \"Conductivite thermique (W/(m*K))\"" << std::endl;
3547 ofstrm << "set xlabel \"Fraction volumique (%)\"" << std::endl;
3548 ofstrm << "set ylabel \"Conductivite thermique (W/(m*K))\"" << std::endl;
3549 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 0.5 lc rgb 'blue' lw 1 title \"FH lin\",\\" << std::endl;
3550 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 0.5 lc rgb 'red' lw 1 title \"GH lin\" ,\\" << std::endl;
3551 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 0.5 lc rgb 'blue' lw 1 title \"FH quad\",\\" << std::endl;
3552 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 0.5 lc rgb 'red' lw 1 title \"GH quad\"" << std::endl;
3553 }
3554
3555 ofstrm << "" << std::endl;
3556 ofstrm << "#Cumul erosion lambda app" << std::endl;
3557 if(fem_maill_lin)
3558 {
3559 ofstrm << "set terminal term" << std::endl;
3560 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_Lambda_app_lin.\",ext)" << std::endl;
3561 ofstrm << "unset bmargin" << std::endl;
3562 ofstrm << "set lmargin 10" << std::endl;
3563 ofstrm << "set rmargin 18" << std::endl;
3564 ofstrm << "set multiplot layout 2, 1" << std::endl;
3565 ofstrm << "#set xrange [0:0.41]" << std::endl;
3566 ofstrm << "#set title \"Module de Young (GPa)\"" << std::endl;
3567 ofstrm << "unset xlabel" << std::endl;
3568 ofstrm << "unset xtic" << std::endl;
3569 ofstrm << "set ylabel \"Conductivite thermique (W/(m*K))\" offset 1" << std::endl;
3570 ofstrm << "set ytics nomirror" << std::endl;
3571 ofstrm << "#set yrange [0.165:0.19]" << std::endl;
3572 ofstrm << "set size 1,0.7" << std::endl;
3573 ofstrm << "set origin 0,0.3" << std::endl;
3574 ofstrm << "plot \"resultats/data_graph/erosion_Conductivite_thermique_app_FH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'blue' lw 2 title \"FH\" ,\\" << std::endl;
3575 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_FH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 4 ps 1.0 lc rgb 'blue' lw 2 notitle ,\\" << std::endl;
3576 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'red' lw 2 title \"GH\" ,\\" << std::endl;
3577 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 4 ps 1.0 lc rgb 'red' lw 2 notitle ,\\" << std::endl;
3578 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):(lambda_reuss($3)) with line lw 2 lc rgb 'black' lt 2 title \"{/Symbol l}_{Reuss}\" ,\\" << std::endl;
3579 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):(lambda_hs_inf($3)) with line lw 2 lc rgb 'grey' lt 2 title \"{/Symbol l}_{HS-}\" ,\\" << std::endl;
3580 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):(lambda_hs_sup($3)) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"{/Symbol l}_{HS+}\" ,\\" << std::endl;
3581 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):(lambda_voigt($3)) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"{/Symbol l}_{Voigt}\"" << std::endl;
3582 ofstrm << "set xlabel \"Distance d'erosion d_e\" offset 0,0" << std::endl;
3583 ofstrm << "set ylabel \"Fraction volumique (%)\" offset -2" << std::endl;
3584 ofstrm << "unset yrange" << std::endl;
3585 ofstrm << "set size 1,0.3" << std::endl;
3586 ofstrm << "set origin 0,0" << std::endl;
3587 ofstrm << "set xtics" << std::endl;
3588 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
3589 ofstrm << "#set yrange [9:14]" << std::endl;
3590 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 6 ps 1.0 title \"Frac. Vol.\" ,\\" << std::endl;
3591 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'black' pt 6 ps 1.0 notitle" << std::endl;
3592 ofstrm << "unset yrange" << std::endl;
3593 ofstrm << "unset lmargin" << std::endl;
3594 ofstrm << "unset rmargin" << std::endl;
3595 ofstrm << "unset multiplot" << std::endl;
3596 }
3597 if(fem_maill_quad)
3598 {
3599 ofstrm << "set terminal term" << std::endl;
3600 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_Lambda_app_quad.\",ext)" << std::endl;
3601 ofstrm << "unset bmargin" << std::endl;
3602 ofstrm << "set lmargin 10" << std::endl;
3603 ofstrm << "set rmargin 18" << std::endl;
3604 ofstrm << "set multiplot layout 2, 1" << std::endl;
3605 ofstrm << "#set xrange [0:0.41]" << std::endl;
3606 ofstrm << "#set title \"Module de Young (GPa)\"" << std::endl;
3607 ofstrm << "unset xlabel" << std::endl;
3608 ofstrm << "unset xtic" << std::endl;
3609 ofstrm << "set ylabel \"Conductivite thermique (W/(m*K))\" offset 1" << std::endl;
3610 ofstrm << "set ytics nomirror" << std::endl;
3611 ofstrm << "#set yrange [0.165:0.19]" << std::endl;
3612 ofstrm << "set size 1,0.7" << std::endl;
3613 ofstrm << "set origin 0,0.3" << std::endl;
3614 ofstrm << "plot \"resultats/data_graph/erosion_Conductivite_thermique_app_FH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'blue' lw 2 title \"FH\" ,\\" << std::endl;
3615 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_FH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 5 ps 1.0 lc rgb 'blue' lw 2 notitle ,\\" << std::endl;
3616 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'red' lw 2 title \"GH\" ,\\" << std::endl;
3617 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 5 ps 1.0 lc rgb 'red' lw 2 notitle ,\\" << std::endl;
3618 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):(lambda_reuss($3)) with line lw 2 lc rgb 'black' lt 2 title \"{/Symbol l}_{Reuss}\" ,\\" << std::endl;
3619 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):(lambda_hs_inf($3)) with line lw 2 lc rgb 'grey' lt 2 title \"{/Symbol l}_{HS-}\" ,\\" << std::endl;
3620 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):(lambda_hs_sup($3)) with line lw 2 lc rgb 'grey' lt 2 dashtype 2 title \"{/Symbol l}_{HS+}\" ,\\" << std::endl;
3621 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):(lambda_voigt($3)) with line lw 2 lc rgb 'black' lt 2 dashtype 2 title \"{/Symbol l}_{Voigt}\"" << std::endl;
3622 ofstrm << "set xlabel \"Distance d'erosion d_e\" offset 0,0" << std::endl;
3623 ofstrm << "set ylabel \"Fraction volumique (%)\" offset -2" << std::endl;
3624 ofstrm << "unset yrange" << std::endl;
3625 ofstrm << "set size 1,0.3" << std::endl;
3626 ofstrm << "set origin 0,0" << std::endl;
3627 ofstrm << "set xtics" << std::endl;
3628 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
3629 ofstrm << "#set yrange [9:14]" << std::endl;
3630 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 7 ps 1.0 title \"Frac. Vol.\" ,\\" << std::endl;
3631 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 7 ps 1.0 notitle" << std::endl;
3632 ofstrm << "unset yrange" << std::endl;
3633 ofstrm << "unset lmargin" << std::endl;
3634 ofstrm << "unset rmargin" << std::endl;
3635 ofstrm << "unset multiplot" << std::endl;
3636 }
3637 if(fem_maill_lin && fem_maill_quad)
3638 {
3639 ofstrm << "set terminal term" << std::endl;
3640 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/multi_cumul_erosion_Lambda_app_lin_quad.\",ext)" << std::endl;
3641 ofstrm << "unset bmargin" << std::endl;
3642 ofstrm << "set lmargin 10" << std::endl;
3643 ofstrm << "set rmargin 18" << std::endl;
3644 ofstrm << "set multiplot layout 2, 1" << std::endl;
3645 ofstrm << "#set xrange [0:0.41]" << std::endl;
3646 ofstrm << "#set title \"Module de Young (GPa)\"" << std::endl;
3647 ofstrm << "unset xlabel" << std::endl;
3648 ofstrm << "unset xtic" << std::endl;
3649 ofstrm << "set ylabel \"Conductivite thermique (W/(m*K))\" offset 1" << std::endl;
3650 ofstrm << "set ytics nomirror" << std::endl;
3651 ofstrm << "#set yrange [0.165:0.19]" << std::endl;
3652 ofstrm << "set size 1,0.7" << std::endl;
3653 ofstrm << "set origin 0,0.3" << std::endl;
3654 ofstrm << "plot \"resultats/data_graph/erosion_Conductivite_thermique_app_FH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'blue' lw 2 title \"FH lin\" ,\\" << std::endl;
3655 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_FH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 4 ps 1.0 lc rgb 'blue' lw 2 notitle ,\\" << std::endl;
3656 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'red' lw 2 title \"GH lin\" ,\\" << std::endl;
3657 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 4 ps 1.0 lc rgb 'red' lw 2 notitle ,\\" << std::endl;
3658 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_FH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'blue' lw 2 title \"FH quad\" ,\\" << std::endl;
3659 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_FH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 5 ps 1.0 lc rgb 'blue' lw 2 notitle ,\\" << std::endl;
3660 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5) with lines lc rgb 'red' lw 2 title \"GH quad\" ,\\" << std::endl;
3661 ofstrm << "\"resultats/data_graph/erosion_Conductivite_thermique_app_GH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($5):($6) with yerrorbars pt 5 ps 1.0 lc rgb 'red' lw 2 notitle" << std::endl;
3662 ofstrm << "set xlabel \"Distance d'erosion d_e\" offset 0,0" << std::endl;
3663 ofstrm << "set ylabel \"Fraction volumique (%)\" offset -2" << std::endl;
3664 ofstrm << "unset yrange" << std::endl;
3665 ofstrm << "set size 1,0.3" << std::endl;
3666 ofstrm << "set origin 0,0" << std::endl;
3667 ofstrm << "set xtics" << std::endl;
3668 ofstrm << "set xlabel \"Distance d'erosion d_e\"" << std::endl;
3669 ofstrm << "#set yrange [9:14]" << std::endl;
3670 ofstrm << "plot \"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 6 ps 1.0 title \"Frac. Vol. lin\" ,\\" << std::endl;
3671 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_lin.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100):($4*100) with yerrorbars lc rgb 'black' pt 6 ps 1.0 notitle ,\\" << std::endl;
3672 ofstrm << "\"resultats/data_graph/erosion_Modules_app_CH_quad.txt\" u ($1*" << epaisseur_couche_erosion << "):($3*100) with linespoint lc rgb 'black' lt 2 lw 2 pt 7 ps 1.0 title \"Frac. Vol. quad\" ,\\" << std::endl;
3673 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 7 ps 1.0 notitle" << std::endl;
3674 ofstrm << "unset yrange" << std::endl;
3675 ofstrm << "unset lmargin" << std::endl;
3676 ofstrm << "unset rmargin" << std::endl;
3677 ofstrm << "unset multiplot" << std::endl;
3678 }
3679 }
3680 ofstrm << "" << std::endl;
3681 ofstrm << "#Nombre de particules" << std::endl;
3682 ofstrm << "unset key" << std::endl;
3683 ofstrm << "set terminal pdf size 8,4 font 'Helvetica,20'" << std::endl;
3684 ofstrm << "unset xrange" << std::endl;
3685 ofstrm << "unset yrange" << std::endl;
3686 ofstrm << "set lmargin 10" << std::endl;
3687 ofstrm << "set rmargin 2" << std::endl;
3688 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/cao_nb_particule.\",ext)" << std::endl;
3689 ofstrm << "#set title \"Nombre (Particule)\"" << std::endl;
3690 ofstrm << "set xlabel \"Nombre\"" << std::endl;
3691 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3692 ofstrm << "plot 'resultats/cao/histo_Cao_Particule_nb_forme.txt' using 1:4 with impulses notitle lc rgb 'blue' lw 50" << std::endl;
3693
3694 ofstrm << "" << std::endl;
3695 ofstrm << "#Volume ALL" << std::endl;
3696 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/cao_volume.\",ext)" << std::endl;
3697 ofstrm << "#set title \"Volume\"" << std::endl;
3698 ofstrm << "set xlabel \"Volume\"" << std::endl;
3699 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3700 ofstrm << "plot 'resultats/cao/histo_Cao_ALL_volume_forme.txt' using 3:4 with impulses notitle lc rgb 'blue' lw 2" << std::endl;
3701
3702 ofstrm << "" << std::endl;
3703 ofstrm << "#Volume des particules" << std::endl;
3704 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/cao_volume_particule.\",ext)" << std::endl;
3705 ofstrm << "#set title \"Volume (Particule)\"" << std::endl;
3706 ofstrm << "set xlabel \"Volume\"" << std::endl;
3707 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3708 ofstrm << "plot 'resultats/cao/histo_Cao_Particule_volume_forme.txt' using 3:4 with impulses notitle lc rgb 'blue' lw 2" << std::endl;
3709
3710 ofstrm << "" << std::endl;
3711 ofstrm << "#Volume de la matrice" << std::endl;
3712 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/cao_volume_matrice.\",ext)" << std::endl;
3713 ofstrm << "#set title \"Volume (Matrice)\"" << std::endl;
3714 ofstrm << "set xlabel \"Volume\"" << std::endl;
3715 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3716 ofstrm << "plot 'resultats/cao/histo_Cao_Matrice_volume_forme.txt' using 3:4 with impulses notitle lc rgb 'blue' lw 2" << std::endl;
3717
3718 ofstrm << "" << std::endl;
3719 ofstrm << "#Nb element 3D" << std::endl;
3720 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/maillage_mg_nb_element_3D.\",ext)" << std::endl;
3721 ofstrm << "#set title \"Distribution nombre elements\"" << std::endl;
3722 ofstrm << "set xlabel \"Nombre element\"" << std::endl;
3723 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3724 ofstrm << "plot 'resultats/maillage_mg/histo_MG_maillage_ALL_nb_ele_3D.txt' using 3:4 with impulses notitle lc rgb 'blue' lw 2" << std::endl;
3725
3726 ofstrm << "" << std::endl;
3727 ofstrm << "#Nb element 3D particule" << std::endl;
3728 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/maillage_mg_nb_element_3D_particule.\",ext)" << std::endl;
3729 ofstrm << "#set title \"Distribution nombre elements (Particules)\"" << std::endl;
3730 ofstrm << "set xlabel \"Nombre element\"" << std::endl;
3731 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3732 ofstrm << "plot 'resultats/maillage_mg/histo_MG_maillage_Particule_nb_ele_3D.txt' using 3:4 with impulses notitle lc rgb 'blue' lw 2" << std::endl;
3733
3734 ofstrm << "" << std::endl;
3735 ofstrm << "#Nb element 3D matrice" << std::endl;
3736 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/maillage_mg_nb_element_3D_matrice.\",ext)" << std::endl;
3737 ofstrm << "#set title \"Distribution nombre elements (Matrice)\"" << std::endl;
3738 ofstrm << "set xlabel \"Nombre element\"" << std::endl;
3739 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3740 ofstrm << "plot 'resultats/maillage_mg/histo_MG_maillage_Matrice_nb_ele_3D.txt' using 3:4 with impulses notitle lc rgb 'blue' lw 2" << std::endl;
3741
3742 ofstrm << "" << std::endl;
3743 ofstrm << "#Taille element ALL" << std::endl;
3744 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/maillage_mg_taille_element.\",ext)" << std::endl;
3745 ofstrm << "#set title \"Distribution taille elements\"" << std::endl;
3746 ofstrm << "set xlabel \"Taille element\"" << std::endl;
3747 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3748 ofstrm << "plot 'resultats/maillage_mg/histo_MG_maillage_ALL_taille_3D.txt' using 3:4 with impulses notitle lc rgb 'blue' lw 2" << std::endl;
3749
3750 ofstrm << "" << std::endl;
3751 ofstrm << "#Taille element particule" << std::endl;
3752 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/maillage_mg_taille_element_particule.\",ext)" << std::endl;
3753 ofstrm << "#set title \"Distribution taille elements\"" << std::endl;
3754 ofstrm << "set xlabel \"Taille element\"" << std::endl;
3755 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3756 ofstrm << "plot 'resultats/maillage_mg/histo_MG_maillage_Particule_taille_3D.txt' using 3:4 with impulses notitle lc rgb 'blue' lw 2" << std::endl;
3757
3758 ofstrm << "" << std::endl;
3759 ofstrm << "#Taille element matrice" << std::endl;
3760 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/maillage_mg_taille_element_matrice.\",ext)" << std::endl;
3761 ofstrm << "#set title \"Distribution taille elements\"" << std::endl;
3762 ofstrm << "set xlabel \"Taille element\"" << std::endl;
3763 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3764 ofstrm << "plot 'resultats/maillage_mg/histo_MG_maillage_Matrice_taille_3D.txt' using 3:4 with impulses notitle lc rgb 'blue' lw 2" << std::endl;
3765
3766 ofstrm << "" << std::endl;
3767 ofstrm << "#Qualite element ALL" << std::endl;
3768 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/maillage_mg_qualite_element.\",ext)" << std::endl;
3769 ofstrm << "unset xrange" << std::endl;
3770 ofstrm << "#set title \"Distribution qualite elements\"" << std::endl;
3771 ofstrm << "set xlabel \"Qualite element\"" << std::endl;
3772 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3773 ofstrm << "plot 'resultats/maillage_mg/histo_MG_maillage_ALL_qualite_3D.txt' using 3:4 with impulses notitle lc rgb 'blue' lw 2" << std::endl;
3774
3775 ofstrm << "" << std::endl;
3776 ofstrm << "#Qualite element Particule" << std::endl;
3777 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/maillage_mg_qualite_element_particule.\",ext)" << std::endl;
3778 ofstrm << "unset xrange" << std::endl;
3779 ofstrm << "#set title \"Distribution qualite elements\"" << std::endl;
3780 ofstrm << "set xlabel \"Qualite element\"" << std::endl;
3781 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3782 ofstrm << "plot 'resultats/maillage_mg/histo_MG_maillage_Particule_qualite_3D.txt' using 3:4 with impulses notitle lc rgb 'blue' lw 2" << std::endl;
3783
3784 ofstrm << "" << std::endl;
3785 ofstrm << "#Qualite element Matrice" << std::endl;
3786 ofstrm << "set output sprintf(\"%s%s\",\"resultats/graph/maillage_mg_qualite_element_matrice.\",ext)" << std::endl;
3787 ofstrm << "unset xrange" << std::endl;
3788 ofstrm << "#set title \"Distribution qualite elements\"" << std::endl;
3789 ofstrm << "set xlabel \"Qualite element\"" << std::endl;
3790 ofstrm << "set ylabel \"Densité de probabilité\"" << std::endl;
3791 ofstrm << "plot 'resultats/maillage_mg/histo_MG_maillage_Matrice_qualite_3D.txt' using 3:4 with impulses notitle lc rgb 'blue' lw 2" << std::endl;
3792
3793
3794
3795 if(fonc_affiche!=NULL) fonc_affiche((char*)"fig_Eapp.gnu");
3796 return 0;
3797
3798 }
3799
3800
3801
3802 int PARAMETRES::importer_fichier_parametres(char* fichier, OT_PARAMETRES* params)
3803 {
3804 return params->lire(fichier);
3805 }
3806
3807 int PARAMETRES::importer_fichier_liste_parametres(char* fichier, std::vector< OT_PARAMETRES* >& vector_params)
3808 {
3809 std::string str_fichier = fichier;
3810 std::size_t found = str_fichier.rfind((char*)"/");
3811 std::string chemin;
3812 if(found!=-1)
3813 {
3814 chemin = str_fichier.substr(0,found+1);
3815 }
3816 else chemin = "";
3817 FILE* in=fopen(fichier,"rt");
3818 char ligne[4000];
3819 fgets(ligne,4000,in);
3820 while(!feof(in))
3821 {
3822 char *aide = strstr(ligne,"//");
3823 if(aide==NULL)
3824 {
3825 char sous_fichier[500];
3826 sscanf(ligne,"%s",sous_fichier);
3827 if(strlen(sous_fichier)==0) continue;
3828 OT_PARAMETRES *param = new OT_PARAMETRES;
3829 std::string str_sous_fichier = chemin;
3830 str_sous_fichier.append(sous_fichier);
3831 if(param->lire((char*)str_sous_fichier.c_str())==FAIL) return FAIL;
3832 vector_params.push_back(param);
3833 }
3834 fgets(ligne,4000,in);
3835 }
3836 return OK;
3837 }