Salome HOME
interpolation des champs
[modules/homard.git] / src / HOMARD / HOMARD_Hypothesis.hxx
1 //  HOMARD HOMARD : implementation of HOMARD idl descriptions
2 //
3 // Copyright (C) 2011-2013  CEA/DEN, EDF R&D
4 //
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License.
9 //
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
18 //
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 //
21 //  File   : HOMARD_Hypothesis.hxx
22 //  Author : Paul RASCLE, EDF
23 //  Module : HOMARD
24 //
25 // Remarques :
26 // L'ordre de description des fonctions est le meme dans tous les fichiers
27 // HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
28 // 1. Les generalites : Name, Delete, DumpPython, Dump, Restore
29 // 2. Les caracteristiques
30 // 3. Le lien avec les autres structures
31 //
32 // Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
33
34 #ifndef _HOMARD_HYPOTHESIS_HXX_
35 #define _HOMARD_HYPOTHESIS_HXX_
36
37 #include <string>
38 #include <list>
39
40 class HOMARD_Hypothesis
41 {
42 public:
43   HOMARD_Hypothesis();
44   ~HOMARD_Hypothesis();
45
46 // Generalites
47   void                          SetName( const char* Name );
48   std::string                   GetName() const;
49
50   std::string                   GetDumpPython() const;
51
52 // Caracteristiques
53   void                          SetAdapType( int TypeAdap );
54   int                           GetAdapType() const;
55   void                          SetRefinTypeDera( int TypeRaff, int TypeDera );
56   int                           GetRefinType() const;
57   int                           GetUnRefType() const;
58
59   void                          SetField( const char* FieldName );
60   std::string                   GetFieldName() const;
61   void                          SetUseField( int UsField );
62   int                           GetUseField()    const;
63
64   void                          SetUseComp( int UsCmpI );
65   int                           GetUseComp()    const;
66   void                          AddComp( const char* NomComp );
67   void                          SupprComp( const char* NomComp );
68   void                          SupprComps();
69   const std::list<std::string>& GetComps() const;
70
71   void                          SetRefinThr( int TypeThR, double ThreshR );
72   int                           GetRefinThrType()   const;
73   double                        GetThreshR()   const;
74   void                          SetUnRefThr( int TypeThC, double ThreshC );
75   int                           GetUnRefThrType()   const;
76   double                        GetThreshC()   const;
77
78   void                          SetNivMax( int NivMax );
79   const int                     GetNivMax() const;
80
81   void                          SetDiamMin( double DiamMin );
82   const double                  GetDiamMin() const;
83
84   void                          SetAdapInit( int AdapInit );
85   const int                     GetAdapInit() const;
86
87   void                          SetLevelOutput( int LevelOutput );
88   const int                     GetLevelOutput() const;
89
90   void                          AddGroup( const char* LeGroupe);
91   void                          SetGroups(const std::list<std::string>& ListGroup );
92   const std::list<std::string>& GetGroups() const;
93
94   void                          SetTypeFieldInterp( int TypeFieldInterp );
95   int                           GetTypeFieldInterp() const;
96   void                          AddFieldInterpType( const char* FieldInterp, int TypeInterp );
97   void                          SupprFieldInterp( const char* FieldInterp );
98   void                          SupprFieldInterps();
99   const std::list<std::string>& GetFieldInterps() const;
100
101 // Liens avec les autres structures
102   void                          SetCaseCreation( const char* NomCasCreation );
103   std::string                   GetCaseCreation() const;
104
105   void                          LinkIteration( const char* NomIter );
106   void                          UnLinkIteration( const char* NomIter );
107   void                          UnLinkIterations();
108   const std::list<std::string>& GetIterations() const;
109
110   void                          AddZone( const char* NomZone, int TypeUse );
111   void                          SupprZone( const char* NomZone );
112   void                          SupprZones();
113   const std::list<std::string>& GetZones() const;
114
115 private:
116   std::string                   _Name;
117   std::string                   _NomCasCreation;
118
119   int                           _TypeAdap; // -1 pour une adapation Uniforme,
120                                            //  0 si l adaptation depend des zones,
121                                            //  1 pour des champs
122
123   int                           _TypeRaff;
124   int                           _TypeDera;
125
126   std::string                   _Field;
127   int                           _TypeThR;
128   int                           _TypeThC;
129   double                        _ThreshR;
130   double                        _ThreshC;
131   int                           _UsField;
132   int                           _UsCmpI;
133   int                           _TypeFieldInterp; // 0 pour aucune interpolation,
134                                                   // 1 pour interpolation de tous les champs,
135                                                   // 2 pour une liste
136   int                           _NivMax;
137   double                        _DiamMin;
138   int                           _AdapInit;
139   int                           _LevelOutput;
140
141   std::list<std::string>        _ListIter;
142   std::list<std::string>        _ListZone;
143   std::list<std::string>        _ListComp;
144   std::list<std::string>        _ListGroupSelected;
145   std::list<std::string>        _ListFieldInterp;
146
147 };
148
149 #endif