48 for (
int i=0;i<
tab.size();i++)
101 for (
int i=0;i<3;i++)
102 for (
int j=0;j<3;j++)
107 for (
int i=0;i<nbph;i++)
132 for (
int j=0;j<nbph;j++)
139 for (
int ii=0;ii<3;ii++)
140 for (
int jj=0;jj<3;jj++)
156 for (
int j=0;j<nbph;j++)
162 for (
int ii=0;ii<3;ii++)
163 for (
int jj=0;jj<3;jj++)
182 for (
int j=0;j<nbph;j++)
190 for (
int ii=0;ii<3;ii++)
191 for (
int jj=0;jj<3;jj++)
211 for (
int j=0;j<nbph;j++)
219 for (
int ii=0;ii<3;ii++)
220 for (
int jj=0;jj<3;jj++)
230 strcpy(nom,nomcumul.c_str());
241 strcpy(nom,nomcumul.c_str());
244 FILE* in=fopen(nom,
"rt");
247 while (feof(in)==
false)
250 if (feof(in)==
true)
continue;
253 std::vector<double> valeurs;
257 sscanf(p,
"%lf;" ,&val);
258 valeurs.push_back(val);
265 res.nbcristaux=(int)(valeurs[0]);
266 res.degre=(int)(valeurs[1]);
274 res.tens1(0,0)=valeurs[9];
275 res.tens1(1,0)=valeurs[10];
276 res.tens1(2,0)=valeurs[11];
277 res.tens1(0,1)=valeurs[12];
278 res.tens1(1,1)=valeurs[13];
279 res.tens1(2,1)=valeurs[14];
280 res.tens1(0,2)=valeurs[15];
281 res.tens1(1,2)=valeurs[16];
282 res.tens1(2,2)=valeurs[17];
283 res.tens2(0,0)=valeurs[18];
284 res.tens2(1,0)=valeurs[19];
285 res.tens2(2,0)=valeurs[20];
286 res.tens2(0,1)=valeurs[21];
287 res.tens2(1,1)=valeurs[22];
288 res.tens2(2,1)=valeurs[23];
289 res.tens2(0,2)=valeurs[24];
290 res.tens2(1,2)=valeurs[25];
291 res.tens2(2,2)=valeurs[26];
292 res.tens3(0,0)=valeurs[27];
293 res.tens3(1,0)=valeurs[28];
294 res.tens3(2,0)=valeurs[29];
295 res.tens3(0,1)=valeurs[30];
296 res.tens3(1,1)=valeurs[31];
297 res.tens3(2,1)=valeurs[32];
298 res.tens3(0,2)=valeurs[33];
299 res.tens3(1,2)=valeurs[34];
300 res.tens3(2,2)=valeurs[35];
301 res.nbphase=(int)(valeurs[36]);
302 for (
int i=0;i<
res.nbphase;i++)
304 res.cristauxphase.push_back((
int)valeurs[37+i*6]);
305 res.volumephase.push_back(valeurs[38+i*6]);
306 res.massephase.push_back(valeurs[39+i*6]);
307 OT_VECTEUR_3D cdm(valeurs[40+i*6],valeurs[41+i*6],valeurs[42+i*6]);
308 res.cdmphase.push_back(cdm);
310 res.volume=valeurs[42+(
res.nbphase-1)*6+1];
311 res.masse=valeurs[42+(
res.nbphase-1)*6+2];
312 OT_VECTEUR_3D cdm(valeurs[42+(
res.nbphase-1)*6+3],valeurs[42+(
res.nbphase-1)*6+4],valeurs[42+(
res.nbphase-1)*6+5]);
314 res.Kvoigt=valeurs[42+(
res.nbphase-1)*6+6];
315 res.Gvoigt=valeurs[42+(
res.nbphase-1)*6+7];
316 res.Evoigt=valeurs[42+(
res.nbphase-1)*6+8];
317 res.nuvoigt=valeurs[42+(
res.nbphase-1)*6+9];
318 res.Kreuss=valeurs[42+(
res.nbphase-1)*6+10];
319 res.Greuss=valeurs[42+(
res.nbphase-1)*6+11];
320 res.Ereuss=valeurs[42+(
res.nbphase-1)*6+12];
321 res.nureuss=valeurs[42+(
res.nbphase-1)*6+13];
332 sprintf(nomout,
"%s%d.txt",nom,nbessai+1);
333 FILE* out=fopen(nomout,
"wt");
334 fprintf(out,
"----------------------------------------------------------\n");
335 fprintf(out,
"nb cristaux = %d\n",
tab[
listeessai[nbessai][0]].nbcristaux);
336 fprintf(out,
"nb phases = %d\n",
tab[
listeessai[nbessai][0]].nbphase);
337 fprintf(out,
"degre = %d\n",
tab[
listeessai[nbessai][0]].degre);
344 fprintf(out,
"masse phase %d = %lf +- %lf \n",i+1,
masseph[i].moyenne,
masseph[i].ecart);
345 fprintf(out,
"volume phase %d = %lf +- %lf \n",i+1,
volumeph[i].moyenne,
volumeph[i].ecart);
346 fprintf(out,
"CDM phase %d : x=%lf +- %lf ,y=%lf +- %lf ,z=%lf +- %lf \n",i+1,
cdmphase[i].get_x(),
cdmephase[i].get_x(),
cdmphase[i].get_y(),
cdmephase[i].get_y(),
cdmphase[i].get_z(),
cdmephase[i].get_z());
348 fprintf(out,
"----------------------------------------------------------\n");
355 fprintf(out,
"----------------------------------------------------------\n");
356 fprintf(out,
"tenseur orientation axe 1\n");
357 for (
int ii=0;ii<3;ii++)
359 for (
int jj=0;jj<3;jj++)
360 fprintf(out,
"%lf +- %lf ",
tens1m(ii,jj).get_x(),
tens1e(ii,jj).get_x());
363 fprintf(out,
"----------------------------------------------------------\n");
364 fprintf(out,
"tenseur orientation axe 2\n");
365 for (
int ii=0;ii<3;ii++)
367 for (
int jj=0;jj<3;jj++)
368 fprintf(out,
"%lf +- %lf ",
tens2m(ii,jj).get_x(),
tens2e(ii,jj).get_x());
371 fprintf(out,
"----------------------------------------------------------\n");
372 fprintf(out,
"tenseur orientation axe 3\n");
373 for (
int ii=0;ii<3;ii++)
375 for (
int jj=0;jj<3;jj++)
376 fprintf(out,
"%lf +- %lf ",
tens3m(ii,jj).get_x(),
tens3e(ii,jj).get_x());
379 fprintf(out,
"----------------------------------------------------------\n");
390 fprintf(out,
";;;;;;;;;%d;%lf;%lf;%lf;%lf;%lf;%lf;;%lf;%lf;;",i+1,
tab[n].
KDH,
tab[n].
GDH,
tab[n].
EDH,
tab[n].
KCH,
tab[n].
GCH,
tab[n].
ECH,
cumEDH[i],
cumECH[i]);
398 for (
int ii=0;ii<3;ii++)
399 for (
int jj=0;jj<3;jj++)
401 ecartiso1=ecartiso1+(
tab[n].tens1(ii,jj).get_x()-t(ii,jj).get_x())*(
tab[n].tens1(ii,jj).get_x()-t(ii,jj).get_x());
402 ecartiso2=ecartiso2+(
tab[n].tens2(ii,jj).get_x()-t(ii,jj).get_x())*(
tab[n].tens2(ii,jj).get_x()-t(ii,jj).get_x());
403 ecartiso3=ecartiso3+(
tab[n].tens3(ii,jj).get_x()-t(ii,jj).get_x())*(
tab[n].tens3(ii,jj).get_x()-t(ii,jj).get_x());
405 double ecartiso=1.-(
sqrt(ecartiso1)+
sqrt(ecartiso2)+
sqrt(ecartiso3))/27.;
407 fprintf(out,
"%lf;%lf;;",ecartiso,
cumiso[i]/((
double)i+1));
411 fprintf(out,
";;%lf;%lf;%lf;%lf;%lf;%lf",
tab[n].Evoigt,
tab[n].Ereuss,
tab[n].Kvoigt,
tab[n].Kreuss,
tab[n].Gvoigt,
tab[n].Greuss);
430 char typecalcul[500];
431 if (degre==1) strcpy(typecalcul,
"Linéaire");
432 if (degre==2) strcpy(typecalcul,
"Quadratique");
433 double xcible=0.5*(xmin+xmax);
434 double ycible=0.5*(ymin+ymax);
435 double zcible=0.5*(zmin+zmax);
439 char nomoutsvg[5000];
441 sprintf(nomdata,
"%s%d.txt",nom,nbessai+1);
442 sprintf(nomout,
"%s%dK.gnu",nom,nbessai+1);
443 sprintf(nomoutsvg,
"%s%dK.svg",nom,nbessai+1);
444 FILE *out=fopen((
char*)nomout,
"wt");
445 fprintf(out,
"set terminal svg\n");
446 fprintf(out,
"set output \"%s\"\n", nomoutsvg);
447 fprintf(out,
"set datafile separator \";\"\n");
448 fprintf(out,
"set key on outside bottom center horizontal\n");
449 fprintf(out,
"set xlabel 'Numéro d''essai'\n");
450 fprintf(out,
"set ylabel 'Module de compressibilité K (GPa)'\n");
451 fprintf(out,
"set y2label 'Écart à l''isotropie'\n");
452 fprintf(out,
"set pointsize 1\n");
453 fprintf(out,
"set autoscale x\n");
455 fprintf(out,
"stats '%s' using ($%d/1e9) name 'YX'\n",nomdata,37+9*
tab[
listeessai[nbessai][0]].nbphase);
456 fprintf(out,
"stats '%s' using ($%d/1e9) name 'YN'\n",nomdata,38+9*
tab[
listeessai[nbessai][0]].nbphase);
457 fprintf(out,
"delta = (YX_max - YN_min) * 0.05\n");
458 fprintf(out,
"ymin_zoom = YN_min - delta\n");
459 fprintf(out,
"ymax_zoom = YX_max + delta\n");
460 fprintf(out,
"set yrange [ymin_zoom:ymax_zoom]\n");
461 fprintf(out,
"set y2tics 0.5,0.1,1\n");
462 fprintf(out,
"set y2r [0.8:1]\n");
463 fprintf(out,
"set ytics nomirror\n");
464 fprintf(out,
"set xtics nomirror\n");
466 fprintf(out,
"d(x)=dd\n");
467 fprintf(out,
"fit d(x) '%s' u :($11/1e9) via dd\n",nomdata);
468 fprintf(out,
"c(x)=cc\n");
469 fprintf(out,
"fit c(x) '%s' u :($14/1e9) via cc\n",nomdata);
470 fprintf(out,
"is(x)=is\n");
471 fprintf(out,
"fit is(x) '%s' u :($21) via is\n",nomdata);
473 fprintf(out,
"set title \"Résultat Homogéinisation \\n %s\\n %d cristaux - Calcul %s\"\n",
param.
get_nom(
"nommateriau").c_str(),
tab[
listeessai[nbessai][0]].nbcristaux,typecalcul);
474 fprintf(out,
"plot '%s' u 10 :($11/1e9) title 'KDH' pointtype 7 lc rgb \"blue\", '%s' u 10 :($14/1e9) title 'KCH' pointtype 7 lc rgb \"red\",'%s' u 10 : ($%d/1e9) title 'Borne Voigt' w l lc rgb \"brown\" lw 2,'%s' u 10 : ($%d/1e9) title 'Borne Reuss' w l lc rgb \"orange\" lw 2, '%s' u 10:21 axis x1y2 title 'Isotropie' lc rgb \"green\" pointtype 3,c(x) title sprintf(\"moyenne %%.1f\",cc) lc rgb \"red\" dt 2 ,d(x) title sprintf(\"moyenne %%.1f\",dd) lc rgb \"blue\" dt 2, is(x) title sprintf(\"moyenne %%.2f\",is) axis x1y2 lc rgb \"green\" dt 2\n", nomdata,nomdata, nomdata,37+9*
tab[
listeessai[nbessai][0]].nbphase, nomdata,38+9*
tab[
listeessai[nbessai][0]].nbphase,nomdata);
476 sprintf(
execute,
"gnuplot %s > %s.log 2>&1",nomout,nomout);
479 sprintf(nomdata,
"%s%d.txt",nom,nbessai+1);
480 sprintf(nomout,
"%s%dG.gnu",nom,nbessai+1);
481 sprintf(nomoutsvg,
"%s%dG.svg",nom,nbessai+1);
482 out=fopen((
char*)nomout,
"wt");
483 fprintf(out,
"set terminal svg\n");
484 fprintf(out,
"set output \"%s\"\n", nomoutsvg);
485 fprintf(out,
"set datafile separator \";\"\n");
486 fprintf(out,
"set key on outside bottom center horizontal\n");
487 fprintf(out,
"set xlabel 'Numéro d''essai'\n");
488 fprintf(out,
"set ylabel 'Module de Coulomb G (GPa)'\n");
489 fprintf(out,
"set y2label 'Écart à l''isotropie'\n");
490 fprintf(out,
"set pointsize 1\n");
491 fprintf(out,
"set autoscale x\n");
493 fprintf(out,
"stats '%s' using ($%d/1e9) name 'YX'\n",nomdata,39+9*
tab[
listeessai[nbessai][0]].nbphase);
494 fprintf(out,
"stats '%s' using ($%d/1e9) name 'YN'\n",nomdata,40+9*
tab[
listeessai[nbessai][0]].nbphase);
495 fprintf(out,
"delta = (YX_max - YN_min) * 0.05\n");
496 fprintf(out,
"ymin_zoom = YN_min - delta\n");
497 fprintf(out,
"ymax_zoom = YX_max + delta\n");
498 fprintf(out,
"set yrange [ymin_zoom:ymax_zoom]\n");
499 fprintf(out,
"set y2tics 0.5,0.1,1\n");
500 fprintf(out,
"set y2r [0.8:1]\n");
501 fprintf(out,
"set ytics nomirror\n");
502 fprintf(out,
"set xtics nomirror\n");
504 fprintf(out,
"d(x)=dd\n");
505 fprintf(out,
"fit d(x) '%s' u :($12/1e9) via dd\n",nomdata);
506 fprintf(out,
"c(x)=cc\n");
507 fprintf(out,
"fit c(x) '%s' u :($15/1e9) via cc\n",nomdata);
508 fprintf(out,
"is(x)=is\n");
509 fprintf(out,
"fit is(x) '%s' u :($21) via is\n",nomdata);
511 fprintf(out,
"set title \"Résultat Homogéinisation \\n %s\\n %d cristaux - Calcul %s\"\n",
param.
get_nom(
"nommateriau").c_str(),
tab[
listeessai[nbessai][0]].nbcristaux,typecalcul);
512 fprintf(out,
"plot '%s' u 10 :($12/1e9) title 'GDH' pointtype 7 lc rgb \"blue\", '%s' u 10 :($15/1e9) title 'GCH' pointtype 7 lc rgb \"red\",'%s' u 10 : ($%d/1e9) title 'Borne Voigt' w l lc rgb \"brown\" lw 2,'%s' u 10 : ($%d/1e9) title 'Borne Reuss' w l lc rgb \"orange\" lw 2, '%s' u 10:21 axis x1y2 title 'Isotropie' lc rgb \"green\" pointtype 3,c(x) title sprintf(\"moyenne %%.1f\",cc) lc rgb \"red\" dt 2 ,d(x) title sprintf(\"moyenne %%.1f\",dd) lc rgb \"blue\" dt 2, is(x) title sprintf(\"moyenne %%.2f\",is) axis x1y2 lc rgb \"green\" dt 2\n", nomdata,nomdata, nomdata,39+9*
tab[
listeessai[nbessai][0]].nbphase, nomdata,40+9*
tab[
listeessai[nbessai][0]].nbphase,nomdata);
514 sprintf(
execute,
"gnuplot %s > %s.log 2>&1",nomout,nomout);
517 sprintf(nomdata,
"%s%d.txt",nom,nbessai+1);
518 sprintf(nomout,
"%s%dE.gnu",nom,nbessai+1);
519 sprintf(nomoutsvg,
"%s%dE.svg",nom,nbessai+1);
520 out=fopen((
char*)nomout,
"wt");
521 fprintf(out,
"set terminal svg\n");
522 fprintf(out,
"set output \"%s\"\n", nomoutsvg);
523 fprintf(out,
"set datafile separator \";\"\n");
524 fprintf(out,
"set key on outside bottom center horizontal\n");
525 fprintf(out,
"set xlabel 'Numéro d''essai'\n");
526 fprintf(out,
"set ylabel 'Module d''Young E (GPa)'\n");
527 fprintf(out,
"set y2label 'Écart à l''isotropie'\n");
528 fprintf(out,
"set pointsize 1\n");
529 fprintf(out,
"set autoscale x\n");
531 fprintf(out,
"stats '%s' using ($%d/1e9) name 'YX'\n",nomdata,35+9*
tab[
listeessai[nbessai][0]].nbphase);
532 fprintf(out,
"stats '%s' using ($%d/1e9) name 'YN'\n",nomdata,36+9*
tab[
listeessai[nbessai][0]].nbphase);
533 fprintf(out,
"delta = (YX_max - YN_min) * 0.05\n");
534 fprintf(out,
"ymin_zoom = YN_min - delta\n");
535 fprintf(out,
"ymax_zoom = YX_max + delta\n");
536 fprintf(out,
"set yrange [ymin_zoom:ymax_zoom]\n");
537 fprintf(out,
"set y2tics 0.5,0.1,1\n");
538 fprintf(out,
"set y2r [0.8:1]\n");
539 fprintf(out,
"set ytics nomirror\n");
540 fprintf(out,
"set xtics nomirror\n");
542 fprintf(out,
"d(x)=dd\n");
543 fprintf(out,
"fit d(x) '%s' u :($13/1e9) via dd\n",nomdata);
544 fprintf(out,
"c(x)=cc\n");
545 fprintf(out,
"fit c(x) '%s' u :($16/1e9) via cc\n",nomdata);
546 fprintf(out,
"is(x)=is\n");
547 fprintf(out,
"fit is(x) '%s' u :($21) via is\n",nomdata);
549 fprintf(out,
"set title \"Résultat Homogéinisation \\n %s\\n %d cristaux - Calcul %s\"\n",
param.
get_nom(
"nommateriau").c_str(),
tab[
listeessai[nbessai][0]].nbcristaux,typecalcul);
550 fprintf(out,
"plot '%s' u 10 :($13/1e9) title 'EDH' pointtype 7 lc rgb \"blue\", '%s' u 10 :($16/1e9) title 'ECH' pointtype 7 lc rgb \"red\",'%s' u 10 : ($%d/1e9) title 'Borne Voigt' w l lc rgb \"brown\" lw 2,'%s' u 10 : ($%d/1e9) title 'Borne Reuss' w l lc rgb \"orange\" lw 2, '%s' u 10:21 axis x1y2 title 'Isotropie' lc rgb \"green\" pointtype 3,c(x) title sprintf(\"moyenne %%.1f\",cc) lc rgb \"red\" dt 2 ,d(x) title sprintf(\"moyenne %%.1f\",dd) lc rgb \"blue\" dt 2, is(x) title sprintf(\"moyenne %%.2f\",is) axis x1y2 lc rgb \"green\" dt 2\n", nomdata,nomdata, nomdata,35+9*
tab[
listeessai[nbessai][0]].nbphase, nomdata,36+9*
tab[
listeessai[nbessai][0]].nbphase,nomdata);
552 sprintf(
execute,
"gnuplot %s > %s.log 2>&1",nomout,nomout);
555 sprintf(nomout,
"%s%dcum.gnu",nom,nbessai+1);
556 sprintf(nomoutsvg,
"%s%dcum.svg",nom,nbessai+1);
557 out=fopen((
char*)nomout,
"wt");
558 fprintf(out,
"set terminal svg\n");
559 fprintf(out,
"set output \"%s\"\n", nomoutsvg);
560 fprintf(out,
"set multiplot layout 2,1\n");
561 fprintf(out,
"set datafile separator \";\"\n");
562 fprintf(out,
"set key on outside bottom center horizontal\n");
563 fprintf(out,
"set ylabel 'Module d''Young E (GPa)'\n");
564 fprintf(out,
"set pointsize 1\n");
565 fprintf(out,
"set autoscale x\n");
566 fprintf(out,
"set autoscale y\n");
567 fprintf(out,
"set ytics nomirror\n");
568 fprintf(out,
"set xtics nomirror\n");
570 fprintf(out,
"d(x)=dd\n");
571 fprintf(out,
"fit d(x) '%s' u :($13/1e9) via dd\n",nomdata);
572 fprintf(out,
"c(x)=cc\n");
573 fprintf(out,
"fit c(x) '%s' u :($16/1e9) via cc\n",nomdata);
574 fprintf(out,
"is(x)=is\n");
575 fprintf(out,
"fit is(x) '%s' u :($21) via is\n",nomdata);
577 fprintf(out,
"set title \"Résultat Homogéinisation - Moyenne des n premiers échantillons\\n %s\\n %d cristaux - Calcul %s\"\n",
param.
get_nom(
"nommateriau").c_str(),
tab[
listeessai[nbessai][0]].nbcristaux,typecalcul);
578 fprintf(out,
"set size 1,0.70\n");
579 fprintf(out,
"set origin 0,0.3\n");
580 fprintf(out,
"plot '%s' u 10 :($18/1e9) title 'EDH' w l lc rgb \"blue\", '%s' u 10 :($19/1e9) title 'ECH' w l lc rgb \"red\",c(x) title sprintf(\"moyenne %%.1f\",cc) lc rgb \"red\" dt 2 ,d(x) title sprintf(\"moyenne %%.1f\",dd) lc rgb \"blue\" dt 2\n", nomdata,nomdata);
581 fprintf(out,
"unset title\n");
582 fprintf(out,
"set size 1,0.3\n");
583 fprintf(out,
"set origin 0,0\n");
585 fprintf(out,
"set xlabel 'Numéro d''essai'\n");
586 fprintf(out,
"set ytics 0.9,0.02,1\n");
587 fprintf(out,
"stats '%s' using 22 nooutput\n",nomdata);
588 fprintf(out,
"if (STATS_min < 0.96) {\n");
589 fprintf(out,
" set yrange [*:1]\n");
590 fprintf(out,
"} else {\n");
591 fprintf(out,
" set yrange [0.96:1]\n");
594 fprintf(out,
"set ylabel 'Écart à l''isotropie'\n");
595 fprintf(out,
"plot '%s' u 10:22 w l axis x1y1 title 'Isotropie' lc rgb \"green\",is(x) title sprintf(\"moyenne %%.2f\",is) axis x1y1 lc rgb \"green\" dt 2\n", nomdata);
596 fprintf(out,
"unset multiplot\n");
598 sprintf(
execute,
"gnuplot %s > %s.log 2>&1",nomout,nomout);
601 sprintf(nomoutsvg,
"%s%dmv.svg",nom,nbessai+1);
602 sprintf(nomout,
"%s%dmv.gnu",nom,nbessai+1);
603 out=fopen((
char*)nomout,
"wt");
604 fprintf(out,
"set terminal svg\n");
605 fprintf(out,
"set output \"%s\"\n", nomoutsvg);
606 fprintf(out,
"set datafile separator \";\"\n");
607 fprintf(out,
"set key on outside bottom center horizontal\n");
608 fprintf(out,
"set pointsize 1\n");
609 fprintf(out,
"set autoscale x\n");
610 fprintf(out,
"set autoscale y\n");
611 fprintf(out,
"set autoscale y2\n");
612 fprintf(out,
"set y2tics\n");
613 fprintf(out,
"set ytics nomirror\n");
614 fprintf(out,
"set title \"Volume et masse des échantillons \\n%s\\n %d cristaux - Calcul %s\"\n",
param.
get_nom(
"nommateriau").c_str(),
tab[
listeessai[nbessai][0]].nbcristaux,typecalcul);
615 fprintf(out,
"set xlabel 'Numéro d''essai'\n");
616 fprintf(out,
"set ylabel 'Volume'\n");
617 fprintf(out,
"set y2label 'Masse'\n");
618 fprintf(out,
"plot '%s' u 10 : 24 title 'Volume' pointtype 6 lc rgb \"blue\", '%s' u 10 : 25 title 'Masse' axis x1y2 pointtype 6 lc rgb \"red\"\n", nomdata,nomdata);
620 sprintf(
execute,
"gnuplot %s > %s.log 2>&1",nomout,nomout);
623 sprintf(nomoutsvg,
"%s%dcdm.svg",nom,nbessai+1);
624 sprintf(nomout,
"%s%dcdm.gnu",nom,nbessai+1);
625 out=fopen((
char*)nomout,
"wt");
626 fprintf(out,
"set terminal svg\n");
627 fprintf(out,
"set output \"%s\"\n", nomoutsvg);
628 fprintf(out,
"set datafile separator \";\"\n");
629 fprintf(out,
"set key on outside bottom center horizontal\n");
630 fprintf(out,
"set pointsize 1\n");
631 fprintf(out,
"set autoscale x\n");
632 fprintf(out,
"set autoscale y\n");
633 fprintf(out,
"set title \"Centre de masse des échantillons \\n %s\\n %d cristaux - Calcul %s\"\n",
param.
get_nom(
"nommateriau").c_str(),
tab[
listeessai[nbessai][0]].nbcristaux,typecalcul);
634 fprintf(out,
"set xlabel 'Numéro d''essai'\n");
635 fprintf(out,
"set ylabel 'Volume'\n");
636 fprintf(out,
"plot '%s' u 10 : 26 title 'CDMx' pointtype 6 lc rgb \"blue\", '%s' u 10 : 27 title 'CDMy' pointtype 6 lc rgb \"red\", '%s' u 10 : 28 title 'CDMz' pointtype 6 lc rgb \"green\", %lf notitle dt 2 lc rgb \"blue\", %lf notitle dt 2 lc rgb \"red\", %lf notitle dt 2 lc rgb \"green\"\n",nomdata, nomdata,nomdata,xcible,ycible,zcible);
638 sprintf(
execute,
"gnuplot %s > %s.log 2>&1",nomout,nomout);
641 sprintf(nomoutsvg,
"%s%dcdmcum.svg",nom,nbessai+1);
642 sprintf(nomout,
"%s%dcdmcum.gnu",nom,nbessai+1);
643 out=fopen((
char*)nomout,
"wt");
644 fprintf(out,
"set terminal svg\n");
645 fprintf(out,
"set output \"%s\"\n", nomoutsvg);
646 fprintf(out,
"set datafile separator \";\"\n");
647 fprintf(out,
"set key on outside bottom center horizontal\n");
648 fprintf(out,
"set pointsize 1\n");
649 fprintf(out,
"set autoscale x\n");
650 fprintf(out,
"set autoscale y\n");
651 fprintf(out,
"set title \"Position moyenne des CDM des n premiers échantillons\\n %s\\n %d cristaux - Calcul %s\"\n",
param.
get_nom(
"nommateriau").c_str(),
tab[
listeessai[nbessai][0]].nbcristaux,typecalcul);
652 fprintf(out,
"set xlabel 'Numéro d''essai'\n");
653 fprintf(out,
"set ylabel 'Volume'\n");
654 fprintf(out,
"plot '%s' u 10 : 29 title 'CDMx' w l lc rgb \"blue\", '%s' u 10 : 30 title 'CDMy' w l lc rgb \"red\", '%s' u 10 : 31 title 'CDMz' w l lc rgb \"green\", %lf notitle dt 2 lc rgb \"blue\", %lf notitle dt 2 lc rgb \"red\", %lf notitle dt 2 lc rgb \"green\"\n",nomdata, nomdata,nomdata,xcible,ycible,zcible);
656 sprintf(
execute,
"gnuplot %s > %s.log 2>&1",nomout,nomout);
662 sprintf(nomoutsvg,
"%s%dph%dmv.svg",nom,nbessai+1,j+1);
663 sprintf(nomout,
"%s%dph%dmv.gnu",nom,nbessai+1,j+1);
664 out=fopen((
char*)nomout,
"wt");
665 fprintf(out,
"set terminal svg\n");
666 fprintf(out,
"set output \"%s\"\n", nomoutsvg);
667 fprintf(out,
"set datafile separator \";\"\n");
668 fprintf(out,
"set key on outside bottom center horizontal\n");
669 fprintf(out,
"set pointsize 1\n");
670 fprintf(out,
"set autoscale x\n");
671 fprintf(out,
"set autoscale y\n");
672 fprintf(out,
"set autoscale y2\n");
673 fprintf(out,
"set y2tics\n");
674 fprintf(out,
"set ytics nomirror\n");
675 fprintf(out,
"set title \"Volume et masse de la phase %d des échantillons \\n%s\\n %d cristaux - Calcul %s\"\n",j+1,
param.
get_nom(
"nommateriau").c_str(),
tab[
listeessai[nbessai][0]].nbcristaux,typecalcul);
676 fprintf(out,
"set xlabel 'Numéro d''essai'\n");
677 fprintf(out,
"set ylabel 'Volume'\n");
678 fprintf(out,
"set y2label 'Masse'\n");
679 fprintf(out,
"plot '%s' u 10 : %d title 'Volume' pointtype 6 lc rgb \"blue\", '%s' u 10 : %d title 'Masse' axis x1y2 pointtype 6 lc rgb \"red\"\n", nomdata,33+9*j,nomdata,34+9*j);
681 sprintf(
execute,
"gnuplot %s > %s.log 2>&1",nomout,nomout);
683 sprintf(nomoutsvg,
"%s%dph%dcdm.svg",nom,nbessai+1,j+1);
684 sprintf(nomout,
"%s%dph%dcdm.gnu",nom,nbessai+1,j+1);
685 out=fopen((
char*)nomout,
"wt");
686 fprintf(out,
"set terminal svg\n");
687 fprintf(out,
"set output \"%s\"\n", nomoutsvg);
688 fprintf(out,
"set datafile separator \";\"\n");
689 fprintf(out,
"set key on outside bottom center horizontal\n");
690 fprintf(out,
"set pointsize 1\n");
691 fprintf(out,
"set autoscale x\n");
692 fprintf(out,
"set autoscale y\n");
693 fprintf(out,
"set title \"Centre de masse de la phase %d des échantillons \\n %s\\n %d cristaux - Calcul %s\"\n",j+1,
param.
get_nom(
"nommateriau").c_str(),
tab[
listeessai[nbessai][0]].nbcristaux,typecalcul);
694 fprintf(out,
"set xlabel 'Numéro d''essai'\n");
695 fprintf(out,
"set ylabel 'Volume'\n");
696 fprintf(out,
"plot '%s' u 10 : %d title 'CDMx' pointtype 6 lc rgb \"blue\", '%s' u 10 : %d title 'CDMy' pointtype 6 lc rgb \"red\", '%s' u 10 : %d title 'CDMz' pointtype 6 lc rgb \"green\", %lf notitle dt 2 lc rgb \"blue\", %lf notitle dt 2 lc rgb \"red\", %lf notitle dt 2 lc rgb \"green\"\n",nomdata,35+9*j,nomdata,36+9*j,nomdata,37+9*j,xcible,ycible,zcible);
698 sprintf(
execute,
"gnuplot %s > %s.log 2>&1",nomout,nomout);
700 sprintf(nomoutsvg,
"%s%dph%dcdmcum.svg",nom,nbessai+1,j+1);
701 sprintf(nomout,
"%s%dph%dcdmcum.gnu",nom,nbessai+1,j+1);
702 out=fopen((
char*)nomout,
"wt");
703 fprintf(out,
"set terminal svg\n");
704 fprintf(out,
"set output \"%s\"\n", nomoutsvg);
705 fprintf(out,
"set datafile separator \";\"\n");
706 fprintf(out,
"set key on outside bottom center horizontal\n");
707 fprintf(out,
"set pointsize 1\n");
708 fprintf(out,
"set autoscale x\n");
709 fprintf(out,
"set autoscale y\n");
710 fprintf(out,
"set title \"Position moyenne des CDM de la phase %d des n premiers échantillons\\n %s\\n %d cristaux - Calcul %s\"\n",j+1,
param.
get_nom(
"nommateriau").c_str(),
tab[
listeessai[nbessai][0]].nbcristaux,typecalcul);
711 fprintf(out,
"set xlabel 'Numéro d''essai'\n");
712 fprintf(out,
"set ylabel 'Volume'\n");
713 fprintf(out,
"plot '%s' u 10 : %d title 'CDMx' w l lc rgb \"blue\", '%s' u 10 : %d title 'CDMy' w l lc rgb \"red\", '%s' u 10 : %d title 'CDMz' w l lc rgb \"green\", %lf notitle dt 2 lc rgb \"blue\", %lf notitle dt 2 lc rgb \"red\", %lf notitle dt 2 lc rgb \"green\"\n",nomdata,38+9*j, nomdata,39+9*j,nomdata,40+9*j,xcible,ycible,zcible);
715 sprintf(
execute,
"gnuplot %s > %s.log 2>&1",nomout,nomout);