ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/microstructure/src/mstruct_parametres.cpp
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months, 1 week ago) by francois
File size: 367772 byte(s)
Log Message:
compatibilité Ubuntu 22.04
Suppression des refeences à Windows
Ajout d'une banière

File Contents

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