From 917aedfffe261c67a0df377f36fb1b621a60e877 Mon Sep 17 00:00:00 2001 From: Eric Fayolle Date: Wed, 15 Jun 2022 17:38:05 +0200 Subject: [PATCH] =?utf8?q?Ajout=20de=20param=C3=A8tres=20de=20propagation?= =?utf8?q?=20incertitudes=20MC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ReacteurNumerique/cata_UQ.py | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/ReacteurNumerique/cata_UQ.py b/ReacteurNumerique/cata_UQ.py index 5374ee41..2a6c1838 100644 --- a/ReacteurNumerique/cata_UQ.py +++ b/ReacteurNumerique/cata_UQ.py @@ -1668,10 +1668,35 @@ def creeOperExpressionIncertitude(monDicoVarDeter, monDicoVarSortie): Propagation_OT = BLOC( condition = "UncertaintyTool == 'OpenTurns'", Methode = SIMP( statut = "o", typ = "TXM", max=1, into = ('Taylor', 'MonteCarlo'), defaut='Taylor'), BlocMonteCarlo1 = BLOC ( condition = "Methode == 'MonteCarlo'", - SimulationsNumber = SIMP ( statut = "o", typ = "I", val_min = 1, - fr = "Nombre de points", - ang = "Points number",), - + CritereArret = FACT ( statut = "o", max = 1, + regles = (AU_MOINS_UN('SimulationsNumber','MaximumElapsedTime'),), + Accuracy = SIMP ( statut = "f", typ = "R", + val_min = 0.0, val_max = 1.0, sug = 0.01, #TODO: val_min > 0 + fr = "Coefficient de variation maximum à atteindre", + ang = "Accuracy - the maximum coefficient of variation (CV) for the mean",), + SimulationsNumber = SIMP ( statut = "o", typ = "I", val_min = 1, defaut =10000, + fr = "Nombre maximum de réalisations", + ang = "maximum sampling size ",), + MaximumElapsedTime = SIMP ( statut = "f", typ = "I", val_min = 1, defaut = 60, + unite = "secondes", + fr = "Temps elapse maximum pour l'exécution globale", + ang = "Maximum elapse time for the whole simulation",), + ), # FIN FACT CritereArret + EvaluationParameter = FACT ( statut = "o", max = 1, #TODO: BlockSize < SimulationsNumber + BlockSize = SIMP ( statut = "o", typ = "I", val_min = 1, defaut = 1, + fr = "Nombre d'évaluations en parallèle", + ang = "The number of runs launched simultaneously",), + ), # FIN FACT EvaluationParameter + AdvancedParameter = FACT ( statut = "f", max = 1, #TODO: BlockSize < SimulationsNumber + ComputeConfidenceIntervalAt = SIMP ( statut = "o", typ = "R", + val_min = 0, val_max = 0.9999, + #TODO: avec statut = "f" && defaut = 0.95, + fr = "Demande le calcul de l'interval de confiance au niveau donné", + ang = "Require the computation of the confidence interval at a given level",), + Seed = SIMP ( statut = "o", typ = "R", val_min = 0, defaut = 0, + fr = "La graine d'initialisation du générateur aléatoire", + ang = "The seed of the random generator ",), + ), # FIN FACT AdvancedParameter ), BlocTaylor = BLOC( condition = "Methode == 'Taylor'", Result = FACT( statut = "o", min = 1, -- 2.39.2