ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/lc_point.cpp
Revision: 576
Committed: Wed Oct 22 18:13:01 2014 UTC (10 years, 6 months ago) by francois
File size: 2618 byte(s)
Log Message:
ajout d'une geometrie virtuelle dans le maillage structure pour pouvoir saisir des conditions aux limites. ajout de conditions aux limites pour le thermique

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     // lc_point.cpp
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23    
24    
25     #include "gestionversion.h"
26    
27    
28     #include "mg_point.h"
29     #include "lc_point.h"
30     #include "constantegeo.h"
31    
32    
33    
34    
35     LC_POINT::LC_POINT(unsigned long num,double coo[3]):MG_POINT(num),x(coo[0]),y(coo[1]),z(coo[2])
36     {
37     }
38    
39 francois 576 LC_POINT::LC_POINT(double xx,double yy,double zz):MG_POINT(),x(xx),y(yy),z(zz)
40     {
41     }
42    
43    
44 francois 283 LC_POINT::LC_POINT(double coo[3]):MG_POINT(),x(coo[0]),y(coo[1]),z(coo[2])
45     {
46     }
47    
48     LC_POINT::LC_POINT(LC_POINT& mdd):MG_POINT(mdd),x(mdd.x),y(mdd.y),z(mdd.z)
49     {
50     }
51    
52    
53    
54     LC_POINT::~LC_POINT()
55     {
56     }
57    
58     int LC_POINT::get_type_geometrique(TPL_LISTE_ENTITE<double> &param)
59     {
60     param.ajouter(x);
61     param.ajouter(y);
62     param.ajouter(z);
63     return MGCo_POINT;
64     }
65    
66    
67     void LC_POINT::evaluer(double *xyz)
68     {
69     xyz[0]=x;
70     xyz[1]=y;
71     xyz[2]=z;
72     }
73    
74     void LC_POINT::enregistrer(std::ostream& o)
75     {
76     o << "%" << get_id() << "=POINT("<< x << "," << y << "," << z << ");" << std::endl;
77     }
78    
79     void LC_POINT::get_param_NURBS(int& indx_premier_ptctr,TPL_LISTE_ENTITE<double> &param)
80     {
81    
82     // the first parameter indicates the acces code
83     param.ajouter(0);
84     // the second parameter indicates the order of the point which should be one for a point
85     param.ajouter(1);
86     param.ajouter(0);
87     // the number of the control point
88     param.ajouter(1);
89     param.ajouter(0);
90    
91     // the third parameter presente the number of the controls point wich correspond to the cordinate point
92     // note that the cordinate of the control points are given in homogeneous cordinates
93     // for a point, the weight it's �qual to one.
94    
95     param.ajouter(x);
96     param.ajouter(y);
97     param.ajouter(z);
98    
99     param.ajouter(1);
100    
101     indx_premier_ptctr=5;
102    
103     }
104    
105