1 |
|
5 |
//------------------------------------------------------------
|
2 |
|
|
//------------------------------------------------------------
|
3 |
|
|
// MAGiC
|
4 |
francois |
174 |
// Jean Christophe Cuilli�re et Vincent FRANCOIS
|
5 |
|
|
// D�partement de G�nie M�canique - UQTR
|
6 |
|
5 |
//------------------------------------------------------------
|
7 |
francois |
174 |
// 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 |
|
5 |
// des auteurs (contact : francois@uqtr.ca)
|
12 |
|
|
//------------------------------------------------------------
|
13 |
|
|
//------------------------------------------------------------
|
14 |
|
|
//
|
15 |
|
|
// fem_segment.cpp
|
16 |
|
|
//
|
17 |
|
|
//------------------------------------------------------------
|
18 |
|
|
//------------------------------------------------------------
|
19 |
|
|
// COPYRIGHT 2000
|
20 |
francois |
174 |
// Version du 02/03/2006 � 11H22
|
21 |
|
5 |
//------------------------------------------------------------
|
22 |
|
|
//------------------------------------------------------------
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
#include "gestionversion.h"
|
26 |
|
|
#include <math.h>
|
27 |
|
|
#include "fem_segment.h"
|
28 |
|
|
#include "fem_noeud.h"
|
29 |
|
|
#include "mg_element_maillage.h"
|
30 |
|
|
|
31 |
|
|
FEM_SEGMENT::FEM_SEGMENT(unsigned long num,class MG_ELEMENT_MAILLAGE* mai):FEM_ELEMENT_MAILLAGE(num,mai)
|
32 |
|
|
{
|
33 |
|
|
}
|
34 |
|
|
|
35 |
|
|
FEM_SEGMENT::FEM_SEGMENT(class MG_ELEMENT_MAILLAGE* mai):FEM_ELEMENT_MAILLAGE(mai)
|
36 |
|
|
{
|
37 |
|
|
}
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
FEM_SEGMENT::FEM_SEGMENT(FEM_SEGMENT& mdd):FEM_ELEMENT_MAILLAGE(mdd)
|
41 |
|
|
{
|
42 |
|
|
}
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
FEM_SEGMENT::~FEM_SEGMENT()
|
47 |
|
|
{
|
48 |
|
|
}
|
49 |
|
|
|
50 |
|
|
|
51 |
francois |
174 |
void FEM_SEGMENT::extrapoler_solution_noeud(void)
|
52 |
|
|
{
|
53 |
|
|
int nb=get_nb_fem_noeud();
|
54 |
|
|
for (int i=0;i<nb;i++)
|
55 |
|
|
get_fem_noeud(i)->change_solution(solution);
|
56 |
|
|
}
|
57 |
|
5 |
|
58 |
|
|
|
59 |
|
|
|
60 |
francois |
174 |
|