]> SALOME platform Git repositories - tools/eficas.git/blob - Cuve2dg/Cuve2dg_Cata_VPN.py
Salome HOME
Modif V6_4_°
[tools/eficas.git] / Cuve2dg / Cuve2dg_Cata_VPN.py
1 # -*- coding: utf-8 -*-
2 import types
3 class Tuple:
4   def __init__(self,ntuple):
5     self.ntuple=ntuple
6
7   def __convert__(self,valeur):
8     if type(valeur) == types.StringType:
9       return None
10     if len(valeur) != self.ntuple:
11       return None
12     return valeur
13
14   def info(self):
15     return "Tuple de %s elements" % self.ntuple
16
17   __repr__=info
18   __str__=info
19
20
21 # --------------------------------------------------
22 # debut entete
23 # --------------------------------------------------
24
25 import Accas
26 from Accas import *
27
28
29 #CONTEXT.debug = 1
30 JdC = JDC_CATA ( code = 'CUVE1D-DEFAILLGLOB',
31                  execmodul = None,
32                  regles = ( AU_MOINS_UN ('OPTIONS','DEFAUT', 'CUVE', 'MODELES', 'INITIALISATION', 'REVETEMENT', 'METAL_BASE', 'TRANSITOIRE'), 
33                             A_CLASSER ( ('OPTIONS',), ('DEFAUT', 'CUVE', 'MODELES', 'INITIALISATION', 'REVETEMENT', 'METAL_BASE', 'TRANSITOIRE'))
34                           )
35                  ) # Fin JDC_CATA
36
37 # --------------------------------------------------
38 # fin entete
39 # --------------------------------------------------
40
41
42
43
44
45
46 #================================
47 # 1. Definition des OPTIONS
48 #================================
49
50 # Nota : les variables de type OPER doivent etre en majuscules !
51 # Nota : les variables de type OPER doivent etre de premier niveau (pas imbriquees dans un autre type)
52
53 OPTIONS = PROC ( nom = "OPTIONS",
54                  op = 68,
55                  fr = "Definitions des options", 
56
57 #===
58 # Liste des paramètres
59 #===
60
61 # INCRTPS
62   IncrementTemporel = SIMP ( statut = "o",
63                              typ = "I",
64                              defaut = "1",
65                              max = 1,
66                              #val_max = 100,
67                              fr = "Increment temporel (=1 pour calcul deterministe)",
68                              ),
69
70 # DTPREC
71   IncrementMaxTemperature = SIMP ( statut = "o", 
72                                    typ = "R", 
73                                    defaut = "0.1", 
74                                    max = 1, 
75                                    val_max = 1., 
76                                    fr = "Increment maximum d'evolution de la temperature par noeud et par instant (°C)",
77                                    ),
78
79 # DTARCH
80   IncrementMaxTempsAffichage = SIMP ( statut = "o", 
81                                       typ = "R", 
82                                       defaut = "1000.", 
83                                       max = 1, 
84                                       val_max = 1000., 
85                                       fr = "Increment maximum de temps pour l'affichage (s)",
86                                       ),
87
88 # NBO
89 # Question : NBO depend-il de TYPGEOM ??
90   NombreNoeudsMaillage = SIMP ( statut = "o", 
91                                 typ = "R", 
92                                 max=1, 
93                                 val_max = 1000., 
94                                 fr = "Nombre de noeuds a considerer dans le maillage interne",
95                                 ),
96
97
98   ListeInstants = SIMP ( statut = "o",
99                          typ = Tuple(2),
100                          max = "**",
101                          fr = "Liste des instants ",
102                          validators=VerifTypeTuple(('R','R')),
103                          ),
104
105   ListeInstants2 = SIMP ( statut = "o",
106                          typ = Tuple(2),
107                          max = "**",
108                          fr = "Liste des instants ",
109                          ),
110
111 ) # Fin OPER OPTIONS