ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/optimisation/src/opt_triangle.h
Revision: 481
Committed: Tue Jan 28 16:10:58 2014 UTC (11 years, 3 months ago) by francois
Content type: text/plain
File size: 4395 byte(s)
Log Message:
unification de la facon d'ecrire les fichiers tous en minuscules

File Contents

# User Rev Content
1 gervaislavoie 332 //------------------------------------------------------------
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_triangle.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifndef _OPTTRIANGLE_
24     #define _OPTTRIANGLE_
25    
26     #ifdef WINDOWS_VERSION
27     #ifdef BUILT_DLL_GEOMETRIE
28     #define DLLPORTGEOMETRIE __declspec(dllexport)
29     #else
30     #define DLLPORTGEOMETRIE __declspec(dllimport)
31     #endif
32     #else
33     #define DLLPORTGEOMETRIE
34     #endif
35    
36    
37     #include "mg_element_maillage.h"
38     #include "mg_segment.h"
39     #include "mg_noeud.h"
40 francois 470 #include "opt_noeud.h"
41 gervaislavoie 332 #include "ot_reference.h"
42 francois 481 #include "ot_boite_2d.h"
43     #include "ot_boite_3d.h"
44 francois 470 //#include "mg_triangle.h"
45 gervaislavoie 332
46    
47     class DLLPORTGEOMETRIE OPT_TRIANGLE
48     {
49     public:
50 francois 470
51     OPT_TRIANGLE(class FEM_TRIANGLE3* fem_tri3,OPT_NOEUD* noeud1,OPT_NOEUD* noeud2,OPT_NOEUD* noeud3);
52 gervaislavoie 332 OPT_TRIANGLE(OPT_TRIANGLE& mdd);
53     virtual ~OPT_TRIANGLE();
54    
55 francois 470 virtual OPT_NOEUD* get_noeud1(void);
56     virtual OPT_NOEUD* get_noeud2(void);
57     virtual OPT_NOEUD* get_noeud3(void);
58 gervaislavoie 332
59     virtual unsigned long get_id(void);
60 gervaislavoie 382 virtual void change_normale_unitaire(OT_VECTEUR_3D vec);
61 francois 470
62 gervaislavoie 332 virtual double change_angle1_initial(double angle);
63     virtual double change_angle2_initial(double angle);
64     virtual double change_angle3_initial(double angle);
65     virtual double change_angle1(double angle);
66     virtual double change_angle2(double angle);
67     virtual double change_angle3(double angle);
68 gervaislavoie 398
69 francois 470 virtual OT_VECTEUR_3D get_normale_unitaire(void); //Enlever?
70    
71 gervaislavoie 392 virtual OT_MATRICE_3D get_jacobien_inverse(void);
72 gervaislavoie 398 virtual OT_MATRICE_3D get_matrice_abc(void);
73    
74 francois 470 virtual OT_MATRICE_3D change_jacobien_inverse(void);
75     virtual OT_MATRICE_3D change_matrice_abc(void);
76    
77     //virtual OT_MATRICE_3D get_jacobien_inverse_initial(void);
78     //virtual OT_MATRICE_3D get_matrice_abc_initiale(void);
79    
80     virtual OT_VECTEUR_3D get_vecteur_deplacement(void);
81     virtual void change_vecteur_deplacement(void);
82    
83     virtual double get_norme_gradient_deplacement(void);
84     virtual void change_norme_gradient_deplacement(void);
85    
86 gervaislavoie 332 virtual double get_angle1_initial(void);
87     virtual double get_angle2_initial(void);
88     virtual double get_angle3_initial(void);
89     virtual double get_angle1(void);
90     virtual double get_angle2(void);
91     virtual double get_angle3(void);
92    
93    
94     virtual int get_num(void);
95     virtual void change_num(int val);
96    
97     virtual OPT_TRIANGLE* get_voisin1(void);
98     virtual OPT_TRIANGLE* get_voisin2(void);
99     virtual OPT_TRIANGLE* get_voisin3(void);
100     virtual void change_voisin1(OPT_TRIANGLE* tri);
101     virtual void change_voisin2(OPT_TRIANGLE* tri);
102     virtual void change_voisin3(OPT_TRIANGLE* tri);
103    
104 francois 470
105 gervaislavoie 332 protected:
106 francois 470
107     class FEM_TRIANGLE3* fem_triangle3;
108     OPT_NOEUD* opt_noeud1;
109     OPT_NOEUD* opt_noeud2;
110     OPT_NOEUD* opt_noeud3;
111    
112 gervaislavoie 382 OT_VECTEUR_3D normale_unitaire;
113 francois 470 OT_MATRICE_3D dNi_transpose;
114 gervaislavoie 392 OT_MATRICE_3D jacobien_inverse;
115 francois 470 OT_MATRICE_3D matrice_abc;
116     //OT_MATRICE_3D jacobien_inverse_initial;
117     //OT_MATRICE_3D matrice_abc_initiale; // Matrice résultant du produit de la matrice jacobienne inverse initiale par la matrice des dérivées des fonctions d'interpolation
118     OT_VECTEUR_3D vec_deplacement; // Vecteur contenant les déplacements des noeuds par rapport à leur position initiale
119     double norme_gradient_deplacement;
120    
121 gervaislavoie 332 int num;
122     double a1_init;
123     double a2_init;
124     double a3_init;
125     double a1;
126     double a2;
127     double a3;
128     OPT_TRIANGLE* voisin1;
129     OPT_TRIANGLE* voisin2;
130     OPT_TRIANGLE* voisin3;
131     };
132    
133     #endif