ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/solveur/src/sl_segment11.cpp
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months, 1 week ago) by francois
File size: 2732 byte(s)
Log Message:
compatibilité Ubuntu 22.04
Suppression des refeences à Windows
Ajout d'une banière

File Contents

# User Rev Content
1 francois 1158 //####//------------------------------------------------------------
2     //####//------------------------------------------------------------
3     //####// MAGiC
4     //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5     //####// Departement de Genie Mecanique - UQTR
6     //####//------------------------------------------------------------
7     //####// MAGIC est un projet de recherche de l equipe ERICCA
8     //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9     //####// http://www.uqtr.ca/ericca
10     //####// http://www.uqtr.ca/
11     //####//------------------------------------------------------------
12     //####//------------------------------------------------------------
13     //####//
14     //####// sl_segment11.cpp
15     //####//
16     //####//------------------------------------------------------------
17     //####//------------------------------------------------------------
18     //####// COPYRIGHT 2000-2024
19     //####// jeu 13 jun 2024 11:58:57 EDT
20     //####//------------------------------------------------------------
21     //####//------------------------------------------------------------
22 5 #include "gestionversion.h"
23    
24     #pragma hdrstop
25     #include <math.h>
26     #include "sl_segment11.h"
27     #include "fem_noeud.h"
28    
29     #pragma package(smart_init)
30    
31    
32    
33     SL_SEGMENT11::SL_SEGMENT11(FEM_SEGMENT *mgseg):SL_SEGMENT(mgseg)
34     {
35     }
36    
37     SL_SEGMENT11::SL_SEGMENT11(SL_SEGMENT11& mdd):SL_SEGMENT(mdd)
38     {
39     }
40    
41     SL_SEGMENT11::~SL_SEGMENT11()
42     {
43     }
44    
45     int SL_SEGMENT11::nb_point_gauss(void)
46     {
47     return 1;
48     }
49    
50     int SL_SEGMENT11::nb_fonction_interpolation(void)
51     {
52     return 2;
53     }
54    
55     void SL_SEGMENT11::get_point_gauss(int num,double *xyz,double& poids)
56     {
57     xyz[0]=0.;
58     poids=2.;
59     }
60    
61     double SL_SEGMENT11::get_fonction_interpolation(int num,double *uv)
62     {
63     double val;
64     switch (num)
65     {
66     case 1:val=0.5*(1-uv[0]);break;
67     case 2:val=0.5*(1+uv[0]);break;
68     }
69     return val;
70     }
71    
72     double SL_SEGMENT11::get_fonction_derive_interpolation(int num,int numvariable,double *uv)
73     {
74     double val;
75     switch (num)
76     {
77     case 1:val=-0.5;break;
78     case 2:val=0.5;break;
79     }
80     return val;
81    
82     }
83    
84     double SL_SEGMENT11::get_jacobien(double* jac,double *uv,int& li,int& col,double unite)
85     {
86     FEM_NOEUD* noeud1=((FEM_SEGMENT*)mai)->get_fem_noeud(0);
87     FEM_NOEUD* noeud2=((FEM_SEGMENT*)mai)->get_fem_noeud(1);
88     double *xyz1=noeud1->get_coord();
89     double *xyz2=noeud2->get_coord();
90     li=1;col=3;
91    
92     jac[0]=unite*(xyz2[0]-xyz1[0]);
93     jac[1]=unite*(xyz2[1]-xyz1[1]);
94     jac[2]=unite*(xyz2[2]-xyz1[2]);
95     double L= sqrt(jac[0]*jac[0]+jac[1]*jac[1]+jac[2]*jac[2]);
96     return L;
97     }
98    
99    
100     void SL_SEGMENT11:: get_inverse_jacob(double* jac,double*j,double unite)
101     {
102     return;
103     }
104    
105    
106    
107    
108     int SL_SEGMENT11::nb_point_extrapolation()
109     {
110     return 2;
111     }
112    
113    
114    
115