Salome HOME
sauve0206
[tools/eficas.git] / Openturns_Study / OpenTURNS_Cata_Study_V8.py
index 6a43ee357993d32ea7cfac87e187e49ebb5b812f..9e43e5436ce54fe03e4d66124ef03d995ac1a0ee 100644 (file)
@@ -1,4 +1,22 @@
 # -*- coding: iso-8859-1 -*-
+# Copyright (C) 2007-2013   EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
 
 # --------------------------------------------------
 # debut entete
@@ -56,7 +74,7 @@ JdC = JDC_CATA ( code = 'OPENTURNS_STUDY',
                  execmodul = None,
                  regles = ( AU_MOINS_UN ( 'CRITERIA' ),
                             AU_MOINS_UN ( 'MODEL' ),
-                            AVANT ( ('DISTRIBUTION', 'MODEL'), 'VARIABLE' ),
+#                            AVANT ( ('DISTRIBUTION', 'MODEL'), 'VARIABLE' ),
 #                            A_CLASSER ( 'VARIABLE',                'CORRELATION' ),
 #                            A_CLASSER ( 'VARIABLE',                'CRITERIA' ),
 #                            A_CLASSER ( 'CORRELATION',             'CRITERIA' ),
@@ -68,16 +86,16 @@ JdC = JDC_CATA ( code = 'OPENTURNS_STUDY',
 # fin entete
 # --------------------------------------------------
 
-LOG = PROC ( nom = "LOG",
+SIMULATION = PROC ( nom = "SIMULATION",
              op = None,
              docu = "",
                
-  DebugMessages = SIMP ( statut = "o",
-                 typ = "TXM",
-                 into = ( 'yes', 'no' ),
                defaut = 'no',
-                 fr = "Affichage du niveau de debug de la bibliotheque Open TURNS",
-                 ang = "Open TURNS library debug level print",
+  FileName = SIMP ( statut = "o",
+                    typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
+                    fr = "Nom du modele physique",
),
+  SAMPLE = SIMP ( statut = "o",
+                 typ = "R",
                  ),
                
   WrapperMessages = SIMP ( statut = "o",
@@ -120,8 +138,8 @@ LOG = PROC ( nom = "LOG",
                  ang = "Open TURNS library error level print",
                  ),
                
-) # Fin PROC LOG
-# Ordre Catalogue LOG
+) # Fin PROC SIMULATION
+# Ordre Catalogue SIMULATION
 
 
 
@@ -133,12 +151,19 @@ LOG = PROC ( nom = "LOG",
 
 # Nota : les variables de type OPER doivent etre en majuscules !
 # Nota : les variables de type OPER doivent etre de premier niveau (pas imbriquees dans un autre type)
-DISTRIBUTION = OPER ( nom = "DISTRIBUTION",
-                      sd_prod = loi,
-                      op = 68,
+#VARIABLE2=OPER( nom= "VARIABLE2",
+             
+#DISTRIBUTION = OPER ( nom = "DISTRIBUTION",
+VARIABLE2=OPER(nom="VARIABLE2",
+                      sd_prod = variable,
+                      #sd_prod = None,
+                      op = None,
                       fr = "Definitions des lois marginales utilisees par les variables d'entree", 
                       
+ #VARIABLE = FACT (statut='f',max='**',
+ #             NOM=SIMP(statut = "o", typ = "TXM",),
                       
+#DISTRIBUTION= FACT(statut = "o",
 #====
 # Type de distribution
 #====
@@ -167,6 +192,7 @@ DISTRIBUTION = OPER ( nom = "DISTRIBUTION",
                          ),
                 fr = "Choix du type de la loi marginale",
                 ang = "1D marginal distribution",
+                defaut="Beta",
                 ),
 
 #====
@@ -192,6 +218,7 @@ DISTRIBUTION = OPER ( nom = "DISTRIBUTION",
                                                  val_min = 0.,
                                                  fr = "Parametre R de la loi | R > 0",
                                                  ang = "R parameter | R > 0",
+                                                 defaut=1,
                                                  ),
 
                                       # T > R
@@ -201,6 +228,7 @@ DISTRIBUTION = OPER ( nom = "DISTRIBUTION",
                                                  val_min = 0.,
                                                  fr = "Parametre T de la loi | T > R",
                                                  ang = "T parameter | T > R",
+                                                 defaut=2,
                                                  ),
 
                                       ), # Fin BLOC RT_Parameters
@@ -410,7 +438,7 @@ DISTRIBUTION = OPER ( nom = "DISTRIBUTION",
                        # Il faut definir une collection de couples ( x,p ) 
                        Values = SIMP ( statut = 'o',
                                        typ = Tuple(2),
-                                       max = '**',
+                                       #max = '**', 
                                        fr = "Liste de couples : largeur de classe, hauteur de classe",
                                        ang = "Class bandwidth, class height couple list",
                                        validators=VerifTypeTuple(('R','R')),
@@ -821,8 +849,9 @@ DISTRIBUTION = OPER ( nom = "DISTRIBUTION",
 
     ), # Fin BLOC WEIBULL
 
+#), # Fin OPER DISTRIBUTION
+#), # Fin OPER DISTRIBUTION
 ) # Fin OPER DISTRIBUTION
-# Ordre Catalogue DISTRIBUTION
 
 
 
@@ -836,6 +865,7 @@ DETERMINISTICVARIABLE = OPER ( nom = "DETERMINISTICVARIABLE",
             op = None,
             fr = "Variable deterministe",
             ang = "Deterministic variable",
+            UIinfo = {"groupes": ("CACHE")},
             
   N = SIMP ( statut = 'o',
              typ = "TXM",