Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ OpenTURNS Presentations
- `OTICSCREAM: A Python module (and a cooking recipe) for the identification of penalizing configurations in computer experiments <https://github.com/openturns/openturns.github.io/blob/master/presentation/master/JU_OT_2025_ChabridonMure.pdf>`_
- `Uncertainty Propagation and Sensitivity Analysis in Additive Manufacturing Simulation <https://github.com/openturns/openturns.github.io/blob/master/presentation/master/JU_OT_2025_Braydi.pdf>`_

- Uncecomp 2023

- `Slides <https://github.com/openturns/openturns.github.io/blob/master/presentation/master/uncecomp_2023_slides_OpenTURNS.pdf>`_

- CHORUS

- `Low rank tensor approximation <https://github.com/openturns/openturns.github.io/blob/master/presentation/master/lowranktensor.pdf>`_
Expand Down Expand Up @@ -148,6 +144,8 @@ OpenTURNS Presentations

- `SIAM-UQ 2022 <https://github.com/openturns/openturns.github.io/blob/master/presentation/master/siamuq-2022-slides-OpenTURNS.pdf>`_

- `Uncecomp 2023 <https://github.com/openturns/openturns.github.io/blob/master/presentation/master/uncecomp_2023_slides_OpenTURNS.pdf>`_

- `Applibugs 2023 <https://github.com/openturns/openturns.github.io/blob/master/presentation/master/applibugs-2023-slides_OpenTURNS_MetropolisHastings.pdf>`_

- `SIAM-UQ 2024 <https://github.com/openturns/openturns.github.io/blob/master/presentation/master/siamuq-2024-slides-OpenTURNS.pdf>`_
Expand All @@ -156,3 +154,5 @@ OpenTURNS Presentations

- `OpenTURNS and Persalys Overview <https://github.com/openturns/openturns.github.io/blob/master/presentation/master/bepu-2024-slides-OpenTURNS.pdf>`_
- `Bayesian inference using MCMC in OpenTURNS <https://github.com/openturns/openturns.github.io/blob/master/presentation/master/bepu-2024-slides_OpenTURNS_MetropolisHastings.pdf>`_

- `Uncecomp 2025 <https://github.com/openturns/openturns.github.io/blob/master/presentation/master/uncecomp_2025_slides_OpenTURNS.pdf>`_
Binary file added uncecomp2025/figure/Persalys_GUI.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figure/Persalys_new_study.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figure/StudyWorkflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figure/model_definition.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figure/overviewMetamodel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figure/overviewProbaModel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/CobwebOT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/ComposedGumbel.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/ConditioningLine.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Copula1.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Copula2.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Copula3.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Copula4.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Correlation.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Covariance.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/DOE.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Deconditioned.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Dist.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/EigenValues.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Expectation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/ExtractedCopula.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Inference.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/JointByConditioning.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Kriging.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Ks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/LogoAirbus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/Marg1.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Marg2.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Modes.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/OT.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/PERSALYS-LOGO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/PointConditional.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Posterior.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/Q.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/Reduced_Space.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/S.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/SobolEx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/Trajectories.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/edf.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/exClasses.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/logo-openturns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/logoEDF_Anne.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/logo_ONERA.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/logo_phimeca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/pce_conditional.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/plot_kriging.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/plot_monte_carlo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/plot_pval_GSA_MDTE.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/plot_pval_TSA_MDTE.pdf
Binary file not shown.
Binary file added uncecomp2025/figures/plot_random_walk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added uncecomp2025/figures/plot_sobol_field.png
30 changes: 30 additions & 0 deletions uncecomp2025/macros.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
% Copyright (C) 2012 - EDF R&D - Michael Baudin


% To highlight source code
\usepackage{listings}
\definecolor{darkgreen}{rgb}{0,0.5,0}
\definecolor{violet}{rgb}{0.5,0,1}

\usepackage{lmodern}% http://ctan.org/pkg/lm



\usetheme{Montpellier}
\setbeamertemplate{navigation symbols}{} % Remove navigation
\useoutertheme{infolines}

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}


%\usepackage[french]{babel}
%\uselanguage{French}
%\languagepath{French}

\def\bx{{\bf x}}
\def\RR{\mathbb{R}}

\newcommand{\pyvar}[1]{\texttt{#1}}

\def \ot {OpenTURNS}
185 changes: 185 additions & 0 deletions uncecomp2025/scripts/illustration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
# -*- coding: utf-8 -*-
"""
Spyder Editor

This is a temporary script file.
"""
# %%
import openturns as ot
import numpy as np

def free_fall(X):
g = 9.81
z0,v0,m,c = X
tau=m/c
vinf=-m*g/c
t = np.array(mesh.getVertices().asPoint())
z=z0+vinf*t+tau*(v0-vinf)*(1-np.exp(-t/tau))
z=np.maximum(z,0.0)
return ot.Field(mesh, z.reshape(-1, 1))

tmin=0.
tmax=12.
gridsize=100
mesh = ot.IntervalMesher([gridsize-1]).build(
ot.Interval(tmin, tmax))

alti = ot.PythonPointToFieldFunction(4, mesh, 1, free_fall)

distZ0 = ot.Uniform(50.0, 200.0)
distV0 = ot.Normal(55.0, 10.0)
distM = ot.Normal(80.0, 8.0)
distC = ot.Uniform(0.0, 30.0)
distX = ot.ComposedDistribution([distZ0, distV0,
distM, distC])

size = 100
inputSample = distX.getSample(size)
outputField = alti(inputSample)



# %%
# Draw
from openturns.viewer import View

graph = outputField.draw().getGraph(0,0)
graph.setTitle("Free fall in viscous fluid")
graph.setXTitle("t")
graph.setYTitle("z")
v= View(graph)
v.save("trajectories.pdf")
v.save("trajectories.png")

# %%

meanField = outputField.computeMean()
meanFunction = ot.P1LagrangeEvaluation(
meanField)
trend = ot.TrendTransform(meanFunction, mesh)
invTrend = trend.getInverse()
outputFieldCentered = invTrend(outputField)

truncThreshold = 1.0e-5
algo = ot.KarhunenLoeveSVDAlgorithm(
outputFieldCentered, truncThreshold)
algo.run()
KLResult = algo.getResult()

eigenValues = KLResult.getEigenvalues()

# %%
# Graphical
import matplotlib.pyplot as plt

plt.plot(eigenValues)
plt.semilogy()
plt.xlabel("k")
plt.ylabel("$\lambda_k$")
plt.title("Fredholm problem eigenvalues")
plt.grid("both")

# %%

scaledModes = KLResult.getScaledModesAsProcessSample()
graph = scaledModes.drawMarginal(0)
graph.setTitle('Modes de KL, chute visqueuse')
graph.setXTitle(r'$t$')
graph.setYTitle(r'$\varphi_k$')
leg = ot.Description([ 'Mode '+str(i +1) for
i in range(eigenValues.getDimension()) ])
graph.setLegends(leg)
graph.setLegendPosition('topleft')
view=View(graph)

# %%

projectionFunction = ot.KarhunenLoeveProjection(KLResult)
sampleKsi = projectionFunction(outputFieldCentered)
sampleKsi = sampleKsi[:,:2]
cloud = ot.Cloud(sampleKsi)
graph = ot.Graph("Trajectories in the reduced space", "$\\xi_1$", "$\\xi_2$", True)
graph.add(cloud)
v= View(graph)
v.save("Reduced_Space.pdf")

# %%
ot.ResourceMap.SetAsString("Contour-DefaultColorMap", "viridis")
ot.ResourceMap.SetAsBool("Contour-DefaultIsFilled", True)
ot.ResourceMap.SetAsUnsignedInteger("Contour-DefaultLevelsNumber", 15)


cov = KLResult.getCovarianceModel()

# As a covariance function
isStationary = False
asCorrelation = False
graph = cov.draw(0, 0, tmin, tmax, 128, isStationary, asCorrelation)
graph.setTitle("Viscous free fall covariance")
v = View(graph)#, contour_kw={"levels": 50})
v.save("Covariance.pdf")

# %%

# As a correlation function
asCorrelation = True
graph = cov.draw(0, 0, tmin, tmax, 128, isStationary, asCorrelation)
graph.setTitle("Viscous free fall correlation")
v = View(graph)#, contour_kw={"levels": 50})
v.save("Correlation.pdf")

# %%
# Copulas


R = ot.CorrelationMatrix(2)
R[1, 0] = 0.2
c = ot.NormalCopula(R).drawPDF()
c.setTitle("Normal copula")
v = View(c, contour_kw={"vmin": 0.4, "vmax": 1.4})
v.save("Copula1.pdf")

# %%

c = ot.ClaytonCopula().drawPDF()
c.setTitle("Clayton copula")
v = View(c, contour_kw={"vmin": 0.0, "vmax": 2.6})
v.save("Copula2.pdf")

# %%


c = ot.AliMikhailHaqCopula().drawPDF()
c.setTitle("AliMikhailHaq copula")
v = View(c, contour_kw={"vmin": 0.5, "vmax": 1.4})
v.save("Copula3.pdf")

# %%

c = ot.GumbelCopula().drawPDF()
c.setTitle("Gumbel copula")
v = View(c, contour_kw={"vmin": 0.0, "vmax": 2.6})
v.save("Copula4.pdf")

# %%

marg1 = ot.Gumbel(1.0, 0.0)
marg2 = ot.TruncatedNormal(0.0, 1.0, -2.0, 2.0)
joint = ot.JointDistribution([marg1, marg2])
g = joint.drawPDF()
v = View(g, contour_kw={"vmin": 0.0, "vmax": 0.13})
v.save("Dist.pdf")

# %%
marg1 = ot.Gumbel(1.0, 0.0)
marg2 = ot.TruncatedNormal(0.0, 1.0, -2.0, 2.0)
copula = ot.GumbelCopula()
joint = ot.JointDistribution([marg1, marg2], copula)
graph = joint.drawPDF()
title = "Joint distribution "
title += "from marginals and copula"
graph.setTitle(title)
v = View(graph)
v.save("ComposedGumbel.pdf")

# %%
Loading