1 # -*- coding: utf-8 -*-
4 def __init__(self,ntuple):
7 def __convert__(self,valeur):
8 if type(valeur) == types.StringType:
10 if len(valeur) != self.ntuple:
15 return "Tuple de %s elements" % self.ntuple
21 # --------------------------------------------------
23 # --------------------------------------------------
30 JdC = JDC_CATA ( code = 'CUVE1D-DEFAILLGLOB',
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'))
37 # --------------------------------------------------
39 # --------------------------------------------------
46 #================================
47 # 1. Definition des OPTIONS
48 #================================
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)
53 OPTIONS = PROC ( nom = "OPTIONS",
55 fr = "Definitions des options",
58 # Liste des paramètres
62 IncrementTemporel = SIMP ( statut = "o",
67 fr = "Increment temporel (=1 pour calcul deterministe)",
71 IncrementMaxTemperature = SIMP ( statut = "o",
76 fr = "Increment maximum d'evolution de la temperature par noeud et par instant (°C)",
80 IncrementMaxTempsAffichage = SIMP ( statut = "o",
85 fr = "Increment maximum de temps pour l'affichage (s)",
89 # Question : NBO depend-il de TYPGEOM ??
90 NombreNoeudsMaillage = SIMP ( statut = "o",
94 fr = "Nombre de noeuds a considerer dans le maillage interne",
98 ListeInstants = SIMP ( statut = "o",
101 fr = "Liste des instants ",
102 validators=VerifTypeTuple(('R','R')),
105 ListeInstants2 = SIMP ( statut = "o",
108 fr = "Liste des instants ",