ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/microstructure/src/mstruct_parametres.cpp
Revision: 1130
Committed: Fri Feb 2 16:59:34 2024 UTC (15 months, 2 weeks ago) by ghazal
File size: 366897 byte(s)
Log Message:
Microstructure par decoupage disponible

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