1 |
couturad |
919 |
#ifndef _MSTRUCT_VER_ |
2 |
|
|
#define _MSTRUCT_VER_ |
3 |
|
|
#include <fstream> |
4 |
|
|
#include <vector> |
5 |
|
|
#include "ot_parametres.h" |
6 |
|
|
class BOITE_3D; |
7 |
|
|
|
8 |
|
|
namespace MICROSTRUCTURE |
9 |
|
|
{ |
10 |
|
|
typedef void fonction_affiche(char *); |
11 |
|
|
|
12 |
|
|
class VER_ANALYSE |
13 |
|
|
{ |
14 |
|
|
|
15 |
|
|
}; |
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
class VER |
21 |
|
|
{ |
22 |
|
|
public: |
23 |
|
|
VER(void); |
24 |
|
|
~VER(void); |
25 |
|
|
int homogeneisation(char* fichier_liste_ves,std::vector<OT_PARAMETRES*> &vector_params,char* fichier_resultats); |
26 |
|
|
|
27 |
|
|
void active_affichage(fonction_affiche *fonc); |
28 |
|
|
void affiche(char *message); |
29 |
|
|
|
30 |
|
|
protected: |
31 |
|
|
int export_moyenne_volumique_champ(std::string nom_champ, |
32 |
|
|
int num_solution, |
33 |
|
|
std::vector<std::string> &vector_nom_fichier_ves, |
34 |
|
|
std::ostream& o, |
35 |
|
|
std::string nom_groupe_forme="", |
36 |
|
|
BOITE_3D* boite_analyse=NULL, |
37 |
|
|
int liste_resultat=0, |
38 |
|
|
char* fichier_liste_resultat=(char*)""); |
39 |
|
|
|
40 |
|
|
int export_fraction_volumique_CAD(std::vector<std::string> &vector_nom_fichier_ves, |
41 |
|
|
std::ostream& o, |
42 |
|
|
std::string nom_groupe_forme="", |
43 |
|
|
int liste_resultat=0, |
44 |
|
|
char* fichier_liste_resultat=(char*)""); |
45 |
|
|
|
46 |
|
|
int export_fraction_volumique_mg_maillage(std::vector<std::string> &vector_nom_fichier_ves, |
47 |
|
|
std::ostream& o, |
48 |
|
|
std::string nom_groupe_forme="", |
49 |
|
|
int liste_resultat=0, |
50 |
|
|
char* fichier_liste_resultat=(char*)""); |
51 |
|
|
|
52 |
|
|
int export_fraction_volumique_fem_maillage(std::vector<std::string> &vector_nom_fichier_ves, |
53 |
|
|
std::ostream& o, |
54 |
|
|
std::string nom_groupe_forme="", |
55 |
|
|
BOITE_3D *boite_analyse=NULL, |
56 |
|
|
int liste_resultat=0, |
57 |
|
|
char* fichier_liste_resultat=(char*)""); |
58 |
|
|
|
59 |
|
|
int export_tenseur_orientation(std::vector<std::string> &vector_nom_fichier_ves, |
60 |
|
|
std::ostream& o, |
61 |
|
|
std::string nom_groupe_forme, |
62 |
|
|
int liste_resultat=0, |
63 |
|
|
char* fichier_liste_resultat=(char*)""); |
64 |
|
|
|
65 |
|
|
int export_liste_resultat(char* fichier,int dim_champ, |
66 |
|
|
std::vector<double*> &vector_champ, |
67 |
|
|
std::string description); |
68 |
|
|
|
69 |
|
|
int compare_champ_theorie(std::vector<double*> &vector_champ, |
70 |
|
|
int dim_champ, |
71 |
|
|
double* val_theorique_champ, |
72 |
|
|
std::ostream& o, |
73 |
|
|
std::string nom_groupe_forme, |
74 |
|
|
int liste_resultat=0, |
75 |
|
|
char* fichier_liste_resultat=(char*)"", |
76 |
|
|
int intervalles=1); |
77 |
|
|
|
78 |
|
|
void get_nom_fichier_dossier(std::string chemin_complet, std::string &nom_fichier, std::string &dossier); |
79 |
|
|
int affichageactif; |
80 |
|
|
fonction_affiche *fonc_affiche; |
81 |
|
|
}; |
82 |
|
|
} |
83 |
|
|
#endif |