ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/microstructure/src/mstruct_parametres.cpp
Revision: 993
Committed: Sun Nov 11 17:17:59 2018 UTC (6 years, 6 months ago) by couturad
File size: 338395 byte(s)
Log Message:
MICROSTRUCTURE : 
-> Ajout d'une procedure de suivit des erreurs
-> Mise a jour des CLs
-> (Polycristaux) Correction d'un bug du calcul du tenseur d'orientation

File Contents

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