ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/solveur/src/sl_tetra.cpp
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months ago) by francois
File size: 2178 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_tetra.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_tetra.h"
27     #include "fem_tetra.h"
28    
29     #pragma package(smart_init)
30    
31     SL_TETRA::SL_TETRA(FEM_TETRA *mgtet):SL_ELEMENT(mgtet)
32     {
33     }
34    
35     SL_TETRA::SL_TETRA(SL_TETRA& mdd):SL_ELEMENT(mdd)
36     {
37     }
38    
39     SL_TETRA::~SL_TETRA()
40     {
41     }
42    
43    
44    
45     FEM_TETRA* SL_TETRA::get_element_de_maillage()
46     {
47     return (FEM_TETRA*)mai;
48     }
49    
50    
51     void SL_TETRA::get_elasticite(double *H,double E,double nu,int& taille)
52     {
53    
54     taille=6;
55    
56    
57     double a;
58     a=E/((1+nu)*(1-2*nu));
59    
60    
61     for(int ih=0;ih<taille;ih++)
62     {
63     for(int jh=0;jh<taille;jh++)
64     H[ih*taille+jh]=0.0;
65     }
66     H[0*taille+0]=a*(1-nu);
67     H[0*taille+1]=a*nu;
68     H[0*taille+2]=a*nu;
69    
70     H[1*taille+0]=a*nu;
71     H[1*taille+1]=a*(1-nu);
72     H[1*taille+2]=a*nu;
73    
74     H[2*taille+0]=a*nu;
75     H[2*taille+1]=a*nu;
76     H[2*taille+2]=a*(1-nu);
77    
78     H[3*taille+3]=a*(0.5-nu);
79     H[4*taille+4]=a*(0.5-nu);
80     H[5*taille+5]=a*(0.5-nu);
81    
82     }
83    
84    
85    
86     int SL_TETRA::get_dimension()
87     {
88     return 3;
89     }