ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/microstructure/src/mstruct_parametres.cpp
Revision: 1190
Committed: Wed May 21 19:10:51 2025 UTC (3 months, 1 week ago) by ghazal
File size: 369004 byte(s)
Log Message:
Ajout de la méthode GCM dans la génération de microstructure.

File Contents

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