1 |
francois |
756 |
//------------------------------------------------------------ |
2 |
|
|
//------------------------------------------------------------ |
3 |
|
|
// MAGiC |
4 |
|
|
// Jean Christophe Cuilli�re et Vincent FRANCOIS |
5 |
|
|
// D�partement de G�nie M�canique - UQTR |
6 |
|
|
//------------------------------------------------------------ |
7 |
|
|
// Le projet MAGIC est un projet de recherche du d�partement |
8 |
|
|
// de g�nie m�canique de l'Universit� du Qu�bec � |
9 |
|
|
// Trois Rivi�res |
10 |
|
|
// Les librairies ne peuvent �tre utilis�es sans l'accord |
11 |
|
|
// des auteurs (contact : francois@uqtr.ca) |
12 |
|
|
//------------------------------------------------------------ |
13 |
|
|
//------------------------------------------------------------ |
14 |
|
|
// |
15 |
|
|
// mg_ver.h |
16 |
|
|
// |
17 |
|
|
//------------------------------------------------------------ |
18 |
|
|
//------------------------------------------------------------ |
19 |
|
|
// COPYRIGHT 2000 |
20 |
|
|
// Version du 02/03/2006 � 11H23 |
21 |
|
|
//------------------------------------------------------------ |
22 |
|
|
//------------------------------------------------------------ |
23 |
couturad |
772 |
#ifndef _VE_VER_ |
24 |
|
|
#define _VE_VER_ |
25 |
francois |
756 |
|
26 |
couturad |
772 |
#include "ot_parametres.h" |
27 |
|
|
#include "ve_definition.h" |
28 |
|
|
#include "tpl_map_entite.h" |
29 |
|
|
|
30 |
|
|
class MG_GESTIONNAIRE; |
31 |
|
|
class MG_ARBRE; |
32 |
|
|
class MG_ASSEMBLAGE; |
33 |
|
|
class VE_GEN_VER; |
34 |
|
|
class VE_INCLUSION; |
35 |
|
|
class FCT_TAILLE; |
36 |
|
|
class MG_FACE; |
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
typedef void fonction_affiche(char *); |
43 |
|
|
|
44 |
|
|
class VE_VER |
45 |
francois |
756 |
{ |
46 |
|
|
public : |
47 |
couturad |
772 |
|
48 |
|
|
VE_VER(); |
49 |
|
|
VE_VER(VE_VER &mdd); |
50 |
|
|
~VE_VER(); |
51 |
francois |
756 |
|
52 |
couturad |
772 |
int construire(void); |
53 |
francois |
756 |
|
54 |
couturad |
772 |
MG_GESTIONNAIRE *get_gestionnaire(void); |
55 |
|
|
MG_ARBRE *get_arbre(void); |
56 |
|
|
MG_ASSEMBLAGE *get_assemblage(void); |
57 |
|
|
|
58 |
|
|
void active_affichage(fonction_affiche *fonc); |
59 |
|
|
void affiche(char *message); |
60 |
|
|
void lire_param_VER(char* fichier); |
61 |
|
|
void ecrire_param_VER(char *fichier); |
62 |
|
|
|
63 |
|
|
protected: |
64 |
francois |
756 |
|
65 |
couturad |
772 |
int generer_VER_homogene(void); |
66 |
|
|
int generer_VER_une_inclusion(void); |
67 |
|
|
int generer_VER_aleatoire(void); |
68 |
francois |
756 |
|
69 |
couturad |
772 |
int evaluer_geometrie(void); |
70 |
|
|
int creer_mg_maillage(void); |
71 |
|
|
int creer_fem_maillage(void); |
72 |
|
|
int appliquer_conditions_limites(int type_chargement); |
73 |
|
|
int appliquer_conditions_limites_plan(TPL_MAP_ENTITE<MG_FACE*> *plan, char *condition, double valeur,bool topo_sous_jacente); |
74 |
|
|
int appliquer_conditions_limites_plan(TPL_MAP_ENTITE<MG_FACE*> *plan, char *condition, std::string formule,std::vector<std::string> &listvariable,bool topo_sous_jacente); |
75 |
|
|
|
76 |
|
|
int appliquer_materiaux(void); |
77 |
|
|
int calcul_aster(void); |
78 |
|
|
int homogeneisation(void); |
79 |
francois |
756 |
|
80 |
couturad |
772 |
int creer_carte(void); |
81 |
|
|
fonction_affiche *fonc_affiche; |
82 |
|
|
int affichageactif; |
83 |
|
|
|
84 |
|
|
MG_GESTIONNAIRE *gest; |
85 |
|
|
MG_ARBRE *arbre; |
86 |
|
|
MG_ASSEMBLAGE *assemblage; |
87 |
|
|
OT_PARAMETRES *param_ver; |
88 |
|
|
VE_GEN_VER *generateur_ver; |
89 |
|
|
FCT_TAILLE *metrique; |
90 |
|
|
double dim_VER[3]; |
91 |
|
|
|
92 |
francois |
756 |
}; |
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
#endif |