Salome HOME
travail sur monPlusieurs
[tools/eficas.git] / Openturns_Study / OpenTURNS_Cata_Study_V8.py
1 # -*- coding: iso-8859-1 -*-
2 # Copyright (C) 2007-2013   EDF R&D
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20
21 # --------------------------------------------------
22 # debut entete
23 # --------------------------------------------------
24
25 #from Accas import ASSD, JDC_CATA, AU_MOINS_UN, PROC, SIMP, FACT, OPER, MACRO, BLOC, A_VALIDATOR
26 from Accas import *
27
28 class loi      ( ASSD ) : pass
29 class variable ( ASSD ) : pass
30
31 import types
32 class Tuple:
33   def __init__(self,ntuple):
34     self.ntuple=ntuple
35
36   def __convert__(self,valeur):
37     if type(valeur) == types.StringType:
38       return None
39     if len(valeur) != self.ntuple:
40       return None
41     return valeur
42
43   def info(self):
44     return "Tuple de %s elements" % self.ntuple
45
46   __repr__=info
47   __str__=info
48
49 class Matrice:
50   def __init__(self,nbLigs=None,nbCols=None,methodeCalculTaille=None,formatSortie="ligne",valSup=None,valMin=None,structure=None):
51       self.nbLigs=nbLigs
52       self.nbCols=nbCols
53       self.methodeCalculTaille=methodeCalculTaille
54       self.formatSortie=formatSortie
55       self.valSup=valSup
56       self.valMin=valMin
57       self.structure=structure
58
59   def __convert__(self,valeur):
60     # Attention ne verifie pas grand chose
61     if type(valeur) != types.ListType :
62       return None
63     return valeur
64
65   def info(self):
66       return "Matrice %s x %s" % (self.nbLigs, self.nbCols)
67
68       __repr__=info
69       __str__=info
70
71
72 #CONTEXT.debug = 1
73 JdC = JDC_CATA ( code = 'OPENTURNS_STUDY',
74                  execmodul = None,
75                  regles = ( AU_MOINS_UN ( 'CRITERIA' ),
76                             AU_MOINS_UN ( 'MODEL' ),
77                             AVANT ( ('DISTRIBUTION', 'MODEL'), 'VARIABLE' ),
78 #                            A_CLASSER ( 'VARIABLE',                'CORRELATION' ),
79 #                            A_CLASSER ( 'VARIABLE',                'CRITERIA' ),
80 #                            A_CLASSER ( 'CORRELATION',             'CRITERIA' ),
81                             ),
82                  ) # Fin JDC_CATA
83
84
85 # --------------------------------------------------
86 # fin entete
87 # --------------------------------------------------
88
89 SIMULATION = PROC ( nom = "SIMULATION",
90              op = None,
91              docu = "",
92                
93   FileName = SIMP ( statut = "o",
94                     typ = ('Fichier', 'Wrapper Files (*.csv);;All Files (*)',),
95                     fr = "Nom du modele physique",
96  ),
97   SAMPLE = SIMP ( statut = "o",
98                  typ = "R",
99                  ),
100                
101   WrapperMessages = SIMP ( statut = "o",
102                  typ = "TXM",
103                  into = ( 'yes', 'no' ),
104                  defaut = 'no',
105                  fr = "Affichage du niveau de wrapper de la bibliotheque Open TURNS",
106                  ang = "Open TURNS library debug level print",
107                  ),
108                
109   UserMessages = SIMP ( statut = "o",
110                  typ = "TXM",
111                  into = ( 'yes', 'no' ),
112                  defaut = 'no',
113                  fr = "Affichage du niveau de user de la bibliotheque Open TURNS",
114                  ang = "Open TURNS library user level print",
115                  ),
116                
117   InfoMessages = SIMP ( statut = "o",
118                  typ = "TXM",
119                  into = ( 'yes', 'no' ),
120                  defaut = 'yes',
121                  fr = "Affichage du niveau de info de la bibliotheque Open TURNS",
122                  ang = "Open TURNS library info level print",
123                  ),
124                
125   WarningMessages = SIMP ( statut = "o",
126                  typ = "TXM",
127                  into = ( 'yes', 'no' ),
128                  defaut = 'yes',
129                  fr = "Affichage du niveau de warning de la bibliotheque Open TURNS",
130                  ang = "Open TURNS library warning level print",
131                  ),
132                
133   ErrorMessages = SIMP ( statut = "o",
134                  typ = "TXM",
135                  into = ( 'yes', 'no' ),
136                  defaut = 'yes',
137                  fr = "Affichage du niveau de error de la bibliotheque Open TURNS",
138                  ang = "Open TURNS library error level print",
139                  ),
140                
141 ) # Fin PROC SIMULATION
142 # Ordre Catalogue SIMULATION
143
144
145
146
147
148 #================================
149 # Definition des LOIS
150 #================================
151
152 # Nota : les variables de type OPER doivent etre en majuscules !
153 # Nota : les variables de type OPER doivent etre de premier niveau (pas imbriquees dans un autre type)
154 DISTRIBUTION = OPER ( nom = "DISTRIBUTION",
155                       sd_prod = loi,
156                       op = 68,
157                       fr = "Definitions des lois marginales utilisees par les variables d'entree", 
158                       
159                       
160 #====
161 # Type de distribution
162 #====
163
164   Kind = SIMP ( statut = "o", typ = "TXM",
165                 into = ( "Beta",
166                          "Pascale",
167                          "Exponential",
168                          "Gamma",
169                          "Geometric",
170                          "Gumbel",
171                          "Histogram",
172                          "Laplace",
173                          "Logistic",
174                          "LogNormal",
175                          "MultiNomial",
176                          "NonCentralStudent",
177                          "Normal",
178                          "Poisson",
179                          "Rayleigh",
180                          "Student",
181                          "Triangular",
182                          "TruncatedNormal",
183                          "Uniform",
184                          #"UserDefined",
185                          "Weibull",
186                          ),
187                 fr = "Choix du type de la loi marginale",
188                 ang = "1D marginal distribution",
189                 ),
190
191 #====
192 # Definition des parametres selon le type de la loi
193 #====
194
195   BETA = BLOC ( condition = " Kind in ( 'Beta', ) ",
196
197                   Settings = SIMP ( statut = "o",
198                                        typ = "TXM",
199                                        max = 1,
200                                        into = ( "RT", "MuSigma" ),
201                                        defaut = "RT",
202                                        fr = "Parametrage de la loi beta",
203                                        ang = "Beta distribution parameter set",
204                                        ),
205
206                   RT_Parameters = BLOC ( condition = " Settings in ( 'RT', ) ",
207
208                                       R = SIMP ( statut = "o",
209                                                  typ = "R",
210                                                  max = 1,
211                                                  val_min = 0.,
212                                                  fr = "Parametre R de la loi | R > 0",
213                                                  ang = "R parameter | R > 0",
214                                                  ),
215
216                                       # T > R
217                                       T = SIMP ( statut = "o",
218                                                  typ = "R",
219                                                  max = 1,
220                                                  val_min = 0.,
221                                                  fr = "Parametre T de la loi | T > R",
222                                                  ang = "T parameter | T > R",
223                                                  ),
224
225                                       ), # Fin BLOC RT_Parameters
226
227
228                   MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
229
230                                       Mu = SIMP ( statut = "o",
231                                                   typ = "R",
232                                                   max = 1,
233                                                   fr = "Moyenne de la loi",
234                                                   ang = "Mean value",
235                                                   ),
236
237                                       Sigma = SIMP ( statut = "o",
238                                                      typ = "R",
239                                                      max = 1,
240                                                      val_min = 0.,
241                                                      fr = "Ecart type de la loi",
242                                                      ang = "Standard deviation",
243                                                      ),
244
245                                       ), # Fin BLOC MuSigma_Parameters
246
247
248                   A = SIMP ( statut = "o",
249                              typ = "R",
250                              max = 1,
251                              fr = "Borne inferieure du support de la loi",
252                              ang = "Support lower bound",
253                              ),
254
255                   # B > A
256                   B = SIMP ( statut = "o",
257                              typ = "R",
258                              max = 1,
259                              fr = "Borne superieure du support de la loi",
260                              ang = "Support upper bound",
261                              ),
262
263   ), # Fin BLOC BETA
264
265
266
267   EXPONENTIAL = BLOC ( condition = " Kind in ( 'Exponential', ) ",
268
269                          Lambda = SIMP ( statut = "o",
270                                          typ = "R",
271                                          max = 1,
272                                          val_min = 0.,
273                                          fr = "Parametre Lambda | Lambda > 0",
274                                          ang = "Lambda parameter | Lambda > 0",
275                                          ),
276
277                          Gamma = SIMP ( statut = "o",
278                                         typ = "R",
279                                         max = 1,
280                                         fr = "Borne inferieure du support de la loi",
281                                         ang = "Support lower bound",
282                                         ),
283
284   ), # Fin BLOC EXPONENTIAL
285
286
287
288   GAMMA = BLOC ( condition = " Kind in ( 'Gamma', ) ",
289
290                    Settings = SIMP ( statut = "o",
291                                         typ = "TXM",
292                                         max = 1,
293                                         into = ( "KLambda", "MuSigma" ),
294                                         defaut = "KLambda",
295                                         fr = "Parametrage de la loi gamma",
296                                         ang = "Gamma distribution parameter set",
297                                         ),
298
299                    KLambda_Parameters = BLOC ( condition = " Settings in ( 'KLambda', ) ",
300
301                                        K = SIMP ( statut = "o",
302                                                   typ = "R",
303                                                   max = 1,
304                                                   val_min = 0.,
305                                                   fr = "Parametre K de la loi | K > 0",
306                                                   ang = "K parameter | K > 0",
307                                                   ),
308
309                                        Lambda = SIMP ( statut = "o",
310                                                        typ = "R",
311                                                        max = 1,
312                                                        val_min = 0.,
313                                                        fr = "Parametre Lambda de la loi | Lambda > 0",
314                                                        ang = "Lambda parameter | Lambda > 0",
315                                                        ),
316
317                                        ), # Fin BLOC KLambda_Parameters
318
319
320                    MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
321
322                                        Mu = SIMP ( statut = "o",
323                                                    typ = "R",
324                                                    max = 1,
325                                                    fr = "Moyenne de la loi",
326                                                    ang = "Mean value",
327                                                    ),
328
329                                        Sigma = SIMP ( statut = "o",
330                                                       typ = "R",
331                                                       max = 1,
332                                                       val_min = 0.,
333                                                       fr = "Ecart type de la loi",
334                                                       ang = "Standard deviation",
335                                                       ),
336
337                                        ), # Fin BLOC MuSigma_Parameters
338
339                    Gamma = SIMP ( statut = "o",
340                                   typ = "R",
341                                   max = 1,
342                                   fr = "Borne inferieure du supoport de la loi",
343                                   ang = "Support lower bound",
344                                   ),
345
346
347   ), # Fin BLOC GAMMA
348
349
350
351   GEOMETRIC = BLOC ( condition = " Kind in ( 'Geometric', ) ",
352
353                        P = SIMP ( statut = "o",
354                                   typ = "R",
355                                   max = 1,
356                                   val_min = 0.,
357                                   val_max = 1.,
358                                   fr = "Parametre P | 0 < P < 1",
359                                   ang = "P parameter | 0 < P < 1",
360                                   ),
361
362   ), # Fin BLOC GEOMETRIC
363
364
365
366   GUMBEL = BLOC ( condition = " Kind in ( 'Gumbel', ) ",
367
368                     Settings = SIMP ( statut = "o",
369                                          typ = "TXM",
370                                          max = 1,
371                                          into = ( "AlphaBeta", "MuSigma" ),
372                                          defaut = "AlphaBeta",
373                                          fr = "Parametrage de la loi gumbel",
374                                          ang = "Gumbel distribution parameter set",
375                                          ),
376
377                     AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
378
379                                         Alpha = SIMP ( statut = "o",
380                                                        typ = "R",
381                                                        max = 1,
382                                                        val_min = 0.,
383                                                        fr = "Parametre Alpha de la loi | Alpha > 0",
384                                                        ang = "Alpha parameter | Alpha > 0",
385                                                        ),
386
387                                         Beta = SIMP ( statut = "o",
388                                                       typ = "R",
389                                                       max = 1,
390                                                       fr = "Parametre Beta de la loi",
391                                                       ang = "Beta parameter",
392                                                       ),
393
394                                         ), # Fin BLOC AlphaBeta_Parameters
395
396
397                     MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
398
399                                         Mu = SIMP ( statut = "o",
400                                                     typ = "R",
401                                                     max = 1,
402                                                     fr = "Moyenne de la loi",
403                                                     ang = "Mean value",
404                                                     ),
405
406                                         Sigma = SIMP ( statut = "o",
407                                                        typ = "R",
408                                                        max = 1,
409                                                        val_min = 0.,
410                                                        fr = "Ecart type de la loi",
411                                                        ang = "Standard deviation",
412                                                        ),
413
414                                         ), # Fin BLOC MuSigma_Parameters
415
416   ), # Fin BLOC GUMBEL
417
418
419
420   HISTOGRAM = BLOC ( condition = " Kind in ( 'Histogram', ) ",
421
422                        First = SIMP ( statut = "o",
423                                     typ = "R",
424                                     max = 1,
425                                     fr = "Borne inferieure du supoport de la loi",
426                                     ang = "Support lower bound",
427                                     ),
428
429                        # Il faut definir une collection de couples ( x,p ) 
430                        Values = SIMP ( statut = 'o',
431                                        typ = Tuple(2),
432                                        max = '**', 
433                                        fr = "Liste de couples : largeur de classe, hauteur de classe",
434                                        ang = "Class bandwidth, class height couple list",
435                                        validators=VerifTypeTuple(('R','R')),
436                                        ),
437
438   ), # Fin BLOC HISTOGRAM
439
440
441
442   LAPLACE = BLOC ( condition = " Kind in ( 'Laplace', ) ",
443
444                    Lambda = SIMP ( statut = "o",
445                                    typ = "R",
446                                    max = 1,
447                                    val_min = 0.,
448                                    fr = "Parametre Lambda | Lambda > 0",
449                                    ang = "Lambda parameter | Lambda > 0",
450                                    ),
451                    
452                    Mu = SIMP ( statut = "o",
453                                typ = "R",
454                                max = 1,
455                                fr = "Moyenne de la loi",
456                                ang = "Mean value",
457                               ),
458
459   ), # Fin BLOC LAPLACE
460
461   BLOC1 = BLOC ( condition = " Kind in ( 'Pascale', ) ",
462                      Settings = SIMP ( statut = "o",
463                                        typ = "TXM",
464                                        max = 1,
465                                        into = ( "Cas1", "Cas2", "Cas3" ),
466                                        defaut = "Cas1",
467                                        fr = "Parametrage de la loi lognormale",
468                                        ang = "Lognormal distribution parameter set",
469                                        ),
470                      BLOC2_1 = BLOC ( condition = " Settings in ( 'Cas1', ) ",
471
472                                                  Mu = SIMP ( statut = "o",
473                                                              typ = "R",
474                                                              max = 1,
475                                                              fr = "Moyenne de la loi",
476                                                              ang = "Mean value",
477                                                              ),
478
479                                     ),
480                      BLOC2_2 = BLOC ( condition = " Settings in ( 'Cas2', ) ",
481
482                                                  Sigma = SIMP ( statut = "o",
483                                                                 typ = "R",
484                                                                 max = 1,
485                                                                 val_min = 0.,
486                                                                 fr = "Ecart type de la loi",
487                                                              ),
488                                     ),
489                    ),
490   LOGNORMAL = BLOC ( condition = " Kind in ( 'LogNormal', ) ",
491
492                      Settings = SIMP ( statut = "o",
493                                        typ = "TXM",
494                                        max = 1,
495                                        into = ( "MuSigmaLog", "MuSigma", "MuSigmaOverMu" ),
496                                        defaut = "MuSigmaLog",
497                                        fr = "Parametrage de la loi lognormale",
498                                        ang = "Lognormal distribution parameter set",
499                                        ),
500
501                      MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
502
503                                                  Mu = SIMP ( statut = "o",
504                                                              typ = "R",
505                                                              max = 1,
506                                                              fr = "Moyenne de la loi",
507                                                              ang = "Mean value",
508                                                              ),
509
510                                                  Sigma = SIMP ( statut = "o",
511                                                                 typ = "R",
512                                                                 max = 1,
513                                                                 val_min = 0.,
514                                                                 fr = "Ecart type de la loi",
515                                                                 ang = "Standard deviation",
516                                                                 ),
517
518                                                  ), # Fin BLOC MuSigma_Parameters
519
520                      MuSigmaOverMu_Parameters = BLOC ( condition = " Settings in ( 'MuSigmaOverMu', ) ",
521
522                                                  Mu = SIMP ( statut = "o",
523                                                              typ = "R",
524                                                              max = 1,
525                                                              fr = "Moyenne de la loi",
526                                                              ang = "Mean value",
527                                                              ),
528
529                                                  SigmaOverMu = SIMP ( statut = "o",
530                                                                 typ = "R",
531                                                                 max = 1,
532                                                                 val_min = 0.,
533                                                                 fr = "Rapport ecart type / moyenne de la loi",
534                                                                 ang = "Standard deviation / mean value ratio",
535                                                                 ),
536
537                                                  ), # Fin BLOC MuSigmaOverMu_Parameters
538
539                      MuSigmaLog_Parameters = BLOC ( condition = " Settings in ( 'MuSigmaLog', ) ",
540
541                                                     MuLog = SIMP ( statut = "o",
542                                                                    typ = "R",
543                                                                    max = 1,
544                                                                    fr = "Moyenne du log",
545                                                                    ang = "Log mean value",
546                                                                    ),
547
548                                                     SigmaLog = SIMP ( statut = "o",
549                                                                       typ = "R",
550                                                                       max = 1,
551                                                                       val_min = 0.,
552                                                                       fr = "Ecart type du log",
553                                                                       ang = "Log standard deviation",
554                                                                       ),
555                                             
556                                                     ), # Fin BLOC MuSigmaLog_Parameters
557
558                      Gamma = SIMP ( statut = "o",
559                                     typ = "R",
560                                     max = 1,
561                                     fr = "Borne inferieure du support de la loi",
562                                     ang = "Support lower bound",
563                                     ),
564
565    ), # Fin BLOC LOGNORMAL
566
567
568
569    LOGISTIC = BLOC ( condition = " Kind in ( 'Logistic', ) ",
570
571                        Alpha = SIMP ( statut = "o",
572                                       typ = "R",
573                                       max = 1,
574                                       fr = "Borne inferieure du supoport de la loi",
575                                       ang = "Support lower bound",
576                                       ),
577
578                        Beta = SIMP ( statut = "o",
579                                      typ = "R",
580                                      max = 1,
581                                      val_min = 0.,
582                                      fr = "Parametre Beta de la loi | Beta > 0",
583                                      ang = "Beta parameter | Beta > 0",
584                                      ),
585
586    ), # Fin BLOC LOGISTIC
587
588
589
590    MULTINOMIAL = BLOC ( condition = " Kind in ( 'MultiNomial', ) ",
591                          
592                          N = SIMP ( statut = "o",
593                                     typ = "I",
594                                     max = 1,
595                                     fr = "Parametre N de la loi | N > 0",
596                                     ang = "N parameter | N > 0",
597                                     ),
598
599                        # Il faut definir une collection de couples ( x,p ) 
600                        Values = SIMP ( statut = 'o',
601                                        typ = "R",
602                                        max = '**',
603                                        fr = "Liste de probabilités",
604                                        ang = "Probability list",
605                                        validators=VerifTypeTuple(('R','R')),
606                                        ),
607
608    ), # Fin BLOC MULTINOMIAL
609
610
611   NONCENTRALSTUDENT = BLOC ( condition = " Kind in ( 'NonCentralStudent', ) ",
612
613                    Nu = SIMP ( statut = "o",
614                                typ = "R",
615                                max = 1,
616                                fr = "Parametre Nu de la loi | Nu > 0",
617                                ang = "Nu parameter | Nu > 0",
618                               ),
619
620                    Delta = SIMP ( statut = "o",
621                                   typ = "R",
622                                   max = 1,
623                                   fr = "Parametre Delta de la loi | Delta > 0",
624                                   ang = "Delta parameter | Delta > 0",
625                                   ),
626                    
627                    Gamma = SIMP ( statut = "o",
628                                   typ = "R",
629                                   max = 1,
630                                   fr = "Parametre Gamma de centrage de la loi",
631                                   ang = "Gamma parameter",
632                                   ),
633
634   ), # Fin BLOC NONCENTRALSTUDENT
635
636
637    NORMAL = BLOC ( condition = " Kind in ( 'Normal', ) ",
638
639                     Mu = SIMP ( statut = "o",
640                                 typ = "R",
641                                 max = 1,
642                                 fr = "Moyenne de la loi",
643                                 ang = "Mean value",
644                                 ),
645
646                    Sigma = SIMP ( statut = "o",
647                                   typ = "R",
648                                   max = 1,
649                                   val_min = 0.,
650                                   fr = "Ecart type de la loi",
651                                   ang = "Standard deviation",
652                                   ),
653
654    ), # Fin BLOC NORMAL
655
656
657
658    POISSON = BLOC ( condition = " Kind in ( 'Poisson', ) ",
659
660                      Lambda = SIMP ( statut = "o",
661                                      typ = "R",
662                                      max = 1,
663                                      val_min = 0.,
664                                      fr = "Parametre Lambda de la loi | Lambda > 0",
665                                      ang = "Lambda parameter | Lambda > 0",
666                                      ),
667
668    ), # Fin BLOC POISSON
669
670
671
672   RAYLEIGH = BLOC ( condition = " Kind in ( 'Rayleigh', ) ",
673
674                    Sigma = SIMP ( statut = "o",
675                                   typ = "R",
676                                   max = 1,
677                                   fr = "Parametre Sigma de la loi | Sigma > 0",
678                                   ang = "Sigma parameter | Sigma > 0",
679                                   ),
680
681                    Gamma = SIMP ( statut = "o",
682                                   typ = "R",
683                                   max = 1,
684                                   fr = "Borne inferieure du support de la loi",
685                                   ang = "Support lower bound",
686                                   ),
687  ), # Fin BLOC RAYLEIGH
688
689
690    STUDENT = BLOC ( condition = " Kind in ( 'Student', ) ",
691
692                      Mu = SIMP ( statut = "o",
693                                  typ = "R",
694                                  max = 1,
695                                  fr = "Parametre Mu de la loi",
696                                  ang = "Mu parameter",
697                                  ),
698
699                      Nu = SIMP ( statut = "o",
700                                  typ = "R",
701                                  max = 1,
702                                  val_min = 2.,
703                                  fr = "Parametre Nu de la loi | Nu > 2",
704                                  ang = "Nu parameter | Nu > 2",
705                                  ),
706
707                    Sigma = SIMP ( statut = "o",
708                                   typ = "R",
709                                   max = 1,
710                                   fr = "Parametre Sigma de la loi",
711                                   ang = "Sigma parameter",
712                                   ),
713
714    ), # Fin BLOC STUDENT
715
716
717
718    TRIANGULAR = BLOC ( condition = " Kind in ( 'Triangular', ) ",
719
720                          A = SIMP ( statut = "o",
721                                     typ = "R",
722                                     max = 1,
723                                     fr = "Borne inferieure du support de la loi | A < M < B",
724                                     ang = "Support lower bound | A < M < B",
725                                     ),
726
727                          M = SIMP ( statut = "o",
728                                     typ = "R",
729                                     max = 1,
730                                     fr = "Mode de la loi | A < M < B",
731                                     ang = "Mode | A < M < B",
732                                     ),
733
734                          B = SIMP ( statut = "o",
735                                     typ = "R",
736                                     max = 1,
737                                     fr = "Borne superieure du support de la loi | A < M < B",
738                                     ang = "Support upper bound | A < M < B",
739                                     ),
740
741    ), # Fin BLOC TRIANGULAR
742
743
744
745    TRUNCATEDNORMAL = BLOC ( condition = " Kind in ( 'TruncatedNormal', ) ",
746
747                              MuN = SIMP ( statut = "o",
748                                           typ = "R",
749                                           max = 1,
750                                           fr = "Moyenne de la loi Normale non tronquée",
751                                           ang = "Mean value of the associated non truncated normal distribution",
752                                           ),
753
754                              SigmaN = SIMP ( statut = "o",
755                                              typ = "R",
756                                              max = 1,
757                                              val_min = 0.,
758                                              fr = "Ecart-type de la loi Normale non tronquée",
759                                              ang = "Standard deviation of the associated non truncated normal distribution",
760                                              ),
761
762                              A = SIMP ( statut = "o",
763                                         typ = "R",
764                                         max = 1,
765                                         fr = "Borne inferieure de la loi | A < B",
766                                         ang = "Lower bound | A < B",
767                                         ),
768
769                              B = SIMP ( statut = "o",
770                                         typ = "R",
771                                         max = 1,
772                                         fr = "Borne superieure de la loi | A < B",
773                                         ang = "Upper bound | A < B",
774                                         ),
775
776    ), # Fin BLOC TRUNCATEDNORMAL
777
778
779
780    UNIFORM = BLOC ( condition = " Kind in ( 'Uniform', ) ",
781
782                      A = SIMP ( statut = "o",
783                                 typ = "R",
784                                 max = 1,
785                                 fr = "Borne inferieure du support de la loi | A < B",
786                                 ang = "Support lower bound | A < B",
787                                 ),
788
789                      B = SIMP ( statut = "o",
790                                 typ = "R",
791                                 max = 1,
792                                 fr = "Borne superieure du support de la loi | A < B",
793                                 ang = "Support upper bound | A < B",
794                                 ),
795
796    ), # Fin BLOC UNIFORM
797
798
799
800    USERDEFINED = BLOC ( condition = " Kind in ( 'UserDefined', ) ",
801
802                            # Il faut definir une collection de couples ( x,p ) 
803                          Values = SIMP ( statut = 'o',
804                                          typ = 'R',
805                                          max = '**',
806                                          ),
807
808    ), # Fin BLOC USERDEFINED
809
810
811
812    WEIBULL = BLOC ( condition = " Kind in ( 'Weibull', ) ",
813
814                      Settings = SIMP ( statut = "o",
815                                           typ = "TXM",
816                                           max = 1,
817                                           into = ( "AlphaBeta", "MuSigma" ),
818                                           defaut = "AlphaBeta",
819                                           fr = "Parametrage de la loi weibull",
820                                           ang = "Weibull distribution parameter set",
821                                           ),
822
823                      AlphaBeta_Parameters = BLOC ( condition = " Settings in ( 'AlphaBeta', ) ",
824
825                                          Alpha = SIMP ( statut = "o",
826                                                         typ = "R",
827                                                         max = 1,
828                                                         val_min = 0.,
829                                                         fr = "Parametre Alpha de la loi | Alpha > 0",
830                                                         ang = "Alpha parameter | Alpha > 0",
831                                                         ),
832
833                                          Beta = SIMP ( statut = "o",
834                                                        typ = "R",
835                                                        max = 1,
836                                                        val_min = 0.,
837                                                        fr = "Parametre Beta de la loi | Beta > 0",
838                                                        ang = "Beta parameter | Beta > 0",
839                                                        ),
840
841                                          ), # Fin BLOC AlphaBeta_Parameters
842
843
844                      MuSigma_Parameters = BLOC ( condition = " Settings in ( 'MuSigma', ) ",
845
846                                          Mu = SIMP ( statut = "o",
847                                                      typ = "R",
848                                                      max = 1,
849                                                      fr = "Moyenne de la loi",
850                                                      ang = "Mean value",
851                                                      ),
852
853                                          Sigma = SIMP ( statut = "o",
854                                                         typ = "R",
855                                                         max = 1,
856                                                         val_min = 0.,
857                                                         fr = "Ecart type de la loi",
858                                                         ang = "Standard deviation",
859                                                         ),
860
861                                          ), # Fin BLOC MuSigma_Parameters
862
863                      Gamma = SIMP ( statut = "o",
864                                     typ = "R",
865                                     max = 1,
866                                     fr = "Borne inferieure du support de la loi",
867                                     ang = "Support lower bound",
868                                     ),
869
870     ), # Fin BLOC WEIBULL
871
872 ) # Fin OPER DISTRIBUTION
873 # Ordre Catalogue DISTRIBUTION
874
875
876
877 #================================
878 # Definition du modele physique
879 #================================
880
881
882 DETERMINISTICVARIABLE = OPER ( nom = "DETERMINISTICVARIABLE",
883             sd_prod = variable,
884             op = None,
885             fr = "Variable deterministe",
886             ang = "Deterministic variable",
887             UIinfo = {"groupes": ("CACHE")},
888             
889   N = SIMP ( statut = 'o',
890              typ = "TXM",
891              fr = "Nom",
892              ang = "Name",
893              ),
894             
895   T = SIMP ( statut = 'o',
896              defaut = "in",
897              into = ( "in" , "out", ),
898              typ = "TXM",
899              fr = "Type",
900              ang = "Type",
901              ),
902             
903   R = SIMP ( statut = 'o',
904              defaut = 0,
905              typ = "I",
906              fr = "Rang",
907              ang = "Rank",
908              ),
909             
910 ) # Fin OPER DETERMINISTICVARIABLE
911 # Ordre Catalogue DETERMINISTICVARIABLE
912
913
914
915 import opsOT
916 MODEL = MACRO ( nom = "MODEL",
917                 op = None,
918                 UIinfo = { "groupes" : ( "Gestion du travail", ) },
919                 fr = "Chargement du wrapper du modele physique",
920                 ang = "Physical model wrapper load",
921                 sd_prod = opsOT.INCLUDE,
922                 op_init = opsOT.INCLUDE_context,
923                 fichier_ini = 1,
924                
925   FileName = SIMP ( statut = "o",
926                     typ = ('Fichier', 'Wrapper Files (*.xml);;All Files (*)',),
927                     fr = "Nom du modele physique",
928                     ang = "Physical model identifier",
929                     ),
930                
931 ) # Fin PROC MODEL
932 # Ordre Catalogue MODEL
933
934
935
936
937 VARIABLE = PROC ( nom = "VARIABLE",
938                   op = None,
939                   docu = "",
940                   fr = "Variable probabiliste",
941                   ang = "Probabilistic variable",
942
943   ModelVariable = SIMP ( statut = "o",
944                          typ = ( variable, ),
945                          fr = "Variable d'entrée du modèle",
946                          ang = "Input variable of the model",
947                          ),
948
949   Distribution = SIMP ( statut = "o",
950                         typ = ( loi, ),
951                         fr = "Modélisation probabiliste",
952                         ang = "Probabilistic modelisation",
953                         ),
954                   
955 ) # Fin PROC VARIABLE
956 # Ordre Catalogue VARIABLE
957
958
959 CORRELATION = PROC ( nom = 'CORRELATION',
960                      op = None,
961                      docu = "",
962                      fr = "Correlation entre variables",
963                      ang = "Variable correlation",
964
965   Copula = SIMP ( statut = "o",
966                   typ = 'TXM',
967                   into = ( "Independent", "Normal" ),
968                   defaut = "Independent",
969                   fr = "Type de la copule",
970                   ang = "Copula kind",
971                   ),
972
973   Matrix = BLOC ( condition = "Copula in ( 'Normal', )",
974                   
975     CorrelationMatrix = SIMP ( statut = "o",
976                                typ = Matrice(nbLigs=None,
977                                              nbCols=None,
978                                              methodeCalculTaille='NbDeVariables',
979                                              valSup=1,
980                                              valMin=-1,
981                                              structure="symetrique"),
982                                fr = "Matrice de correlation entre les variables d'entree",
983                                ang = "Correlation matrix for input variables",
984                                ),
985   ), # Fin BLOC Matrix
986
987
988 ) # Fin PROC CORRELATION
989 # Ordre Catalogue CORRELATION
990
991
992
993
994
995 #================================
996 # Definition de l'etude
997 #================================
998
999 # Nota : les variables de type PROC doivent etre en majuscules !
1000 CRITERIA = PROC ( nom = "CRITERIA",
1001                   op = None,
1002                   docu = "",
1003                   fr = "Critère de l'étude d'incertitudes",
1004                   ang = "Uncertainty study criteria",
1005
1006
1007
1008   Type = SIMP ( statut = "o",
1009                 typ = "TXM",
1010                 into = ( "Min/Max", "Central Uncertainty", "Threshold Exceedence" ),
1011                 fr = "Type du critère",
1012                 ang = "Criteria type",
1013                 ),
1014
1015
1016
1017
1018
1019
1020
1021   MinMax = BLOC ( condition = " Type in ( 'Min/Max', ) ",
1022
1023                   Method = SIMP ( statut = "o",
1024                                   typ = "TXM",
1025                                   into = ( "Experiment Plane", "Random Sampling" ),
1026                                   fr = "Methode",
1027                                   ang = "Method",
1028                                   ),
1029                   # UC 3.1.1
1030                   ExperimentPlaneSettings = BLOC ( condition = " Method in ( 'Experiment Plane', ) ",
1031
1032                           ExperimentPlane = SIMP ( statut = "o",
1033                                                    typ = "TXM",
1034                                                    into = ( "Axial", "Factorial", "Composite", ),
1035                                                    fr = "Type du plan d'expérience",
1036                                                    ang = "Experiment plane type",
1037                                                    ),
1038
1039                           Levels = SIMP ( statut = "o",
1040                                           typ = "R",
1041                                           val_min = 0.0,
1042                                           max = '**',    
1043                                           fr = "Liste de niveaux dans chaque direction",
1044                                           ang = "Levels in each direction",
1045                                           ),
1046
1047                           # Scaled Vector
1048                           UnitPerDimension = SIMP ( statut = "o",
1049                                           typ = "R",
1050                                           max = '**',    
1051                                           fr = "Unité par dimension (autant que de variables declarées)",
1052                                           ang = "Units per dimension (as much as declared variables)",
1053                                           ),
1054
1055                           # Translation Vector
1056                           Center = SIMP ( statut = "o",
1057                                           typ = "R",
1058                                           max = '**',    
1059                                           fr = "Centre du plan d'expérience",
1060                                           ang = "Experiment plan center",
1061                                           ),
1062
1063                     ), # Fin BLOC ExperimentPlaneSettings
1064
1065
1066
1067                   RandomSamplingSettings = BLOC ( condition = " Method in ( 'Random Sampling', ) ",
1068
1069                           SimulationsNumber = SIMP ( statut = "o",
1070                                                 typ = "I",
1071                                                 val_min = 1,
1072                                                 fr = "Nombre de points",
1073                                                 ang = "Points number",
1074                                                 ),
1075
1076                     ), # Fin BLOC RandomSamplingSettings
1077
1078                   Result = SIMP (  statut = "o",
1079                                    typ = "TXM",
1080                                    into = ( "Min/Max", ),
1081                                    defaut = "Min/Max",
1082                                    fr = "Le minimum et le maximum de la variable d'intérêt",
1083                                    ang = "The min and max values",
1084                                    ),
1085
1086
1087   ), # Fin BLOC MinMax
1088
1089
1090
1091
1092   CentralUncertainty = BLOC ( condition = " Type in ( 'Central Uncertainty', ) ",
1093
1094                   Method = SIMP ( statut = "o",
1095                                   typ = "TXM",
1096                                   into = ( "Taylor Variance Decomposition", "Random Sampling" ),
1097                                   fr = "Methode",
1098                                   ang = "Method",
1099                                   ),
1100                               
1101                   # UC 3.2.
1102                   TaylorVarianceDecompositionSettings = BLOC ( condition = " Method in ( 'Taylor Variance Decomposition', ) ",
1103
1104                       Result = FACT ( statut = "o",
1105                                       min = 1,
1106                                       max = "**",
1107
1108                               MeanFirstOrder = SIMP ( statut = "o",
1109                                                 typ = 'TXM',
1110                                                 into = ( 'yes', 'no' ),
1111                                                 defaut = 'yes',
1112                                                 max = 1,
1113                                                 fr = "Moyenne au premier ordre",
1114                                                 ang = "MeanFirstOrder",
1115                                                 ),
1116
1117                               StandardDeviationFirstOrder = SIMP ( statut = "o",
1118                                                                    typ = 'TXM',
1119                                                                    into = ( 'yes', 'no' ),
1120                                                                    defaut = 'yes',
1121                                                                    max = 1,
1122                                                                    fr = "Ecart-type au premier ordre",
1123                                                                    ang = "StandardDeviationFirstOrder",
1124                                                                    ),
1125
1126                               MeanSecondOrder = SIMP ( statut = "o",
1127                                                        typ = 'TXM',
1128                                                        into = ( 'yes', 'no' ),
1129                                                        defaut = 'no',
1130                                                        max = 1,
1131                                                        fr = "Moyenne au second ordre",
1132                                                        ang = "MeanSecondOrder",
1133                                                        ),
1134
1135                               ImportanceFactor = SIMP ( statut = "o",
1136                                                         typ = 'TXM',
1137                                                         into = ( 'yes', 'no' ),
1138                                                         defaut = 'yes',
1139                                                         max = 1,
1140                                                         fr = "Facteur d'importance pour variable de sortie scalaire",
1141                                                         ang = "ImportanceFactor",
1142                                                         ),
1143                               ImportanceFactorSettings = BLOC ( condition = " ImportanceFactor in ( 'yes', ) ",
1144
1145                                      ImportanceFactorDrawingFilename = SIMP ( statut = "o",
1146                                                                               typ = "TXM",
1147                                                                               max = 1,
1148                                                                               fr = "Nom du fichier graphique des facteurs d'importance",
1149                                                                               ang = "Importance Factor Drawing Filename",
1150                                                                               ),
1151                                                                              
1152
1153                               ), # Fin BLOC ImportanceFactorSettings
1154                                       
1155                       ), # Fin FACT Result
1156                                                                
1157                   ), # Fin BLOC TaylorVarianceDecompositionSettings
1158
1159
1160
1161                   RandomSamplingSettings = BLOC ( condition = " Method in ( 'Random Sampling', ) ",
1162
1163                           SimulationsNumber = SIMP ( statut = "o",
1164                                                 typ = "I",
1165                                                 val_min = 1,
1166                                                 fr = "Nombre de points",
1167                                                 ang = "Points number",
1168                                                 ),
1169
1170                        Result = FACT ( statut = "o",
1171                                       min = 1,
1172                                       max = "**",
1173
1174                               EmpiricalMean = SIMP ( statut = "o",
1175                                                      typ = 'TXM',
1176                                                      into = ( 'yes', 'no' ),
1177                                                      defaut = 'yes',
1178                                                      max = 1,
1179                                                      fr = "Moyenne empirique",
1180                                                      ang = "Empirical mean",
1181                                                      ),
1182
1183                               EmpiricalStandardDeviation = SIMP ( statut = "o",
1184                                                                   typ = 'TXM',
1185                                                                   into = ( 'yes', 'no' ),
1186                                                                   defaut = 'yes',
1187                                                                   max = 1,
1188                                                                   fr = "Ecart-type empirique",
1189                                                                   ang = "Empirical standard deviation",
1190                                                                   ),
1191
1192                               EmpiricalQuantile = SIMP ( statut = "o",
1193                                                          typ = 'TXM',
1194                                                          into = ( 'yes', 'no' ),
1195                                                          defaut = 'yes',
1196                                                          max = 1,
1197                                                          fr = "Quantile empirique",
1198                                                          ang = "Empirical quantile",
1199                                                          ),
1200
1201                               EmpiricalQuantileSettings = BLOC ( condition = " EmpiricalQuantile in ( 'yes', ) ",
1202
1203                                   EmpiricalQuantile_Order = SIMP ( statut = "o",
1204                                                                    typ = 'R',
1205                                                                    defaut = 0.95,
1206                                                                    max = 1,
1207                                                                    val_min = 0.0,
1208                                                                    val_max = 1.0,
1209                                                                    fr = "Ordre du quantile empirique",
1210                                                                    ang = "Empirical quantile order",
1211                                                                    ),
1212
1213                               ), # Fin BLOC EmpiricalQuantileSettings
1214
1215                               CorrelationAnalysis = SIMP ( statut = "o",
1216                                                             typ = 'TXM',
1217                                                             into = ( 'yes', 'no' ),
1218                                                             defaut = 'yes',
1219                                                             max = 1,
1220                                                             fr = "Correlations analysees",
1221                                                             ang = "Analysed correlations",
1222                                                             ),
1223
1224                               KernelSmoothing = SIMP ( statut = "o",
1225                                                        typ = 'TXM',
1226                                                        into = ( 'yes', 'no' ),
1227                                                        defaut = 'yes',
1228                                                        max = 1,
1229                                                        fr = "Kernel smoothing de l'echantillon",
1230                                                        ang = "Kernel smoothing of the sample",
1231                                                        ),
1232
1233                               KernelSmoothingSettings = BLOC ( condition = " KernelSmoothing in ( 'yes', ) ",
1234
1235                                      KernelSmoothingDrawingFilename = SIMP ( statut = "o",
1236                                                                               typ = "TXM",
1237                                                                               max = 1,
1238                                                                               fr = "Nom du fichier graphique de la reconstruction a noyau",
1239                                                                               ang = "Kernel Smoothing Drawing Filename",
1240                                                                               ),
1241                                                                              
1242
1243                               ), # Fin BLOC KernelSmoothingSettings
1244                                       
1245                       ), # Fin FACT Result
1246                                                                
1247                   ), # Fin BLOC RandomSamplingSettings
1248
1249   ), # Fin BLOC CentralUncertainty
1250
1251
1252
1253
1254   ThresholdExceedence = BLOC ( condition = " Type in ( 'Threshold Exceedence', ) ",
1255
1256          Event =  FACT ( statut = "o",
1257                          min = 1,
1258                          max = 1,
1259
1260                          Threshold = SIMP ( statut = "o",
1261                                             typ = "R",
1262                                             max = 1,
1263                                             fr = "Le seuil de defaillance",
1264                                             ang = "Failure threshold",
1265                                             ),
1266
1267                          ComparisonOperator = SIMP ( statut = "o",
1268                                                      typ = "TXM",
1269                                                      max = 1,
1270                                                      into = ( "Less", "LessOrEqual", "Equal", "GreaterOrEqual", "Greater" ),
1271                                                      fr = "Que faut-il ne pas depasser : un maximum ou un minimum",
1272                                                      ang = "What is the failure threshold : maximum or minimum",
1273                                                      ),
1274          ), # Fin FACT Event
1275                          
1276
1277          Method = SIMP ( statut = "o",
1278                          typ = "TXM",
1279                          into = ( "Simulation", "FORM_SORM" ),
1280                          fr = "Methode",
1281                          ang = "Method",
1282                          ),
1283
1284          SimulationSettings = BLOC ( condition = " Method in ( 'Simulation', ) ",
1285
1286                Algorithm = SIMP ( statut = "o",
1287                                   typ = "TXM",
1288                                   into = ( "MonteCarlo", "LHS", "ImportanceSampling" ),
1289                                   fr = "Algorithme de simulation",
1290                                   ang = "Simulation algorithm",
1291                                   ),
1292
1293                                  
1294                RandomGenerator = FACT ( statut = "o",
1295                                         min = 1,
1296                                         max = 1,
1297
1298                            SeedToBeSet = SIMP ( statut = "o",
1299                                                 typ = 'TXM',
1300                                                 into = ( 'yes', 'no' ),
1301                                                 defaut = 'no',
1302                                                 max = 1,
1303                                                 fr = "La racine du generateur aleatoire doit-elle etre positionnee ?",
1304                                                 ang = "Does the random generator seed need to be set ?",
1305                                                 ),
1306
1307                            SeedSettings = BLOC ( condition = " SeedToBeSet in ( 'yes', ) ",
1308
1309                                                  RandomGeneratorSeed = SIMP ( statut = "o",
1310                                                                               typ = "I",
1311                                                                               max = 1,
1312                                                                               fr = "Racine du generateur aleatoire",
1313                                                                               ang = "Random generator seed",
1314                                                                               ),
1315
1316                                                ), # Fin BLOC SeedSettings
1317
1318                ), # Fin FACT RandomGenerator
1319
1320
1321                BlockSize = SIMP ( statut = "o",
1322                                   typ = "I",
1323                                   max = 1,
1324                                   val_min = 1,
1325                                   defaut = 1,
1326                                   fr = "Nombre de calculs realises en bloc",
1327                                   ang = "Number of computations as a block",
1328                                   ),
1329
1330                MaximumOuterSampling = SIMP ( statut = "o",
1331                                              typ = "I",
1332                                              max = 1,
1333                                              val_min = 1,
1334                                              fr = "Maximum d'iterations externes",
1335                                              ang = "Maximum outer Sampling value",
1336                                              ),
1337
1338                MaximumCoefficientOfVariation = SIMP ( statut = "o",
1339                                                       typ = "R",
1340                                                       max = 1,
1341                                                       defaut = 0.1,
1342                                                       val_min = 0.0,
1343                                                       val_max = 1.0,
1344                                                       fr = "Coefficient de variation maximum",
1345                                                       ang = "Maximum coefficient of variation"
1346                                                       ),
1347
1348                ImportanceSamplingSettings = BLOC ( condition = " Algorithm in ( 'ImportanceSampling', ) ",
1349
1350                             MeanVector = SIMP ( statut = "o",
1351                                                 typ = "R",
1352                                                 max = "**",
1353                                                 fr = "Moyenne",
1354                                                 ang = "Mean vector",
1355                                                 ),
1356
1357
1358                ), # Fin BLOC ImportanceSamplingSettings
1359
1360                Result = FACT ( statut = "o",
1361                                       min = 1,
1362                                       max = "**",
1363
1364                     Probability = SIMP ( statut = "o",
1365                                          typ = 'TXM',
1366                                          into = ( 'yes', ),
1367                                          defaut = 'yes',
1368                                          max = 1,
1369                                          fr = "Probabiblite",
1370                                          ang = "Probability",
1371                                          ),
1372
1373                     StandardDeviation = SIMP ( statut = "o",
1374                                          typ = 'TXM',
1375                                          into = ( 'yes', ),
1376                                          defaut = 'yes',
1377                                          max = 1,
1378                                          fr = "Ecart type",
1379                                          ang = "Standard deviation",
1380                                          ),
1381
1382                     ConfidenceInterval = SIMP ( statut = "o",
1383                                                 typ = 'TXM',
1384                                                 into = ( 'yes', 'no' ),
1385                                                 defaut = 'yes',
1386                                                 max = 1,
1387                                                 fr = "Intervale de confiance",
1388                                                 ang = "Confidence interval",
1389                                                 ),
1390
1391                     ConfidenceIntervalSettings = BLOC ( condition = " ConfidenceInterval in ( 'yes', ) ",
1392
1393                           Level = SIMP ( statut = "o",
1394                                          typ = 'R',
1395                                          defaut = 0.9,
1396                                          max = 1,
1397                                          val_min = 0.0,
1398                                          val_max = 1.0,
1399                                          fr = "Niveau de confiance",
1400                                          ang = "Confidence level",
1401                                          ),
1402                                                      
1403                     ), # Fin BLOC ConfidenceIntervalSettings
1404                                
1405                     VariationCoefficient = SIMP ( statut = "o",
1406                                                   typ = 'TXM',
1407                                                   into = ( 'yes', 'no' ),
1408                                                   defaut = 'yes',
1409                                                   max = 1,
1410                                                   fr = "Coefficient de variation",
1411                                                   ang = "Coefficient of variation",
1412                                                   ),
1413
1414                     SimulationsNumber = SIMP ( statut = "o",
1415                                              typ = 'TXM',
1416                                              into = ( 'yes', 'no' ),
1417                                              defaut = 'yes',
1418                                              max = 1,
1419                                              fr = "Nombre d'iterations",
1420                                              ang = "Iteration number",
1421                                              ),
1422
1423                     ConvergenceGraph = SIMP ( statut = "o",
1424                                              typ = 'TXM',
1425                                              into = ( 'yes', 'no' ),
1426                                              defaut = 'yes',
1427                                              max = 1,
1428                                              fr = "Graphe de convergence",
1429                                              ang = "Convergence graph",
1430                                              ),
1431                                
1432                     ConvergenceGraphSettings = BLOC ( condition = " ConvergenceGraph in ( 'yes', ) ",
1433
1434                                      ConvergenceDrawingFilename = SIMP ( statut = "o",
1435                                                                          typ = "TXM",
1436                                                                          max = 1,
1437                                                                          fr = "Nom du fichier graphique de la convergence",
1438                                                                          ang = "Convergence Drawing Filename",
1439                                                                          ),
1440                                                                              
1441
1442                               ), # Fin BLOC ConvergenceGraphSettings
1443                                       
1444              ), # Fin FACT Result
1445                                                                
1446
1447
1448          ), # Fin BLOC SimulationSettings
1449
1450
1451                                
1452          FORM_SORMSettings = BLOC ( condition = " Method in ( 'FORM_SORM', ) ",
1453
1454                 Approximation = SIMP ( statut = "o",
1455                                        typ = "TXM",
1456                                        defaut = "FirstOrder",
1457                                        into = ( "FirstOrder", "SecondOrder" ),
1458                                        max = 1,
1459                                        fr = "Approximation",
1460                                        ang = "Approximation",
1461                                        ),
1462
1463                 OptimizationAlgorithm = SIMP ( statut = "o",
1464                                                typ = "TXM",
1465                                                defaut = "Cobyla",
1466                                                into = ( "Cobyla", "AbdoRackwitz" ),
1467                                                max = 1,
1468                                                fr = "Methode d'optimisation",
1469                                                ang = "Optimization method",
1470                                                ),
1471
1472                                      
1473                 PhysicalStartingPoint = SIMP ( statut = "f",
1474                                                typ = "R",
1475                                                max = "**",
1476                                                fr = "Point de demarrage de l'algorithme iteratif",
1477                                                ang = "Initial point for iterative process",
1478                                                ),
1479
1480                 MaximumIterationsNumber = SIMP ( statut = "f",
1481                                                  typ = "I",
1482                                                  max = 1,
1483                                                  val_min = 1,
1484                                                  fr = "Nombre maximum d'iterations",
1485                                                  ang = "Maximum number of iterations",
1486                                                  ),
1487
1488                                      
1489                 MaximumAbsoluteError = SIMP ( statut = "o",
1490                                               typ = "R",
1491                                               max = 1,
1492                                               defaut = 1E-4,
1493                                               val_min = 0.0,
1494                                               fr = "Distance maximum absolue entre 2 iterations successives",
1495                                               ang = "Absolute maximum distance between 2 successive iterates",
1496                                               ),
1497
1498                 MaximumRelativeError = SIMP ( statut = "o",
1499                                                typ = "R",
1500                                                max = 1,
1501                                                defaut = 1E-4,
1502                                                val_min = 0.0,
1503                                                fr = "Distance maximum relative entre 2 iterations successives",
1504                                                ang = "Relative maximum distance between 2 successive iterates",
1505                                                ),
1506                                      
1507                 MaximumConstraintError = SIMP ( statut = "o",
1508                                                 typ = "R",
1509                                                 max = 1,
1510                                                 defaut = 1E-4,
1511                                                 val_min = 0.0,
1512                                                 fr = "Valeur maximum absolue de la fonction moins la valeur du niveau",
1513                                                 ang = "Maximum absolute value of the constraint function minus the level value",
1514                                                 ),
1515
1516                 ImportanceSampling = SIMP ( statut = "o",
1517                                             typ = 'TXM',
1518                                             into = ( 'yes', 'no' ),
1519                                             defaut = 'no',
1520                                             max = 1,
1521                                             fr = "Tirage d'importance au point de conception",
1522                                             ang = "Importance sampling at design point",
1523                                             ),
1524
1525                 FORMResult = BLOC ( condition = " Approximation in ( 'FirstOrder', ) ",
1526
1527                     Probability = SIMP ( statut = "o",
1528                                          typ = 'TXM',
1529                                          into = ( 'yes', ),
1530                                          defaut = 'yes',
1531                                          max = 1,
1532                                          fr = "Probabiblite",
1533                                          ang = "Probability",
1534                                          ),
1535
1536                     DesignPoint = SIMP ( statut = "o",
1537                                          typ = 'TXM',
1538                                          into = ( 'yes', 'no' ),
1539                                          defaut = 'yes',
1540                                          max = 1,
1541                                          fr = "Point de conception",
1542                                          ang = "Design point",
1543                                          ),
1544
1545                     HasoferReliabilityIndex = SIMP ( statut = "o",
1546                                                  typ = 'TXM',
1547                                                  into = ( 'yes', 'no' ),
1548                                                  defaut = 'yes',
1549                                                  max = 1,
1550                                                  fr = "Indice de fiabilite",
1551                                                  ang = "Reliability index",
1552                                                  ),
1553
1554                     ImportanceFactor = SIMP ( statut = "o",
1555                                               typ = 'TXM',
1556                                               into = ( 'yes', 'no' ),
1557                                               defaut = 'yes',
1558                                               max = 1,
1559                                               fr = "Facteur d'importance pour variable de sortie scalaire",
1560                                               ang = "Importance factor",
1561                                               ),
1562
1563                     ImportanceFactorSettings = BLOC ( condition = " ImportanceFactor in ( 'yes', ) ",
1564
1565                                      ImportanceFactorDrawingFilename = SIMP ( statut = "o",
1566                                                                               typ = "TXM",
1567                                                                               max = 1,
1568                                                                               fr = "Nom du fichier graphique des facteurs d'importance",
1569                                                                               ang = "Importance Factor Drawing Filename",
1570                                                                               ),
1571                                                                              
1572
1573                               ), # Fin BLOC ImportanceFactorSettings
1574                                       
1575                     SensitivityAnalysis = SIMP ( statut = "o",
1576                                                  typ = 'TXM',
1577                                                  into = ( 'yes', 'no' ),
1578                                                  defaut = 'yes',
1579                                                  max = 1,
1580                                                  fr = "Analyse de sensibilite",
1581                                                  ang = "Sensitivity analysis",
1582                                                  ),
1583
1584                     SensitivityAnalysisSettings = BLOC ( condition = " SensitivityAnalysis in ( 'yes', ) ",
1585
1586                             FORMEventProbabilitySensitivity = SIMP ( statut = "o",
1587                                                              typ = 'TXM',
1588                                                              into = ( 'yes', 'no' ),
1589                                                              defaut = 'yes',
1590                                                              max = 1,
1591                                                              fr = "Indice de fiabilite de Hasofer",
1592                                                              ang = "Hasofer reliability index",
1593                                                              ),
1594         
1595                             FORMEventProbabilitySensitivitySettings = BLOC ( condition = " FORMEventProbabilitySensitivity in ( 'yes', ) ",
1596
1597                                      FORMEventProbabilitySensitivityDrawingFilename = SIMP ( statut = "o",
1598                                                                          typ = "TXM",
1599                                                                          max = 1,
1600                                                                          fr = "Nom du fichier graphique des sensibilites",
1601                                                                          ang = "Sensitivity Drawing Filename",
1602                                                                          ),
1603                                                                              
1604
1605                               ), # Fin BLOC FORMEventProbabilitySensitivitySettings
1606                                       
1607                             HasoferReliabilityIndexSensitivity = SIMP ( statut = "o",
1608                                                              typ = 'TXM',
1609                                                              into = ( 'yes', 'no' ),
1610                                                              defaut = 'yes',
1611                                                              max = 1,
1612                                                              fr = "Indice de fiabilite de Hasofer",
1613                                                              ang = "Hasofer reliability index",
1614                                                              ),
1615         
1616                             HasoferReliabilityIndexSensitivitySettings = BLOC ( condition = " HasoferReliabilityIndexSensitivity in ( 'yes', ) ",
1617
1618                                      HasoferReliabilityIndexSensitivityDrawingFilename = SIMP ( statut = "o",
1619                                                                          typ = "TXM",
1620                                                                          max = 1,
1621                                                                          fr = "Nom du fichier graphique des sensibilites",
1622                                                                          ang = "Sensitivity Drawing Filename",
1623                                                                          ),
1624                                                                              
1625
1626                               ), # Fin BLOC FHasoferReliabilityIndexSensitivitySettings
1627                                       
1628                     ), # Fin BLOC SensitivityAnalysisSettings
1629
1630                     FunctionCallsNumber = SIMP ( statut = "o",
1631                                                  typ = 'TXM',
1632                                                  into = ( 'yes', 'no' ),
1633                                                  defaut = 'yes',
1634                                                  max = 1,
1635                                                  fr = "Nombre d'appels a la fonction",
1636                                                  ang = "Function calls number",
1637                                                  ),
1638
1639
1640                 ), # Fin BLOC FORMResult
1641
1642
1643                 SORMResult = BLOC ( condition = " Approximation in ( 'SecondOrder', ) ",
1644
1645
1646                     TvedtApproximation = SIMP ( statut = "o",
1647                                                 typ = 'TXM',
1648                                                 into = ( 'yes', 'no' ),
1649                                                 defaut = 'yes',
1650                                                 max = 1,
1651                                                 fr = "Approximation de Tvedt",
1652                                                 ang = "Tvedt approximation",
1653                                                 ),
1654
1655                     HohenBichlerApproximation = SIMP ( statut = "o",
1656                                                        typ = 'TXM',
1657                                                        into = ( 'yes', 'no' ),
1658                                                        defaut = 'yes',
1659                                                        max = 1,
1660                                                        fr = "Approximation de HohenBichler",
1661                                                        ang = "HohenBichler approximation",
1662                                                        ),
1663
1664                     BreitungApproximation = SIMP ( statut = "o",
1665                                                    typ = 'TXM',
1666                                                    into = ( 'yes', 'no' ),
1667                                                    defaut = 'yes',
1668                                                    max = 1,
1669                                                    fr = "Approximation de Breitung",
1670                                                    ang = "Breitung approximation",
1671                                                    ),
1672
1673                     DesignPoint = SIMP ( statut = "o",
1674                                          typ = 'TXM',
1675                                          into = ( 'yes', 'no' ),
1676                                          defaut = 'yes',
1677                                          max = 1,
1678                                          fr = "Point de conception",
1679                                          ang = "Design point",
1680                                          ),
1681
1682                     ImportanceFactor = SIMP ( statut = "o",
1683                                               typ = 'TXM',
1684                                               into = ( 'yes', 'no' ),
1685                                               defaut = 'yes',
1686                                               max = 1,
1687                                               fr = "Facteur d'importance pour variable de sortie scalaire",
1688                                               ang = "Importance factor",
1689                                               ),
1690
1691                     ImportanceFactorSettings = BLOC ( condition = " ImportanceFactor in ( 'yes', ) ",
1692
1693                                      ImportanceFactorDrawingFilename = SIMP ( statut = "o",
1694                                                                               typ = "TXM",
1695                                                                               max = 1,
1696                                                                               fr = "Nom du fichier graphique des facteurs d'importance",
1697                                                                               ang = "Importance Factor Drawing Filename",
1698                                                                               ),
1699                                                                              
1700
1701                               ), # Fin BLOC ImportanceFactorSettings
1702                                       
1703                     SensitivityAnalysis = SIMP ( statut = "o",
1704                                                  typ = 'TXM',
1705                                                  into = ( 'yes', 'no' ),
1706                                                  defaut = 'yes',
1707                                                  max = 1,
1708                                                  fr = "Analyse de sensibilite",
1709                                                  ang = "Sensitivity analysis",
1710                                                  ),
1711
1712                     SensitivityAnalysisSettings = BLOC ( condition = " SensitivityAnalysis in ( 'yes', ) ",
1713
1714                             HasoferReliabilityIndexSensitivity = SIMP ( statut = "o",
1715                                                              typ = 'TXM',
1716                                                              into = ( 'yes', 'no' ),
1717                                                              defaut = 'yes',
1718                                                              max = 1,
1719                                                              fr = "Indice de fiabilite de Hasofer",
1720                                                              ang = "Hasofer reliability index",
1721                                                              ),
1722                                                                  
1723                             HasoferReliabilityIndexSensitivitySettings = BLOC ( condition = " HasoferReliabilityIndexSensitivity in ( 'yes', ) ",
1724
1725                                      HasoferReliabilityIndexSensitivityDrawingFilename = SIMP ( statut = "o",
1726                                                                          typ = "TXM",
1727                                                                          max = 1,
1728                                                                          fr = "Nom du fichier graphique des sensibilites",
1729                                                                          ang = "Sensitivity Drawing Filename",
1730                                                                          ),
1731                                                                              
1732
1733                               ), # Fin BLOC FHasoferReliabilityIndexSensitivitySettings
1734                                       
1735                     ), # Fin BLOC SensitivityAnalysisSettings
1736
1737                     FunctionCallsNumber = SIMP ( statut = "o",
1738                                                  typ = 'TXM',
1739                                                  into = ( 'yes', 'no' ),
1740                                                  defaut = 'yes',
1741                                                  max = 1,
1742                                                  fr = "Nombre d'appels a la fonction",
1743                                                  ang = "Function calls number",
1744                                                  ),
1745
1746
1747                 ), # Fin BLOC SecondOrder
1748
1749
1750                                      
1751         ), # Fin BLOC FORM_SORMSettings
1752
1753
1754                                
1755   ), # Fin BLOC ThresholdExceedence
1756
1757
1758
1759 ) # Fin PROC CRITERIA
1760 # Ordre Catalogue CRITERIA
1761
1762
1763
1764
1765
1766
1767