 |
MAGiC
V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
|
Aller à la documentation de ce fichier.
39 std::string identifiant,
40 long int id_fem_maillage,
41 double largeur_colonne_jacobien_2D_min,
42 double largeur_colonne_jacobien_2D_max,
43 double largeur_colonne_distortion_2D,
44 double largeur_colonne_jacobien_3D_min,
45 double largeur_colonne_jacobien_3D_max,
46 double largeur_colonne_distortion_3D,
47 std::string nom_groupe_forme,
372 if(groupe_forme!=NULL)
374 std::map<long,MG_CG_FORME*>::iterator it_forme;
382 std::map<long,MG_CG_FORME*>::iterator it_forme;
405 if(avec_entete) ofstrm <<
"#(1) volume(2) frac_vol(3) nb_ele_2D(4) nb_ele_3D(5) jacobien_min_2D[moy(6) ±(7) min(8) max(9)] jacobien_max_2D[moy(10) ±(11) min(12) max(13)] jacobien_min_3D[moy(14) ±(15) min(16) max(17)] jacobien_max_3D[moy(18) ±(19) min(20) max(21)] distortion_2D[moy(22) ±(23) min(24) max(25)] distortion_3D[moy(26) ±(27) min(28) max(29)]" << std::endl;
437 char nom_fichier[500];
440 sprintf(nom_fichier,
"%s/histo_%s_jacobien_min_2D.txt",prefix_graph,
m_identifiant.c_str());
441 std::ofstream of_histo_javcobien_min_2d(nom_fichier,std::ios::out|std::ios::trunc);
442 of_histo_javcobien_min_2d.precision(16);
443 of_histo_javcobien_min_2d.setf(std::ios::showpoint);
445 of_histo_javcobien_min_2d.close();
446 sprintf(nom_plot,
"%s/histo_%s_jacobien_min_2D.plt",prefix_graph,
m_identifiant.c_str());
452 sprintf(nom_fichier,
"histo_%s_jacobien_min_2D.txt",
m_identifiant.c_str());
455 sprintf(nom_fichier,
"%s/histo_%s_jacobien_max_2D.txt",prefix_graph,
m_identifiant.c_str());
456 std::ofstream of_histo_javcobien_max_2d(nom_fichier,std::ios::out|std::ios::trunc);
457 of_histo_javcobien_max_2d.precision(16);
458 of_histo_javcobien_max_2d.setf(std::ios::showpoint);
460 of_histo_javcobien_max_2d.close();
461 sprintf(nom_plot,
"%s/histo_%s_jacobien_max_2D.plt",prefix_graph,
m_identifiant.c_str());
467 sprintf(nom_fichier,
"histo_%s_jacobien_max_2D.txt",
m_identifiant.c_str());
470 sprintf(nom_fichier,
"%s/histo_%s_jacobien_min_3D.txt",prefix_graph,
m_identifiant.c_str());
471 std::ofstream of_histo_javcobien_min_3d(nom_fichier,std::ios::out|std::ios::trunc);
472 of_histo_javcobien_min_3d.precision(16);
473 of_histo_javcobien_min_3d.setf(std::ios::showpoint);
475 of_histo_javcobien_min_3d.close();
476 sprintf(nom_plot,
"%s/histo_%s_jacobien_min_3D.plt",prefix_graph,
m_identifiant.c_str());
482 sprintf(nom_fichier,
"histo_%s_jacobien_min_3D.txt",
m_identifiant.c_str());
485 sprintf(nom_fichier,
"%s/histo_%s_jacobien_max_3D.txt",prefix_graph,
m_identifiant.c_str());
486 std::ofstream of_histo_javcobien_max_3d(nom_fichier,std::ios::out|std::ios::trunc);
487 of_histo_javcobien_max_3d.precision(16);
488 of_histo_javcobien_max_3d.setf(std::ios::showpoint);
490 of_histo_javcobien_max_3d.close();
491 sprintf(nom_plot,
"%s/histo_%s_jacobien_max_3D.plt",prefix_graph,
m_identifiant.c_str());
497 sprintf(nom_fichier,
"histo_%s_jacobien_max_3D.txt",
m_identifiant.c_str());
500 sprintf(nom_fichier,
"%s/histo_%s_distortion_2D.txt",prefix_graph,
m_identifiant.c_str());
501 std::ofstream of_histo_distortion_2D(nom_fichier,std::ios::out|std::ios::trunc);
502 of_histo_distortion_2D.precision(16);
503 of_histo_distortion_2D.setf(std::ios::showpoint);
505 of_histo_distortion_2D.close();
506 sprintf(nom_plot,
"%s/histo_%s_distortion_2D.plt",prefix_graph,
m_identifiant.c_str());
512 sprintf(nom_fichier,
"histo_%s_distortion_2D.txt",
m_identifiant.c_str());
515 sprintf(nom_fichier,
"%s/histo_%s_distortion_3D.txt",prefix_graph,
m_identifiant.c_str());
516 std::ofstream of_histo_distortion_3D(nom_fichier,std::ios::out|std::ios::trunc);
517 of_histo_distortion_3D.precision(16);
518 of_histo_distortion_3D.setf(std::ios::showpoint);
520 of_histo_distortion_3D.close();
521 sprintf(nom_plot,
"%s/histo_%s_distortion_3D.plt",prefix_graph,
m_identifiant.c_str());
527 sprintf(nom_fichier,
"histo_%s_distortion_3D.txt",
m_identifiant.c_str());
535 ofstrm.write((
char*)&type_analyse,
sizeof(
long));
579 ofstrm.write((
char*)&
m_volume,
sizeof(
double));
629 ifstrm.read((
char*)&
m_volume,
sizeof(
double));
638 sprintf(ligne,
"MSTRUCT_ANALYSE_CAO");fonc(ligne);
705 sprintf(ligne,
"-> Volume : %lf",
m_volume); fonc(ligne);
virtual double get_jacobien_max_moyenne_3D(void)
OT_HISTOGRAMME m_2D_jacobien_histogramme_max
double m_3D_jacobien_min_min
virtual OT_HISTOGRAMME * get_distribution_jacobien_max_3D(void)
virtual double get_jacobien_min_min_2D(void)
double m_2D_jacobien_max_min
virtual double get_distortion_ecart_type_3D(void)
MG_CG_FORME * get_premiere_mgcg_forme(std::map< long, MG_CG_FORME * >::iterator &it)
virtual void enregistrer(std::ofstream &ofstrm)
virtual OT_HISTOGRAMME * get_distribution_jacobien_min_3D(void)
virtual OT_HISTOGRAMME * get_distribution_distortion_3D(void)
double m_3D_distortion_ecart_type
double m_3D_jacobien_min_moyenne
virtual void affiche_contenu(fonction_affiche *fonc)
double m_fraction_volumique
virtual FEM_MAILLAGE * get_fem_maillage(void)
double m_2D_distortion_ecart_type
double m_3D_distortion_min
static int statistiques_fem_maillage(FEM_MAILLAGE *fem, BOITE_3D *boite_analyse, TPL_MAP_ENTITE< MG_CG_FORME * > &tpl_map_forme, long &nb_element_2D, long &nb_element_3D, double &jacobien_min_moyenne_2D, double &jacobien_min_ecart_type_2D, double &jacobien_min_min_2D, double &jacobien_min_max_2D, OT_HISTOGRAMME &histogramme_jacobien_min_2D, double &jacobien_max_moyenne_2D, double &jacobien_max_ecart_type_2D, double &jacobien_max_min_2D, double &jacobien_max_max_2D, OT_HISTOGRAMME &histogramme_jacobien_max_2D, double &jacobien_min_moyenne_3D, double &jacobien_min_ecart_type_3D, double &jacobien_min_min_3D, double &jacobien_min_max_3D, OT_HISTOGRAMME &histogramme_jacobien_min_3D, double &jacobien_max_moyenne_3D, double &jacobien_max_ecart_type_3D, double &jacobien_max_min_3D, double &jacobien_max_max_3D, OT_HISTOGRAMME &histogramme_jacobien_max_3D, double &distortion_moyenne_2D, double &distortion_ecart_type_2D, double &distortion_min_2D, double &distortion_max_2D, OT_HISTOGRAMME &histogramme_distortion_2D, double &distortion_moyenne_3D, double &distortion_ecart_type_3D, double &distortion_min_3D, double &distortion_max_3D, OT_HISTOGRAMME &histogramme_distortion_3D, double &volume, double &fraction_volumique)
long get_nb_colonne(void)
~MSTRUCT_ANALYSE_FEM_MAILLAGE(void)
virtual void enregistrer(std::ofstream &ofstrm)
OT_HISTOGRAMME m_2D_jacobien_histogramme_min
BOITE_3D * m_boite_analyse
virtual MG_CG_FORME * get_suivante_mgcg_forme(std::map< long, MG_CG_FORME * >::iterator &it)
virtual double get_jacobien_max_max_2D(void)
virtual void exporter(std::ofstream &ofstrm, long i, bool avec_entete=false, bool avec_graph=false, char *prefix_graph=(char *)"")
MG_CG_GROUPE_FORME * get_mgcg_groupe_forme(std::string nom)
virtual double get_jacobien_max_ecart_type_2D(void)
std::string histogramme_titre
virtual double get_jacobien_min_min_3D(void)
double m_2D_jacobien_min_min
double m_3D_jacobien_min_ecart_type
virtual double get_jacobien_max_max_3D(void)
double m_3D_distortion_max
virtual double get_distortion_moyenne_3D(void)
virtual OT_HISTOGRAMME * get_distribution_jacobien_min_2D(void)
virtual double get_distortion_moyenne_2D(void)
virtual double get_jacobien_min_max_2D(void)
std::string m_nom_groupe_forme
virtual MG_CG_ASSEMBLAGE * get_mgcg_assemblage(void)
virtual MG_CG_MODELE * get_mgcg_modele(void)
double m_2D_distortion_max
double m_3D_distortion_moyenne
void enregistrer_bin(std::ofstream &ofstr)
virtual MG_CG_FORME * get_premiere_mgcg_forme(std::map< long, MG_CG_FORME * >::iterator &it)
virtual double get_jacobien_min_ecart_type_2D(void)
virtual long get_nb_element_3D(void)
virtual long get_nb_element_2D(void)
virtual double get_jacobien_max_ecart_type_3D(void)
double m_3D_jacobien_max_max
double m_3D_jacobien_max_ecart_type
virtual double get_jacobien_max_moyenne_2D(void)
double m_2D_jacobien_min_max
virtual double get_distortion_max_3D(void)
double m_3D_jacobien_min_max
virtual double get_distortion_min_2D(void)
void exporter(std::ofstream &ofstrm)
virtual double get_jacobien_max_min_3D(void)
MG_CG_FORME * get_suivante_mgcg_forme(std::map< long, MG_CG_FORME * >::iterator &it)
virtual double get_jacobien_min_ecart_type_3D(void)
double m_2D_jacobien_min_moyenne
virtual void executer(void)
virtual double get_distortion_min_3D(void)
double m_2D_distortion_min
virtual double get_volume(void)
virtual double get_distortion_ecart_type_2D(void)
virtual double get_jacobien_min_moyenne_3D(void)
virtual double get_fraction_volumique(void)
MSTRUCT_ANALYSE_FEM_MAILLAGE(void)
double m_2D_distortion_moyenne
virtual void ajouter(X x)
virtual OT_HISTOGRAMME * get_distribution_distortion_2D(void)
virtual long get_id_fem_maillage(void)
void ouvrir_bin(std::ifstream &ifstr)
virtual void affiche_contenu(fonction_affiche *fonc)
virtual double get_jacobien_min_max_3D(void)
double m_3D_jacobien_max_min
OT_HISTOGRAMME m_3D_distortion_histogramme
std::string m_identifiant
double m_3D_jacobien_max_moyenne
virtual long get_type(void)
double m_2D_jacobien_max_moyenne
void fonction_affiche(char *)
virtual double get_distortion_max_2D(void)
virtual void ouvrir(std::ifstream &ifstrm)
std::string histogramme_nom_fichier_eps
std::string histogramme_axeX_nom
void plot_script_histogramme(std::string data_histogramme, std::string output, bool aveccouleur=false)
double m_2D_jacobien_max_max
virtual double get_jacobien_max_min_2D(void)
OT_HISTOGRAMME m_3D_jacobien_histogramme_max
double get_largeur_colonne(void)
void fixe_largeur_colonne(double largeur_colonne)
virtual void ouvrir(std::ifstream &ifstrm)
virtual double get_jacobien_min_moyenne_2D(void)
std::string histogramme_axeY_nom
double m_2D_jacobien_max_ecart_type
OT_HISTOGRAMME m_2D_distortion_histogramme
OT_HISTOGRAMME m_3D_jacobien_histogramme_min
virtual OT_HISTOGRAMME * get_distribution_jacobien_max_2D(void)
double m_2D_jacobien_min_ecart_type