ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/fem_solution.h
Revision: 375
Committed: Fri Nov 9 15:27:14 2012 UTC (12 years, 6 months ago) by francois
Content type: text/plain
File size: 3073 byte(s)
Log Message:
Solution FEM sont vectorielles et tensorielles + affichage des options de compilations dans les exe

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_solution.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifndef __FEMSOLUTION_
24     #define __FEMSOLUTION_
25    
26    
27     #ifdef WINDOWS_VERSION
28     #ifdef BUILT_DLL_GEOMETRIE
29     #define DLLPORTGEOMETRIE __declspec(dllexport)
30     #else
31     #define DLLPORTGEOMETRIE __declspec(dllimport)
32     #endif
33     #else
34     #define DLLPORTGEOMETRIE
35     #endif
36    
37    
38     #ifdef BORLANDCPP
39     #include <map.h>
40     #include <set.h>
41 francois 375 #include <vector.h>
42 francois 283 #else
43     #include <map>
44     #include <set>
45 francois 375 #include <vector>
46 francois 283 #endif
47    
48     #include "mg_identificateur.h"
49 francois 375 #include "mg_definition.h"
50 francois 283
51    
52    
53     DLLPORTGEOMETRIE std::ostream& operator << (std::ostream& o,class MG_SOLUTION& sol);
54    
55    
56     class DLLPORTGEOMETRIE FEM_SOLUTION : public MG_IDENTIFICATEUR
57     {
58     public:
59 francois 375 FEM_SOLUTION(class FEM_MAILLAGE *mai,int nb,char* chemin,int code,std::string nomsol,int entite=MAGIC::ENTITE_SOLUTION::ENTITE_NOEUD,int type_solution=MAGIC::TYPE_SOLUTION::SCALAIRE);
60     FEM_SOLUTION(unsigned long num,FEM_MAILLAGE *mai,int nb,char* chemin,int code,std::string nomsol,int entite=MAGIC::ENTITE_SOLUTION::ENTITE_NOEUD,int type_solution=MAGIC::TYPE_SOLUTION::SCALAIRE);
61 francois 283 virtual ~FEM_SOLUTION();
62 francois 375 double lire(int i,int j,int coord=0,int num_no=0);
63     void ecrire(double val,int i,int j,int coord=0,int num_no=0);
64 francois 283 void active_solution(int num);
65     void change_legende(int num,std::string val);
66     std::string get_legende(int num);
67     int get_nb_champ(void);
68     FEM_MAILLAGE* get_maillage(void);
69 francois 375 double get_legende_min(int num=0);
70     double get_legende_max(int num=0);
71 francois 283 void efface(void);
72     std::string get_nom(void);
73 francois 326 std::string get_nom_fichier(void);
74    
75 francois 283 virtual void enregistrer(std::ostream& o);
76    
77     friend std::ostream& operator << (std::ostream& o,FEM_SOLUTION& maillage);
78     int get_type_solution(void);
79 francois 375 int get_dim_solution(void);
80 francois 283
81     private:
82 francois 375 void inisolution(char* chemin,int code);
83 francois 283 char *nom_fichier;
84     int nb_champs;
85     FILE* in;
86     FEM_MAILLAGE* femmai;
87 francois 375 double solmin[MAX_TYPE_SOLUTION];
88     double solmax[MAX_TYPE_SOLUTION];
89 francois 283 std::string* legende;
90     std::string nomsolution;
91     int typeentite;
92 francois 375 std::vector<unsigned long> hash;
93     int dim_solution;
94 francois 283 };
95    
96    
97    
98     #endif
99    
100