ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/fem_noeud.h
Revision: 309
Committed: Tue Jan 24 15:25:16 2012 UTC (13 years, 3 months ago) by francois
Content type: text/plain
File size: 3931 byte(s)
Log Message:
Preparation du maillage FEM pour inclure de nouveaux élements non necessairement triangle/tetra

File Contents

# User Rev Content
1 francois 283 //------------------------------------------------------------
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     // fem_noeud.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifndef _FEMNOEUD_
24     #define _FEMNOEUD_
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     #include "fem_element_maillage.h"
37     #include "tpl_liste_entite.h"
38     #include "ot_boite_3D.h"
39    
40    
41     const unsigned int IDFEM_NOEUD=1000;
42    
43    
44    
45     class DLLPORTGEOMETRIE FEM_NOEUD : public FEM_ELEMENT_MAILLAGE
46     {
47     public:
48     FEM_NOEUD(unsigned long num,class MG_NOEUD* noeud);
49     FEM_NOEUD(MG_NOEUD* noeud);
50     FEM_NOEUD(class MG_ELEMENT_MAILLAGE* mai,double x,double y,double z);
51     FEM_NOEUD(unsigned long num,MG_ELEMENT_MAILLAGE* mai,double x,double y,double z);
52     FEM_NOEUD(unsigned long num,class MG_ELEMENT_TOPOLOGIQUE* topo,double x,double y,double z);
53     FEM_NOEUD(FEM_NOEUD& mdd);
54     virtual ~FEM_NOEUD();
55    
56    
57     virtual int get_type_entite();
58     virtual BOITE_3D get_boite_3D(void);
59    
60     virtual double get_x(double coef=0.);
61     virtual double get_y(double coef=0.);
62     virtual double get_z(double coef=0.);
63     virtual double get_dx(double coef=1.);
64     virtual double get_dy(double coef=1.);
65     virtual double get_dz(double coef=1.);
66     virtual double* get_coord(void);
67    
68     virtual FEM_NOEUD* dupliquer(FEM_MAILLAGE *femmai,long decalage);
69    
70    
71     virtual void change_x(double xx);
72     virtual void change_y(double yy);
73     virtual void change_z(double zz);
74     virtual void change_dx(double xx);
75     virtual void change_dy(double yy);
76     virtual void change_dz(double zz);
77     virtual void change_coord(double *coo);
78    
79     int get_numero(void);
80     void change_numero(int num);
81     int get_numero_opt(void);
82     void change_numero_opt(int num);
83    
84     virtual int get_dimension(void);
85    
86     virtual void enregistrer(std::ostream& o);
87     virtual void change_solution(double val);
88     virtual double get_solution(void);
89    
90     virtual int get_etat(void);
91     virtual void change_etat(int num);
92    
93    
94 francois 309 TPL_LISTE_ENTITE<class FEM_ELEMENT1*> *get_lien_element1(void);
95     TPL_LISTE_ENTITE<class FEM_ELEMENT1*> *get_lien_petit_element1(void);
96 francois 283
97 francois 309 TPL_LISTE_ENTITE<class FEM_ELEMENT2*> *get_lien_element2(void);
98     TPL_LISTE_ENTITE<class FEM_ELEMENT2*> *get_lien_petit_element2(void);
99 francois 283
100 francois 309 TPL_LISTE_ENTITE<class FEM_ELEMENT3*> *get_lien_element3(void);
101     TPL_LISTE_ENTITE<class FEM_ELEMENT3*> *get_lien_petit_element3(void);
102 francois 283
103     protected:
104     double xyz[3];
105     double dxyz[3];
106     int numero;
107     int numero_opt;
108     double solution;
109     int activedeplacement1;
110     int activedeplacement2;
111     int activedeplacement3;
112    
113     int etat;
114    
115 francois 309 TPL_LISTE_ENTITE<class FEM_ELEMENT1*> element1;
116     TPL_LISTE_ENTITE<class FEM_ELEMENT1*> petit_element1;
117 francois 283
118 francois 309 TPL_LISTE_ENTITE<class FEM_ELEMENT2*> element2;
119     TPL_LISTE_ENTITE<class FEM_ELEMENT2*> petit_element2;
120 francois 283
121 francois 309 TPL_LISTE_ENTITE<class FEM_ELEMENT3*> element3;
122     TPL_LISTE_ENTITE<class FEM_ELEMENT3*> petit_element3;
123 francois 283
124     };
125    
126    
127    
128    
129    
130    
131     #endif
132    
133