ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/microstructure/src/mstruct_parametres.cpp
Revision: 1095
Committed: Mon Jul 25 19:04:45 2022 UTC (2 years, 9 months ago) by francois
File size: 346015 byte(s)
Log Message:
Correction des tores dans l'homogeinisation. Problème de la boite englobante dans le parametrique.

File Contents

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