• Aucun résultat trouvé

Inverse uncertainty quantification applied to thermal-hydraulic simulations

N/A
N/A
Protected

Academic year: 2021

Partager "Inverse uncertainty quantification applied to thermal-hydraulic simulations"

Copied!
29
0
0

Texte intégral

(1)

HAL Id: cea-02338934

https://hal-cea.archives-ouvertes.fr/cea-02338934

Submitted on 12 Dec 2019

HAL is a multi-disciplinary open access

archive for the deposit and dissemination of

sci-entific research documents, whether they are

pub-lished or not. The documents may come from

teaching and research institutions in France or

abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est

destinée au dépôt et à la diffusion de documents

scientifiques de niveau recherche, publiés ou non,

émanant des établissements d’enseignement et de

recherche français ou étrangers, des laboratoires

publics ou privés.

Inverse uncertainty quantification applied to

thermal-hydraulic simulations

G. Damblin, Pierre Gaillard

To cite this version:

G. Damblin, Pierre Gaillard. Inverse uncertainty quantification applied to thermal-hydraulic

sim-ulations. MIA PARIS-Rochebrune 2018 (Statistics seminar), Nov 2018, Rochebrune, France.

�cea-02338934�

(2)

Inverse uncertainty quantification applied to

thermal-hydraulic simulations

Guillaume Damblin 1 Pierre Gaillard 2 Blanc

1CEA DEN/DANS/DM2S/STMF/LGLS 2 AREVA NP

Statistics seminar in Rochebrune

(3)

Outline

1

Motivations for inverse UQ in TH simulations

2

The CIRCE method

3

The Bayesian counterpart of CIRCE

4

Non linear generalization

5

Conclusions

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(4)
(5)

The CATHARE 2 computer code

 Best Estimate thermal-hydraulic system code developed by CEA,

 Based on six balance equations: mass, momentum and energy conservation

• require buildingcorrelations (also called closure laws or physical models)

 Nuclear simulations with several levels of complexity:

• Separate/Combined Effects Test (SET, CET)

- at reduced scale, few physical phenomena

• Integral Effect Test (IET)

- many phenomena together.

 Simulating accidental transcients for safety analysis

 Great effort devoted to V&V implementation

- Verification : Are the equations solved right ?

- Validation : Are the right equations solved ?

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(6)

Uncertainties at all stages

C

ONCEPTION OF CORRELATIONS

 ex: heat transfers (convection, condensation, etc):

Cnom(x, θ)

where x is a vector of physical variables and θ is a fitting parameter.  parameter uncertainty affecting θ (neglected by physicists)

V&V

IMPLEMENTATION

 Verification stage : numerical uncertainties (ex: mesh convergence)

 Validation stage : where CATHARE 2 predictions are confronted to experimental data from SET.

• correlation uncertainty assessed from differences between both of them

=⇒ inverse UQ process

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(7)
(8)

Correlation uncertainty

M

AIN ASSUMPTIONS

• Model uncertainty is multiplicative:

CΛ(x) = Λ × Cnom(x)

• Λfollows a probability distribution

• Λis log-Gaussian, calculated by theCIRCE method (De Crécy and Bazin, 2001).

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(9)

The CIRCE statistical method

CIRCE = Calcul des Incertitudes Relatives aux Corrélations Élémentaires.

S

TATISTICAL MODELING

zi∈ R the QoI experimentally measured at xi∈ Rm

Y (.)the CATHARE 2 code (used as a black-box function)

For i ∈ [[1; n]], we assume that

zi= Y (Cλ1,i(xi), · · · , Cλp,i(xi)) + i = Y(λ1,i,··· ,λp,i)(xi) + i

where

- λj,i∼ Λj= LN (mj, σ2j), j ∈ [[1; p]]

- αj,i= log (λj,i) ∼ Aj= N (mj, σj2),

- i∼ N (0, σ2i).

The CIRCE method consists in estimating mjand σ2jfor j ∈ [[1; p]]

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(10)

Ex: condensation flow rate at the safety injection

Cooled water injected in the cold leg during LOCA

• One correlation per area,

We focus on area B and C,

• Condensation higher in the area B than area C,

Qi=condensation flow rate measurement to the edge of area C (kg/s),

 The CATHARE 2 code can predict Q by using two correlations of condensation

1(xi)(area B) and Cλ2(xi)(area C)  Qi = Y(λ1,i,λ2,i)(xi) + i

where xiincludes injection pressure, injection temperature, water height in the cold led, etc.

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(11)

Other assumptions and implementation process

O

THER ASSUMPTIONS UNDERLYING CIRCE

:

 The factors are not correlated each other: Cov(Λj, Λk) = 0 ; 1 ≤ j 6= k ≤ p,  The experimental variances σ2

iare assumed known.

CIRCE IMPLEMENTATION

:

1. Linearization at αnom= log (λnom), typically at the nominal model 0p= log 1p

zi− Yinom= h T

i(αi− αnom) + iwith αi:= log λi

Identifiability: rank(H) = p where H = [h1, · · · , hn]T∈ Mnp.

2. Computation of MLE estimates ( ˆmj, ˆσ2j)using an EM algorithm:

• Both E and M steps are explicit,

• ECME to speed up the convergence (Celeux et al., 2010).

3. Post treatment:

• Statistical analysis of residuals, LOO cross validation,

• Check the linearity assumption on

IF0.95(Aj) = [ ˆmj− 1.96ˆσj, ˆmj+ 1.96ˆσj], j ∈ [[1; p]],

• Deduce the 95%-interval of Λj:

IF0.95j) = [exp ( ˆmj− 1.96ˆσj), exp ( ˆmj+ 1.96ˆσj)], j ∈ [[1; p]]

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(12)
(13)

The Bayesian setting

Notations:

 z = [z1, · · · , zn]T∈ Rnthe matrix of field measurements

 α = [α1, · · · , αn]T∈ Mnpthe matrix of missing model log-samples:  m = (m1, · · · , mp)T∈ Rpand σ2= (σ21, · · · , σ2p)T ∈ Rp.

S

TATISTICAL MODEL

 zi= hTiαi+ ifor i ∈ [[1; n]],

zi∈ Rq; hi∈ Rp; αi∼ N (m, σ2) ∈ Rp;

P

OSTERIOR

D

ISTRIBUTION

 Bayes formula gives [m, σ2|z, α] ∝ [z, α|σ2, m][m, σ2]

Likelihood: z|α, σ2, m ∼ ⊗ni=1N (h T iαi, Ri),

Prior: [m, σ2] = [m|σ2][σ2]

- Conjugate Gaussian-inverse-gamma,

- Gaussian for m|σ2along with a folded non-standardized-t for σ (Gelman, 2006).

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(14)

Prior distributions

I

NVERSE

-

GAMMA

(, )

FOR

σ

j2

 Leads to an improper posterior as  −→ 0.

Spiegelhalter et al. (2004) took  = 0.001,

Inference is sensible to  (mainly when low values of σ provide large likelihood values),

• Such diffuse priors cannot fix troubles with improper posteriors (Kass and Wasserman, 1996).

F

OLDED NON

-

STANDARDIZED STUDENT DISTRIBUTION FOR

σ

j

(via the

augmented model)

 zi= hTi × (C ˜αi) + ifor i ∈ [[1; n]], with

αi= C ˜αi

Priors: C ∼ N (mC, 1)and σα2˜∼ IG(0.5 × ν, S)

Thus, σ = |C|˜σis a folded noncentral-t

- half-t if mC= 0,

- half Cauchy if mC= 0and ν = 1 (which tends to be uniform on R+as S → +∞)

[σ] ∝ 1 σ2+ S

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(15)

MCMC algorithms in the standard model

SUBSTITUTION

(

OR DATA

-

AUG

.)

SAMPLING(Gelfand and Smith, 1990)

By following the hierarchical structure [m, σ2, α|z] = [m, σ2|α, z][α|z]  Start with a first sample (m0, σ02)

 In a loop k ≥ 1, sample until convergence :

1. αk∼ α|z, mk−1, σ2k−1(Gaussian),

2. mk, σ2k∼ m, σ

2

|αk, z(Gaussian-inverse-gamma).

G

IBBS SAMPLING

Based on the full conditional posterior distributions  Start with a first sample (m0, σ02)

 In a loop for k ≥ 1, sample until convergence :

1. αk∼ α|z, mk−1, σ2k−1(Gaussian),

1. mk∼ m|σ2k, αk, z(Gaussian),

2. σk2∼ σ2|bk, αk, z(inverse-gamma),

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(16)

MCMC algorithms in the augmented model

SUBSTITUTION

(

OR DATA

-

AUG

.)

SAMPLING(Gelfand and Smith, 1990)

Full posterior [ ˜m, ˜σ2, ˜α, C|z] = [ ˜m, ˜σ2α, z, C][˜α, C|z]

 Start with a first sample ( ˜m0, ˜σ02, C0)  In a loop for k ≥ 1, sample until convergence :

1. α˜k∼ ˜α|z, ˜mk−1, ˜σ2k−1, Ck−1(Gaussian), 2. Ck∼ C|z, ˜αk(Gaussian), 3. m˜k, ˜σ2k∼ ˜m, ˜σ 2 | ˜αk, z, Ck(Gaussian-inverse-gamma).

G

IBBS SAMPLING

Based on the full conditional posterior distributions:  Start with a first sample ( ˜m0, ˜σ02, C0)  In a loop for k ≥ 1, sample until convergence :

1. α˜k∼ ˜α|z, ˜mk−1, ˜σ2k−1, Ck−1(Gaussian),

2. Ck∼ C|z, ˜αk(Gaussian),

3. σ˜k2∼ ˜σ2| ˜mk, ˜αk(inverse-gamma),

4. m˜k∼ ˜m|˜σ2k, ˜αk(Gaussian),

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(17)

Fisher information and Sobol indices

The Sobol indice for Model Ajand experiment i quantifies the fraction of the output variance that is due to Aj.

Sj(xi) =V[z i] − E[V[zi|Aj] V[zi] =V[E[zi|Aj] V[zi] = σ 2 j× hi(j)2 hT idiag(σ2)hi+ σ2i Based on the marginal likelihood [z|m, σ2]after integrating with respect to the missing samples, we can prove that the Fisher information matrix is written as

In(m, σ2) =



I n(m) 0 0 In(σ2)



where In(m)j,k= n

X

i=1 hi(j)hi(k) hT idiag(σ2)hi+ σ2i 1 ≤ j, k ≤ p and In(σ2)j,k= n

X

i=1 0.5 × h2i(j)h2i(k) hT idiag(σ2)hi+ σ2i 1 ≤ j, k ≤ p

Therefore, we can get

In(mj) = n ¯Sj σ2 j and In(σ2j) = nS2 j 4 j

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(18)

Relation between inverse UQ and sensitivity analysis

 The smaller the Sobol indice SΛ, the less accurate the estimates (Celeux et al., 2010):

• Bayesian counterpart?

- studying the role of the prior in terms of size of credible regions.

 Well-posedness principles in inverse UQ:

• in the Hadamard sense (condition number as low as possible)

in the Sobol sense: SΛ> S(i.e. the input contribution to the randomness of Z is larger

than that of the noise)

• in the entropy sense, in the Fisher sense (Bousquet and Blazère, 2016).

 In real inverse UQ problems, the Sobol indices are unknown

the matrix H can provide a local sensitivity measure

Synthetic example: xi∈ [0.1, 1], α = (α1, α2), n = 50  zi= xiα1,i+ 1.6 × x3iα2,i+ i

α1,i∼ N (2, 0.022)and α2,i∼ N (2, 0.052)

i∼ N (0, 0.012)

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(19)

Relation between inverse UQ and sensitivity analysis

Sobol indices S(xi)against

x ∈ [0.1, 1]

In averaging over x ∈ [0.1, 1], Model 1 gets higher Sobol indices than Model 2 :

- S¯1= 0.57, ¯S1= 0.39and ¯

S= 0.04

 Comparison of marginal posterior distributions [σ2

j|z] according to the prior distribution in attempting to make a default Bayesian estimation:

IG(, ) with  = 10−3for σj2vs half-Cauchy with S = 20 for σj (j = 1, 2)

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(20)

Impact of the prior: IG(,) for σ

2

vs half-Cauchy for σ

 Comparison being done over 50 simulated data set:

credible intervals at 95% are calculated in two cases: IG(0.001, 0.001) vs half-Cauchy with S = 20

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(21)

A worse case

Synthetic example: xi∈ [0.1, 1], α = (α1, α2), n = 50 • zi= xiα1,i+ 1.1 × x3iα2,i+ iS¯1= 0.67, ¯S1= 0.28and ¯ S= 0.04

 Comparison of marginal posterior distributions [σj2|z]

IG(, ) with  = 10−3for σi2vs half-Cauchy with S = 20 for σj (j = 1, 2)

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(22)

A more favorable case

Synthetic example: xi∈ [0.1, 1], α = (α1, α2), n = 50 • zi= xiα1,i+ 2.3 × x3iα2,i+ iS¯1= 0.47, ¯S1= 0.49and ¯ S= 0.04

 Comparison of marginal posterior distributions [σ2 j|z]

IG(, ) with  = 10−3for σj2vs half-Cauchy with S = 20 for σj (i = 1, 2)

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(23)

Application to the condensation tests

S

TEPS FOR

B

AYESIAN

CIRCE:

1. Make linear approximation at αnom= log λnom(begin at the nominal

αnom= 0p)

2. Sample the joint posterior distribution m, σ2|z

- if the MAP for m is close to α0, then go to the next step

- else, go back to Step 1 (Iterative Bayesian Circe)

3. Calculate the marginal distribution of A :

[A] =

R

[A|m, σ2][m, σ2|z]dmdσ2

4. Check the validity of the linear assumption on IF0.95(Aj)for 1 ≤ j ≤ p,

5. Deduce IF0.95j)for 1 ≤ j ≤ p.

A

PPLICATION TO THE CONDENSATION MODELS

 50tests with two output values: condensation flow rate and temperature

=⇒ n = 100physical measurements. Two models are considered:

- Model Λ1(flow rate on the free surface in area B)

- Model Λ2(flow rate due to the turbulent mixing in area C)

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(24)

Results (Gibbs implemented with the ROOT library)

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(25)
(26)

Non linear setting

Instead of linearizing the computer code, we aim to tackle the exact situation where

Y (.)is non-linear with respect to α :

 α˜k∼ ˜α|z, ˜mk−1, ˜σk−12 , Ck−1is no longer Gaussian =⇒ MH sampling =⇒MH

within Gibbs algorithm

 Y (.)is thermal-hydraulic system code, moderately time-consuming (several minutes per simulation)

=⇒ several weeks for a converged Gibbs sampler, along with possible failed simulations.

 Emulator is needed such asGaussian process (GP), neural networks. GP

interpolates the learning simulations, which is expected for deterministic ones:

=⇒ α˜k∼ ˜α|z, ˜mk−1, ˜σ2k−1, Ck−1is based on both mean and variance of the GP

emulator.

 How to control the gap between the GP-based posterior distribution and the actual one?

• see Barbillon (2017) in the context of mixed models from a classic point of view (SAEM algorithm instead of MH-within Gibbs).

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(27)
(28)

Some questions/future works

 How to specify priors for scale parameters in hierarchical models when an objective Bayesian estimation is expected ?

Should we specify a prior for the scale S of the half-Cauchy prior?

• How to measure how strong the estimation is data-dominated?

• Studying the frequentist properties of credible intervals obtained from various priors proposed in the literature including the half-Cauchy.

 Statistical modeling to carry out in future works:

Estimating the experimental variances σ2iwhen they are unknown, promoting the multidimensional version, taking into account a model Λkthat is already known,

Assuming a functional multiplier coefficient Λ(x) as a log-Gaussian process (functional Bayesian CIRCE).

 Convergence diagnostics to implement for future users in CEA (I hope so !).

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

(29)

Bibliography

Barbillon, Pierre ; Barthélémy, C. S. A. (2017). Parameter estimation of complex mixed models based on meta-model approach. Statistics and Computing, 27.

Bousquet, N. and Blazère, M. (2016). Predicted sensitivity for establishing well-posedness conditions in stochastic inversion problems. International Conference on Sensitivity Analysis of Model Output.

Celeux, G., Grimaud, A., Lefèbvre, Y., and de Rocquigny, E. (2010). Identifying intrinsic variability in multivariate systems through linearized inverse methods. Inverse Problems in Science and Engineering, 18.

De Crécy, A. and Bazin, P. (2001). Determination of the uncertainties of the constitutive relationship of the CATHARE 2 code. M&C 2001.

Gelfand, A. and Smith, A. (1990). Sampling based approaches to calculating marginal densities. Journal Amer. Stat. Assoc., 85 :398–409.

Gelman, A. (2006). Prior distributions for variance parameters in hierarchical models. Bayesian Analysis, 1 :1–19.

Kass, R. and Wasserman, L. (1996). The selection of prior distributions by formal rules. Journal of the American Statistical Association, 91(435) :1343–1370.

Spiegelhalter, D. J., Abrams, K. R., and Myles, J. P. (2004). Bayesian Approaches to Clinical Trials and Health-Care Evaluation, section 5.7.3. Chichester : Wiley.

Inverse UQ applied to TH simulations Statistics seminar in Rochebrune

Références

Documents relatifs

Key words: Domain ontology, Agent-Based Modeling, Domain Specific Modeling Language, Geographic Information Science..

Preliminary, experimental measurements of the hydraulic properties of each component of the heterogeneous medium are obtained. The properties of the effective medium, representing

Estimation of hydrological and thermal parameters in the hyporheic zone using a novel Bayesian inverse modeling approach... Geophysical Research

Thus, in the GDT of R1, the link between goal 13 (“go and give R2”) and goal 14 (“go to R2”) has to be modified: whereas the satisfaction of goal 13 is quite unchanged (its

This work proposes a UQ framework in the presence of sparsely characterized input parameters using the maximum entropy principle for ana- lyzing a femoral stem implant model and thus

An rdfs:range axiom asserts that the values of this property must belong to the class extension of the class description or to data values in the specified data range Multiple

The reduction of the uncertainty associated to the IRAS of a waste package of legacy metallic waste produced at CERN is related to the reduction of the uncertainties associated to

Comparison of sam- ple plots from flat prior and proper prior analyses of the same datasets revealed minor di fferences with respect to the additive genetic and residual variances of