Verification in Scientific Computing: from Pristine to Practical to - - PowerPoint PPT Presentation
Verification in Scientific Computing: from Pristine to Practical to - - PowerPoint PPT Presentation
Verification in Scientific Computing: from Pristine to Practical to Perimeter-Extending Joseph M. Powers Department of Aerospace and Mechanical Engineering University of Notre Dame ASME V&V 2020 Virtual Verification and Validation
- J. M. Powers
ASME V&V 2020 20 May 2020
2
- Signal v. Noise: first resolve the physics, then
verify!
- Pristine: convergence, asymptotic convergence
rates, multi-scale physics.
- Practical: scarce computational resources, error
difficult to define, what should referees expect.
- Perimeter-Extending: nonlinear dynamics,
transition to chaos.
- Focus on continuum calculus-based models of
reacting fluid dynamics.
Outline
Henrick, 2008
L2 = ||ya − ye||2 = sZ (ya − ye)2 dx
<latexit sha1_base64="oMI0ewaJRa5wigy3zNytjNT9H+c=">ACInicbVC7TgJBFJ3F+ILsbSZSEywkOwSE6UwUdhYGJPBIWN7PDABNmH87MGsmy32Ljr9hYSNTCmFj7AX6Bw6NA8CQzOTn3tx7j+0zKqSuf2qxufmFxaX4cmJldW19I7mZKgsv4JiUsMc8XrWRIy6pCSpZKTqc4Icm5GK3Tkb+JU7wgX13GvZ9UndQS2XNilGUklWMn9p5eAx7PW6VoifWTqNcbaqa45TI0qSthZsLdu8mZsHEfWcm0ntWHgLPEGJN04fy7f/KT+ihayTez4eHAIa7EDAlRM3Rf1kPEJcWMRAkzEMRHuINapKaoixwi6uHwxAjuKqUBmx5XTy0VCc7QuQI0XVsVekg2RbT3kD8z6sFsnlUD6nrB5K4eDSoGTAoPTjICzYoJ1iyriIc6p2hbiNOMJSpZpQIRjTJ8+Sci5rHGTzVyqNUzBCHGyDHZABjgEBXABiqAEMHgAT+AF9LVH7Vl71d5HpTFt3LMF/kD7+gUZMqfe</latexit>- J. M. Powers
ASME V&V 2020 20 May 2020
3
- Verification: solving the equations right.
- Validation: solving the right equations.
- Pat Roache informed me in 1990 I was doing
- verification. (I was, but didn’t know it.)
- Seemed unnecessary.
- I was wrong. The need exists.
- Widespread misunderstanding of V&V.
- Getting it right is important!
- Focus here is solution verification: ASME V&V20:
“Estimates the numerical accuracy of a particular calculation.”
Verification v. Validation
Roache, 2009
- J. M. Powers
ASME V&V 2020 20 May 2020
4
- Cathartic moment in 1978
when I saw a finite difference estimation of the derivative approached the prediction given by Newton’s calculus begun in 1665.
- Getting the low order
estimate “right” is important!
- We can (and should) do
high order corrections later!
Verification and Calculus
y = x2 dy dx = 2x dy dx
- x=1
= 2 dy dx = lim
∆x→0
y(x + ∆x) − y(x) ∆x
<latexit sha1_base64="Frf4ipkqnK3AsdsCDN5DIeLvNU=">AChnicbVFbi9NAFJ5kvXTrZas+KPhysAhbxJBUZfVhoagPq5gdxeaGiaTSTvsJBNmTjQh5qcI/ibf/CM+O0m74F4ODHzXeZyTlxIYdD3/zjuzo2bt24Pdod37t67vzd68PDYqFIzPmdKn0aU8OlyPkcBUp+WmhOs1jyk/jsQ6efOPaCJV/wbrgy4yucpEKRtFS0ehnDYdQfZ1CGA6bpIZQWTckVWvpadWxoeQpehe0UIvVGn9ETXUY9Mbr0qEUWdSEH7lECvakPkO1Vt/Bb6Gp96sX5+IEXoLdT7b5c7odRqOx7/l9wVUQbMF49v7xk1+7f8dH0eh3mChWZjxHJqkxi8AvcNlQjYJ3g7D0vCsjO64gsLc5pxs2z6Nrbw3DIJpErblSP07P+JhmbG1FlsnRnFtbmsdeR12qLE9O2yEXlRIs/Z5qK0lIAKuplAIjRnKGsLKNPCvhXYmrK0E6ua0Jw+ctXwfHUC157z53SCbGpCn5BnZJwE5IDPyiRyROWHOjNxps4rd+B67hv3YGN1nW3mEblQ7uwfi1bBQ=</latexit>Powers and Sen, 2015
- J. M. Powers
ASME V&V 2020 20 May 2020
5
- Getting a prediction that resolves the modeled physics is
ultimately the most important.
- This is often not achieved.
- Low order methods, with appropriate resolution, can get the
“signal.”
- Once this “signal” has been identified, one can and should verify it.
(“h-refinement”).
- Once this “signal” has been identified, high order methods may be
used for enhanced accuracy and efficiency (“p-refinement”).
Contentions
- J. M. Powers
ASME V&V 2020 20 May 2020
6
Convergence of the Forward Euler Method
dy dt = −y, y(0) = 1 y = e−t relaxation time constant, τ ∼ 1, yn+1 = yn − ∆tyn, n = 1, . . . , N error = ||yN − e−N∆t||.
<latexit sha1_base64="xcUPKjf/yfAe+8T3ORkAQdvSjU=">ACzXicbVJLb9NAEF6bVzGPBjhyGRERFUgiu0KiHCJVgPiEIpE2kpxsNbrSbqvXZ2x6jGMVf+Hzfu/BA2bkClZU7fzsw3zw2LlJpyPd/Ou616zdu3tq67d25e+/+dufBw0OTl1rgRORpro9jbjCVCickKcXjQiP4hSP4tM36/jRF9RG5uoTVQXOMr5Qci4FJ+uKOr/CGBdS1bhUXGtePW+8OqkgzC0JEmqgN+rBoOpDuFyWPIFqx38GIwgDL2qDeLnemDz7LvXC7M4P6s1pvysrQ8kMwSRK0NcUWOrEC8hNDKDoN+WiGr1ImhVqkgNwreYEgcC+/grqUZBP0xyMv3xmoJa57pVXq2qaAyDtoPxH2qzWg29EFVyYaSo0/WHfmtwFQb0GUbO4g6P6ygKDNUJFJuzDTwC5rVXJMUKTZeWBosuDjlC5xaqHiGZla312jgqfUkMLdNznNF0HovMmqeGVNlsc3MOJ2Yy7G183+xaUnzvVktVESKnEuNC9ToBzWp4VEahSUVhZwoaXtFcQJ1yQ/QCeXUJweSr4HB3GLwcv64293f26xjiz1mT9gOC9grts/esQM2YcJ57xRO5Xx1P7ilu3K/nae6zobziP1j7vfoT/YFA=</latexit>∆t > τ
<latexit sha1_base64="1tTELsfo9Ow5Oobx/CQRMWlzfA=">AB+HicbVBNS8NAEN3Ur1o/GvXoZbEInkoignrRoh48VrAf0ISy2W7apZtN2J0INfSXePGgiFd/ijd/ije3aQ/a+mDg8d4M/OCRHANjvNlFZaWV1bXiuljc2t7bK9s9vUcaoa9BYxKodEM0El6wBHARrJ4qRKBCsFQyvJ37rgSnNY3kPo4T5EelLHnJKwEhdu+zdMAEA7AHpC0a1ecqpMDLxJ3RiqX32GOetf+9HoxTSMmgQqidcd1EvAzoBTwcYlL9UsIXRI+qxjqCQR036WHz7Gh0bp4TBWpiTgXP09kZFI61EUmM6IwEDPexPxP6+TQnjmZ1wmKTBJp4vCVGCI8SQF3OKURAjQwhV3NyK6YAoQsFkVTIhuPMvL5LmcdU9qZ7fOZXaFZqiPbRATpCLjpFNXSL6qiBKErRE3pBr9aj9Wy9We/T1oI1m9lDf2B9/ABA1pXj</latexit>∆t ∼ τ
<latexit sha1_base64="Zwc5ZiM0RseNTe+ULQK60BlzdyA=">AB+3icbVDLSsNAFJ3UV42vWJduBovgqiQiqAuxqAuXFewDmlAm0k7dCYJMzdiKf0VN10o4tZvcO9G/Bunj4W2HrhwOde7r0nTAX4LrfVm5peWV1Lb9ub2xube84u4WaTjJFWZUmIlGNkGgmeMyqwEGwRqoYkaFg9bB3PfbrD0xpnsT30E9ZIEkn5hGnBIzUcgr+DRNAMGBfc4l9IFnLKboldwK8SLwZKV5+2Bfp6MutJxPv53QTLIYqCBaNz03hWBAFHAq2ND2M81SQnukw5qGxkQyHQwmtw/xoVHaOEqUqRjwRP09MSBS674MTack0NXz3lj8z2tmEJ0FAx6nGbCYThdFmcCQ4HEQuM0VoyD6hCquLkV0y5RhIKJyzYhePMvL5Lack7KZ3fucXyFZoij/bRATpCHjpFZXSLKqiKHpET+gZvVhDa2S9Wm/T1pw1m9lDf2C9/wBm/ZcN</latexit>∆t < τ
<latexit sha1_base64="fHMvt/tNHwU8nWhFZwdyuAHJpo=">AB+HicbVBNS8NAEN3Ur1o/GvXoZbEInkoigqCRT14rGA/oAls920SzebsDsRaugv8eJBEa/+FG/+FG9u0x609cHA470ZuYFieAaHOfLKiwtr6yuFdLG5tb2V7Z7ep41R1qCxiFU7IJoJLlkDOAjWThQjUSBYKxheT/zWA1Oax/IeRgnzI9KXPOSUgJG6dtm7YQIBnyBPSBp164VScHXiTujFQuv8Mc9a796fVimkZMAhVE647rJOBnRAGngo1LXqpZQuiQ9FnHUEkipv0sP3yMD43Sw2GsTEnAufp7IiOR1qMoMJ0RgYGe9ybif14nhfDMz7hMUmCSTheFqcAQ40kKuMcVoyBGhCquLkV0wFRhILJqmRCcOdfXiTN46p7Uj2/cyq1KzRFEe2jA3SEXHSKaugW1VEDUZSiJ/SCXq1H69l6s96nrQVrNrOH/sD6+AE9xJXh</latexit>- : Solution not captured.
- : Solution captured.
- : Solution expensively captured.
noise noise signal
- J. M. Powers
ASME V&V 2020 20 May 2020
7
Signal v. Noise
Silver, 2012
- First order of business: tune to the
signal to steer clear of the noise.
- Getting the low order estimate
“right” is important!
- A simple AM radio, tuned to the
station, conveys the signal with some noise.
- A sophisticated FM radio, still
properly tuned, conveys the signal with less noise.
- J. M. Powers
ASME V&V 2020 20 May 2020
8
Signal v. Noise in Computational Simulation
Signal Signal Signal or Noise?
Henrick, 2008
- J. M. Powers
ASME V&V 2020 20 May 2020
9
Signal v. Noise Generated by Discretization
∂u ∂t + a∂u ∂x | {z }
signal
= ν(∆x, ∆t)∂2u ∂x2 | {z }
numerical diffusion
+ β(∆x, ∆t)∂3u ∂x3 | {z }
numerical dispersion
+ . . . | {z }
noise
<latexit sha1_base64="PCvuLIc36/1wPRcZpZ0464QgXPM=">ADKXicfVJdb9MwFHXC1ygf6+CRF4sKaWioSrpJwANiAh54HBLdJjVd5bg3nTXHjuxrtCrK3+GFv8ILSCDglT+C02bdulVcKdLx/TjH9zhpIYXFKPodhNeu37h5a+12687de/fX2xsP9q12hkOfa6nNYcosSKGgjwIlHBYGWJ5KOEhP3tb1g09grNDqI04LGOZsokQmOEOfGm0ErxOnxmBSwziUZVIwg4J6mi/RxdJLCiW5T9p+G0qkZlYnJqxUQxWdFX9CL10iFRbjN5BxIZPX3WAHxKF+xHvRX8R70zBeVyMH4FmdCxyDJXb1dtLQmkgOxcgi40ziW2V0lsr5SwxdxBrzHWaM9atLBQjdqdqBvNgl4FcQM6pIm9Ufu7J+GeXiGXzNpBHBU4LOsrcAlVK3EWCsZP2AQGHiqWgx2Ws5eu6BOfGdNMG/8pLPsxYmS5dZO89R35gyP7eVanVxVGzjMXgxLoQqHoPhcKHP+2TWtfxtvgGOcuoB40b4u1J+zLzX6K1peRPiytfBfu9brzTflhp7P7prFjTwij8kmiclzskvekz3SJz4HwNfgQ/wy/ht/BX+GfeGgbNzEOyFOHfxVoBx8=</latexit>∂u ∂t + a∂u ∂x | {z }
signal
= 0
<latexit sha1_base64="ihWHQrLhkXY/W/iUJiwF6yP80Wg=">ACRXicfZBNS8NAEIY3flu/qh69LBZBEoiBfUgiF48VrCt0IQy2U7r4mYTdjdiCflzXrx78x948aCIV920RfzCgYWX951hZp8wEVwb131wJianpmdm5+ZLC4tLyvl1bWmjlPFsMFiEauLEDQKLrFhuBF4kSiEKBTYCq9Oirx1jUrzWJ6bQYJBH3Je5yBsVan7Pup7KIKFTDMj8BZTgImlI/tmP0zA53aHwT8NncyX0VU874EkdND6nbKFbfqDov+Ft5YVMi46p3yvd+NWRqhNEyA1m3PTUyQFSuYwLzkpxoTYFfQx7aVEiLUQTakNMt63RpL1b2SUOH7teJDCKtB1FoOyMwl/pnVph/Ze3U9PaDjMskNSjZaFEvtUxiWiClXa6QGTGwApji9lbKLsESNRZ8yULwfn75t2juVr1a9eCsVjk6HuOYIxtk2wTj+yRI3JK6qRBGLklj+SZvDh3zpPz6ryNWiec8cw6+VbO+wcFYrKB</latexit>un+1
i
− un
i
∆t + aun
i+1 − un i
∆x = 0.
<latexit sha1_base64="y17J/wFwvndhYh3cxqYW5WM7Fg=">ACNnicbVBNSwMxFMzWr1q/Vj16eVgEoVh2paAehKIevAgKVoW2lmya2tBsdkneimXZX+XF3+GtFw+KePUnmNYe1DoQGbm8fImiKUw6HkDJzc1PTM7l58vLCwuLa+4q2tXJko04zUWyUjfBNRwKRSvoUDJb2LNaRhIfh30jof+9T3XRkTqEvsxb4b0TomOYBSt1HLP0qQlblNV8jPYGVIFjcgOQOES6SAGZSAgk2lwmasvQP/xB4yOASv3HKLXtkbASaJPyZFMsZ5y31utCOWhFwhk9SYu/F2EypRsEkzwqNxPCYsh6943VLFQ25ajszPYskobOpG2TyGM1J8TKQ2N6YeBTYUu+avNxT/8+oJdvabqVBxglyx70WdRAJGMOwQ2kJzhrJvCWVa2L8C61JNGdqmC7YE/+/Jk+Rqt+xXygcXlWL1aFxHnmyQTbJNfLJHquSUnJMaYeSRDMgreXOenBfn3fn4juac8cw6+QXn8wuQKqle</latexit>u = f(x − at)
<latexit sha1_base64="jX2cbdG6W6HyfwkqATFul2KprA=">AB8nicbVDLSgNBEJyNrxhfUY9eBoMQD4ZdCagHIejFYwTzgM0SZiezyZDZmWmVwxLPsOLB0W8+jXe/Bsnj4MmFjQUVd10d4WJ4AZc9vJrayurW/kNwtb2zu7e8X9g6ZRqasQZVQuh0SwSXrAEcBGsnmpE4FKwVDm8nfuRacOVfIBRwoKY9CWPOCVgJT/F1zgqP50RO0WS27FnQIvE29OSmiOerf41ekpmsZMAhXEGN9zEwgyoFTwcaFTmpYQuiQ9JlvqSQxM0E2PXmMT6zSw5HStiTgqfp7IiOxMaM4tJ0xgYFZ9Cbif56fQnQZFwmKTBJZ4uiVGBQePI/7nHNKIiRJYRqbm/FdEA0oWBTKtgQvMWXl0nzvOJVK1f31VLtZh5Hh2hY1RGHrpANXSH6qiBKFLoGb2iNwecF+fd+Zi15pz5zCH6A+fzB3YkBc=</latexit>- J. M. Powers
ASME V&V 2020 20 May 2020
10
- All frequencies represented in an arbitrary signal.
- Typically neglect low amplitude, high frequency modes.
- Such neglect may not be justified, especially for nonlinear problems.
Fourier Series Decomposition Example
Powers and Sen, 2015
- J. M. Powers
ASME V&V 2020 20 May 2020
11
- Noisy signals may be sampled.
- Discrete Fourier Transform
(DFT) reveals periodicity at various frequencies.
- May be possible to discern a
signal in an apparently noisy set of data.
Fourier Signal Analysis Example
Powers and Sen, 2015
- J. M. Powers
ASME V&V 2020 20 May 2020
12
- Consider a linear advection-reaction-diffusion problem.
- Exact solution exists.
- Gives guidance on fundamental length and time scales that
must be resolved for verification.
Signal Discernment for a Linear Problem
Powers, 2016
evolution advection diffusion reaction
- J. M. Powers
ASME V&V 2020 20 May 2020
13
- Suppress advection and
diffusion.
- Exponential relaxation in
time to equilibrium.
- Time scale for reaction
identified as 1/a.
13
Time Scale for Spatially Homogeneous Limit
Powers, 2016
- J. M. Powers
ASME V&V 2020 20 May 2020
14
Length Scale for Steady Limit
Y (x) = Yeq + (Yo − Yeq) exp ✓ − r a Dx ◆
<latexit sha1_base64="a9AbB/wF52v01/UXocPGsAMbZNA=">ACLXicbZBaxNBFMdno9Yatab16GUwCAmSsCsB20Oh1Bw8VjBNQjYs5O3yZDZnc3M25Kw7Bfy0q8igoeIePVrOEn2oIl/GPjxf+/NzPuHqRQGXftVB48fHT0+PhJ9emz5ycvaqdnt0ZlmkOPK6n0IGQGpEighwIlDFINLA4l9MP5h029fwfaCJV8xlUK45hNExEJztBaQa07bCyb9HIY5LAo3jaGgWrtuOnDMvUlRNigLd8sNObMV/YqmvucSdotiX1tZjOsBnU6m7b3YoegldCnZS6CWrf/IniWQwJcsmMGXluiuOcaRcQlH1MwMp43M2hZHFhMVgxvl24K+sc6ERkrbkyDdun9P5Cw2ZhWHtjNmODP7tY35v9ow+h8nIskzRASvnsoyiRFRTfR0YnQwFGuLDCuhf0r5TOmGUcbcNWG4O2vfAi379pep3xqVO/ui7jOCavyGvSIB5T67IR3JDeoSTL+QrWZMfzr3z3fnp/Nq1Vpxy5iX5R87vP2/sp7k=</latexit>- Suppress time-dependency.
- Exponential relaxation in
space to equilibrium.
- Length scale for reaction
identified as the classical Maxwellian prediction:
` = r D a = √ D⌧
<latexit sha1_base64="wyj7kBjhMEinQ0kBQJxFtLMcp3k=">ACHnicbVDJSgNBFOyJW4xb1KOXxiB4CjMSUQ9CUA8eI5gFMiG86XSJj2L3W+EMyXePFXvHhQRPCkf2NnOWiSgoai6hWvX3mRFBpt+8fKLC2vrK5l13Mbm1vbO/ndvZoOY8V4lYUyVA0PNJci4FUKHkjUhx8T/K6N7ge+fVHrQIg3scRrzlQy8QXcEAjdTOn7pcSnpJXf2gMElcBpLepNQNTYhCusBiN2vmAX7THoPHGmpECmqLTzX24nZLHPA2QStG46doStBQKJnmac2PNI2AD6PGmoQH4XLeS8XkpPTJKh3ZDZV6AdKz+TSTgaz30PTPpA/b1rDcSF3nNGLvnrUQEUYw8YJNF3VhSDOmoK9oRijOUQ0OAKWH+SlkfFDA0jeZMCc7syfOkdlJ0SsWLu1KhfDWtI0sOyCE5Jg45I2VySyqkSh5Ii/kjbxbz9ar9WF9TkYz1jSzT/7B+v4FH5yh5w=</latexit>Powers, 2016
- J. M. Powers
ASME V&V 2020 20 May 2020
15
- Long wavelength modes
dominated by reaction.
- Short wavelength modes
dominated by diffusion.
- For verification, must
resolve down to the cutoff length scale where reaction balances diffusion.
- Cutoff scale dictated by
physics!
Length and Time Scales for a Fourier Mode
Powers, 2016
- J. M. Powers
ASME V&V 2020 20 May 2020
16
Two Reaction Extension: Stiff Linear Kinetics
Powers, 2016
- J. M. Powers
ASME V&V 2020 20 May 2020
17
- Fully nonlinear steady advection-
reaction model of hydrogen-air, of the form
- Evolution from unreacted to
equilibrium on the scale of microns to meters.
- Spatial eigenvalues of the local
Jacobian matrix reveal the local length scales.
Nonlinear: Stiff Realistic Hydrogen Chemistry
Powers and Paolucci, 2005
dy dx = f(y)
<latexit sha1_base64="5UlhG5/86c/5LvN82cp4UTZwoYo=">ACDnicbVDLSsNAFJ3UV62vqEs3g6VQNyWRgroQim5cVrAPaEKZTCbt0MkzEzEvIFbvwVNy4UcevanX/jNM1CWw8MHM45lzv3eDGjUlnWt1FaWV1b3yhvVra2d3b3zP2DrowSgUkHRywSfQ9JwignHUVI/1YEBR6jPS8yfXM790TIWnE79Q0Jm6IRpwGFCOlpaFZS/3U8QI4zZxI56D/kMFLmEtBVi+sk6FZtRpWDrhM7IJUQYH20Pxy/AgnIeEKMyTlwLZi5aZIKIoZySpOIkmM8ASNyEBTjkIi3TQ/J4M1rfgwiIR+XMFc/T2RolDKaejpZIjUWC56M/E/b5Co4NxNKY8TRTieLwoSBlUEZ91AnwqCFZtqgrCg+q8Qj5FAWOkGK7oEe/HkZdI9bdjNxsVts9q6KuogyNwDOrABmegBW5AG3QABo/gGbyCN+PJeDHejY95tGQUM4fgD4zPHwIqm3M=</latexit>- J. M. Powers
ASME V&V 2020 20 May 2020
18
- Reciprocals of spatial
eigenvalues of Jacobian
- Yields physical length scales
that span microns to meters.
- Gives length scale necessary
for verification.
Nonlinear: Stiff Realistic Hydrogen Chemistry
∂f ∂y
<latexit sha1_base64="zgWRvDEWkqXwAuUud0c7NqQR4co=">ACEnicbVDNS8MwHE39nPOr6tFLcAh6Ga0M1NvQi8cJ7gPWMtIs3cLSpCSpUEr/Bi/+K148KOLVkzf/G9OtB7f5IPB47/eS/F4QM6q04/xYK6tr6xubla3q9s7u3r59cNhRIpGYtLFgQvYCpAijnLQ1Yz0YklQFDSDSa3hd9JFJRwR90GhM/QiNOQ4qRNtLAPs+8GElNEYOZF4QwzKEnTADOy2meD+yaU3emgMvELUkNlGgN7G9vKHASEa4xQ0r1XSfWflZcixnJq16iSIzwBI1I31COIqL8bLpSDk+NMoShkOZwDafq30SGIqXSKDCTEdJjtegV4n9eP9HhlZ9RHieacDx7KEwY1AIW/cAhlQRrlhqCsKTmrxCPkURYmxarpgR3ceVl0rmou4369X2j1rwp6iAY3ACzoALkET3IEWaAMnsALeAPv1rP1an1Yn7PRFavMHIE5WF+/JFydyg=</latexit>Powers and Paolucci, 2005
- J. M. Powers
ASME V&V 2020 20 May 2020
19
Nonlinear: Stiff Realistic Hydrogen Chemistry: Advection-Reaction-Diffusion
Powers, 2016
- J. M. Powers
ASME V&V 2020 20 May 2020
20
Signal v. Noise: Summary
- Just like the simple Fourier series, for nonlinear and multiscale
problems, we find more structure if we include more terms.
- Sometimes the physics demands we retain many terms because high
frequency modes can carry a lot of energy.
- We induce error by neglecting some of the structure, and hope we
retain enough structure to distinguish signal from noise.
- This is not verification, it is signal identification.
- Once we have a signal, we can try to verify it with pristine studies.
- J. M. Powers
ASME V&V 2020 20 May 2020
21
- Define a normed error.
- Get a discrete solution that captures the “signal.”
- Examine how the error improves as the discretization is refined.
- Compare rate of convergence rate with the rate of the method
Pristine Verification
error = ||ydiscrete − yexact||p
<latexit sha1_base64="/0VlbQiETxPUcJV+QHA7rWtMXg=">ACG3icbVC7SgNBFJ2NrxhfUubwSDYGHZDQC2EoI1lBPOAZFlmJ3eTIbMPZmbFZbP/YeOv2FgoYiVY+DdOHogmnupwzr3c48bcSaVaX4ZuaXldW1/HphY3Nre6e4u9eUYSwoNGjIQ9F2iQTOAmgopji0IwHEdzm03OHV2G/dgZAsDG5VEoHtk37APEaJ0pJTrIAQocAXeDRKu6Hk8xJe0xSAQoyfIJ/RLgnVGWjkRM5xZJZNifAi8SakRKaoe4UP7q9kMY+BIpyImXHMiNlp0QoRjlkhW4sISJ0SPrQ0TQgPkg7nfyW4SOt9LCnM3phoPBE/b2REl/KxHf1pE/UQM57Y/E/rxMr78xOWRDFCgI6PeTFHKsQj4vCPSaAKp5oQqhgOiumAyJ0C7rOgi7Bmn95kTQrZataPr+plmqXszry6AdomNkoVNUQ9eojhqIogf0hF7Qq/FoPBtvxvt0NGfMdvbRHxif3+Mrof4=</latexit>error = ||ydiscrete − yhighly refined||p
<latexit sha1_base64="aWI4YdR2G/PnlNnrxyAt41OfyU=">ACJXicbVDLSsNAFJ34rPUVdelmsAhuLIkUVFAounFZwT6gLWEyuWmHTh7MTISQ5mfc+CtuXFhEcOWvOH0g2npWh3Pu5Z573JgzqSzr01haXldWy9sFDe3tnd2zb39howSQaFOIx6JlkskcBZCXTHFoRULIHLoekObsd+8xGEZFH4oNIYugHphcxnlCgtOeYVCBEJfI2Hw6zj+jNncxjkgpQkONT/CP2Wa/P0w4W4OtTXj4cOrFjlqyNQFeJPaMlNAMNcdbyIJgGEinIiZdu2YtXNiFCMcsiLnURCTOiA9KCtaUgCkN1s8mWOj7XiYV+n9aNQ4Yn6eyMjgZRp4OrJgKi+nPfG4n9eO1H+RTdjYZwoCOn0kJ9wrCI8rgx7TABVPNWEUMF0Vkz7RBCqdLFXYI9/IiaZyV7Ur58r5Sqt7M6igQ3SETpCNzlEV3aEaqiOKntALekMj49l4Nd6Nj+nokjHbOUB/YHx9A+Rmpis=</latexit>- r
Either point or entire domain can be considered. p=1, Manhattan norm; p=2, Euclidean norm; p= , Chessboard norm.
∞
<latexit sha1_base64="Gspu7uF1MYsI7qoSYPcrRa37jzo=">AB7XicbVBNS8NAEJ3Ur1q/qh69BIvgqSRSUG9FLx4r2A9oQ9lsN+3azW7YnQih9D948aCIV/+PN/+N2zYHbX0w8Hhvhpl5YSK4Qc/7dgpr6xubW8Xt0s7u3v5B+fCoZVSqKWtSJZTuhMQwSVrIkfBOolmJA4Fa4fj25nfmLacCUfMEtYEJOh5BGnBK3U6nEZYdYvV7yqN4e7SvycVCBHo1/+6g0UTWMmkQpiTNf3EgwmRCOngk1LvdSwhNAxGbKupZLEzAST+bVT98wqAzdS2pZEd67+npiQ2JgsDm1nTHBklr2Z+J/XTG6CiZcJikySReLolS4qNzZ6+6Aa0ZRZJYQqrm91aUjoglFG1DJhuAv7xKWhdVv1a9vq9V6jd5HEU4gVM4Bx8uoQ530IAmUHiEZ3iFN0c5L86787FoLTj5zDH8gfP5A8YPj0g=</latexit>Caution: If you use the second method, you might be converging to the wrong exact solution, as nonlinear problems have non-unique solutions!
- J. M. Powers
ASME V&V 2020 20 May 2020
22
- 2D, inviscid reactive flow.
- Straight shock.
- Curved wall.
- Simple one-step kinetics.
- Exact solution exists.
- “Picture norm” reveals the
signal is captured by a standard shock-capturing scheme.
- About 10 cells in the reaction
zone.
Example: Verification of Oblique Detonation
Powers and Aslam, 2006
- J. M. Powers
ASME V&V 2020 20 May 2020
23
- Unsteady algorithm must allow
time to relax to steady state.
- Similar to “iterative convergence.”
- Finer grids take longer to relax to
steady state.
- Once relaxed, the steady state
error is seen to decrease as grid size is increased.
Example: Verification of Oblique Detonation
Powers and Aslam, 2006
- J. M. Powers
ASME V&V 2020 20 May 2020
24
- Error calculated over the entire
domain using the p=1, Manhattan norm.
- Error determined after time
relaxation.
- The error is converging!
- The error is converging at 0.779,
much less than the nominal fifth
- rder method.
- Typical of most shock-capturing.
Low Order Verification: Shock-Capturing
Powers and Aslam, 2006
- J. M. Powers
ASME V&V 2020 20 May 2020
25
- Implicit shock-tracking and an optimization-based, r-adaptive discontinuous
Galerkin method lead to remarkably accurate solutions, under h-p refinement.
- Orders of magnitude better than shock-capturing!
- Verified at p=1,2,3.
High Order Verification: Shock-Tracking
Zahr and Powers, 2020
p=1 p=2 p=3
shock-capturing
- J. M. Powers
ASME V&V 2020 20 May 2020
26
- Blunt body re-entry; 2D Euler equations.
- No exact solution; error small.
- Spectral convergence: verified!
Highest Order Verification: Spectral Shock-Fitting
roundoff corruption Brooks, 2003
- J. M. Powers
ASME V&V 2020 20 May 2020
27
- Complicated, highly accurate method.
- Like a Fourier series, a priori error estimate allows user to select the
automatically verified error.
Automatic Verification: Wavelet Adaptive Method
Romick, 2015 Brill, Grenga, Powers, Paolucci, 2015
- J. M. Powers
ASME V&V 2020 20 May 2020
28
- Most problems do not have exact solutions.
- Many problems are solved with software not developed by the user.
- Many problems have complex geometries and inherent instabilities
and/or turbulence.
- Many journals and institutions have strict (and useful)
requirements for verification.
- As a referee and journal editor, I see significant confusion,
summarized in the next slides, based on a 2011 presentation of Rider.
Practical Verification: What Should One Do?
- J. M. Powers
ASME V&V 2020 20 May 2020
29
- This is very common.
- It is not verified.
- It is not validated.
Typical Plot in the Literature
- J. M. Powers
ASME V&V 2020 20 May 2020
30
- Better, because an indication
- f the experimental error is
given.
- The prediction calculation
remains unverified.
- So the prediction is
unvalidated.
A Somewhat Better Plot, Occasionally Seen
- J. M. Powers
ASME V&V 2020 20 May 2020
31
- Showing predictions
- n several grids is an
improvement.
- This does not
demonstrate verification, as the solution is not converging.
An Attempt at Verification, Often Seen
- J. M. Powers
ASME V&V 2020 20 May 2020
32
- Because the solution is
approaching something as the grid is refined, it is showing convergence, and perhaps verification.
- The error is not quantified.
- The order of convergence is
not quantified.
- We can do better in 2020!
A Somewhat Better Verification
- J. M. Powers
ASME V&V 2020 20 May 2020
33
- Give a log-log plot of error as function
- f grid size.
- Compare to the asymptotic
convergence rate.
- Often insist as referee and editor.
- You will get pushback.
- It is usually unwarranted.
- Most authors will comply.
- Some will find real errors and fix them.
A Much Better Verification
- J. M. Powers
ASME V&V 2020 20 May 2020
34
A Useful Tool: Journal Policies
Roache, Ghia, White, 1986, Journal of Fluids Engineering- Transactions of the ASME
34 year-old policy! “The Journal of Fluids Engineering will not accept for publication any paper reporting the numerical solution of a fluids engineering problem that fails to address the task of systematic truncation error testing and accuracy estimation.”
- J. M. Powers
ASME V&V 2020 20 May 2020
35
An analysis of numerical errors, including grid dependence, etc., must be conducted in accordance with AIAA editorial policy. For more details regarding the latter, see https://www.aiaa.org/publications/books/Publication- Policies/Editorial-Policy-Statement-on-Numerical-and- Experimental-Accuracy Please provide a log-log plot of how some error measure decreases as the grid is refined (or equivalently, coarsened) and a comparison of the achieved order of convergence with the nominal convergence rate of your chosen numerical method.
My Boilerplate Language—Usually Works
- J. M. Powers
ASME V&V 2020 20 May 2020
36
- I don’t have enough computing resources. Then do grid
coarsening.
- My software package won’t let me verify. Do a point
convergence study.
- My problem is unsteady/turbulent. Seek an error norm
for an integrated quantity like drag coefficient or net thrust.
- I’m not going to do it. Decline the manuscript.
Common Responses
- J. M. Powers
ASME V&V 2020 20 May 2020
37
- Non-continuum regime where calculus-methods are difficult.
- Solutions with embedded surfaces of discontinuity (shocks, material interfaces).
- Problems with embedded “switches.”
- Problems with parameters (geometry, material properties,
forcing functions) with a stochastic nature.
- Problems that do not relax to steady-state.
- Nonlinear deterministic problems that may have chaotic nature.
Perimeter-Expanding Verification: Challenge Areas
considered here
- J. M. Powers
ASME V&V 2020 20 May 2020
38
- Big can affect small.
- Small can affect big.
- Predictions of “big” and “small”
should not be machine-dependent.
- Difficult to guarantee!
Nonlinear Dynamics and Verification
“Big whorls have little whorls, Which feed on their velocity; And little whorls have lesser whorls, And so on to viscosity.”
https://www.weather.gov/mob/katrina
Lewis Fry Richardson, 1922, Weather Prediction by Numerical Processes.
- J. M. Powers
ASME V&V 2020 20 May 2020
39
- Nonlinear models reflect that nature can be
- well-behaved and mainly stable,
- ill-behaved with intermittent catastrophic events.
- Predictive science needs to predict repeatable phenomena repeatably.
- We can learn about nature by careful charting of unknown territory.
- Careful charting takes time and cannot address all important problems!
- I will show verified results for a nonlinear problem that undergoes a
transition to chaos.
- The “verification” lies in taking care that the persistent modes are
resolved: the “signal” has been captured.
Nonlinear Dynamics and Verification
- J. M. Powers
ASME V&V 2020 20 May 2020
40
- All modes stable.
- High frequency modes decay rapidly and can be neglected.
Local Linear Behavior May be Stable or Unstable
f(x, t) = a1e−t sin x + a2e−4t sin 2x + a3e−9t sin 3x + a4e−16t sin 4x + . . .
<latexit sha1_base64="4EYD+j0H6mb3/F7bdYO1UNRY=">ACRnicbZDBaxNBFMbfRq0x2prao5fBUIjEht1kqeYghHrx2ELTFJ1mZ3MtkNnZ5eZt5Kw5K/z4rk3/wQvPSjitZPtFjTpBwMfv+89ZuaLMikMu4Pp/bo8ZOtp/VnjecvtndeNndfnZk014yPWCpTfR5Rw6VQfIQCJT/PNKdJPk4uvq0ysdfuTYiVae4yHiQ0AslYsEoWhQ2g7g9f4dvyUdCQ4/wL8UBLsnUCEXmpGNZr2T+PezNOzTsl2yAyxL1V8gvkXdYMX/emc5SNGz5XbdUmTeJVpQaXjsHlt91iecIVMUmMmnpthUFCNgkm+bExzwzPKrugFn1iraMJNUJQ1LMm+JTMSp9oehaSk/24UNDFmkUR2MqF4adazFXwom+QYfwgKobIcuWJ3F8W5JiSVadkJjRnKBfWUKaFfSthl1RThrb5hi3BW/ypjnrdT2/OzjxW8Ojqo46vIY30AYP3sMQPsMxjIDBN/gJv+C38925cf4f+9Ga061swf/qQa3OD+tBw=</latexit>- Push the same system into a different regime.
- Nonlinearity can induce growth of some modes.
- Must be resolved for verified solution.
f(x, t) = a1e−t sin x + a2e−4t sin 2x + a3e9t sin 3x + a4e−16t sin 4x + . . .
<latexit sha1_base64="oBvawQpkeK3KI4/ohlIb9P5Tdt8=">ACUnicbZJRS9xAEMf3rtrqaeu1fezL4iEo1x7JGdr6UJD64qNCT4W7a5jsTXRxswm7k5Ij5DMK0pd+kL70Qd2LEVrtwMKf3+GmZ3dKFPSkuf9arWfLS0/f7Gy2lbf/lqo/v6zYlNcyNwJFKVmrMILCqpcUSFJ5lBiGJFJ5GlwcL/QHGitT/Y3mGU4TONcylgLIobAr4+3iPe3wLxCn+P38gNVfGKl5gXvOzasWfAh0W/nNRdS4OzCsLdhb9HVe3uFlUfwqAu8T82MCj6k1lKNuz2vIFXB38q/Eb0WBNHYfa1Yk8QU1CgbVj38toWoIhKRWnUluMQNxCec4dlJDgnZa1sNVfMuRGY9T4mXtO/K0pIrJ0nkctMgC7sY28B/+eNc4o/T0ups5xQi/tGca4pXyxXz6TBgWpuRMgjHSzcnEBgS5V+i4JfiPr/xUnAwHfjDYOw56+1+bdaywd2yTbTOfWL7JAdsRET7Ir9ZjfstvWz9aftfsl9arvV1Lxl/0R7/Q7BW7D6</latexit>- J. M. Powers
ASME V&V 2020 20 May 2020
41
- Piston at speed Up drives a detonation at speed D(t).
- Large Up yields stability, though with some thin zones.
- As Up is lessened, chemical energy plays a larger role and destablizes.
- Acoustic resonances induce high frequency stable limit cycles.
- “Signal” scales: viscous shock zone, reaction zone, small wavelength resonances.
Viscous 1D Detonation
- J. M. Powers
ASME V&V 2020 20 May 2020
42
Continuum Model Equations
Conservation and Evolution Laws Constitutive Models
- 1D, compressible, reactive Navier-Stokes.
- 1 step, irreversible Arrhenius kinetics.
- Ideal gas, Newtonian fluid, Fourier’s Law, Fick’s Law.
- Solved with adaptive wavelet algorithm for full verification.
- Activation energy varied to study stability behavior.
- J. M. Powers
ASME V&V 2020 20 May 2020
43
- The wavelet method resolves the viscous shock, induction,
and reaction zone. Signal verification!
Stable, Viscous, 1D Detonation
Rastigejev, Singh, Bowman, Paolucci, Powers, 2000
- J. M. Powers
ASME V&V 2020 20 May 2020
44
- Low activation energy results
induce stability.
- Peak pressure at viscous shock
front evolves with time.
- Relaxes to a steady state value.
- In the inviscid limit, grid
refinement is sufficient to capture the linear stability boundary.
Romick, 2015
Stable, Viscous, 1D Detonation
- J. M. Powers
ASME V&V 2020 20 May 2020
45
Viscous, 1D Detonation: Period 1 Instability
- Raising activation energy induces
an unstable mode.
- Peak pressure at viscous shock
front evolves with time.
- Relaxes to a long-time limit cycle.
Romick, 2015
- J. M. Powers
ASME V&V 2020 20 May 2020
46
Viscous, 1D Detonation: Various Instabilities
- Raising activation energy induces
more and more instabilities.
- Can induce chaos c).
- Raising activation energy further
can induce low frequency limit cycles, d).
Romick, 2015
- J. M. Powers
ASME V&V 2020 20 May 2020
47
- With activation energy as a
bifurcation parameter, a transition to chaos is predicted.
- Feigenbaum constant
predicted as 4.67.
Viscous, 1D Detonation: Transition to Chaos
Romick, 2015
- J. M. Powers
ASME V&V 2020 20 May 2020
48
- a posteriori spectral analysis of the
signal via Discrete Fourier Transform (DFT).
- Fundamental modes and harmonic
- vertones revealed.
- Sideband instabilities revealed.
- They persist under grid resolution:
verification!
- Refine until stability results do not
change (Reed, et al., 2015).
Spectral Analysis of the Signal for Verification
Romick, 2015; results for detailed H2-air kinetics.
- J. M. Powers
ASME V&V 2020 20 May 2020
49
- DFT at various
activation energies.
- Reveals the discrete,
- rdered, verified set
- f active Fourier
modes.
Spectral Analysis of the Signal for Verification
Romick, 2015
- J. M. Powers
ASME V&V 2020 20 May 2020
50
- Experimental colleagues in material science
use spectral analysis in X-Ray Diffraction (XRD) as a precision tool for material characterization.
- Here, spectral peaks associated with Ni, Al,
and NiAl shown.
- Effective tool for segregating signal from noise.
- This tool should be used more in verification
- f computational predictions of unsteady
phenomena.
Computational Science can Learn from Material Science
Mukasyan, et al., 2018; data obtained from ANL with time-resolved XRD, 13 µs/frame, 10 × 50 µm.
<latexit sha1_base64="5SOb+5IeS2jvU1LKqFAyZ08+WGg=">ACf3icbVFNbxMxEPUuXyV8BThyGSVCIDVdgsRrbiEjwMHQAWRNlIcRbOt7Fir1e2t7BabX8F4odx63/hgDfpAVpGsvT03hs9z0xaSGFdHJ8F4ZWr167f2LrZuX7zt173fsPDq0uDeNjpqU2kxQtlyLnYyec5JPCcFSp5Efp6m2rH51wY4XOv7q4DOFx7nIBEPnqXn3J13aAhmvd4bRUKmGqlR/rz+WK7QV5gPgDlBGA9iNk71XsECHoFOHPm0BmdEKXn/60AClnU3jN+GW4ITiO4ZbLU+8a/LlXTOA5PlpTVXZ1NQosM8yg4q3dExbt4VhfOplWMuqiebdfhzF64LIDkH/VGPbv84G1UH8+4vutCsVDx3TK10yQu3KxG4wSTvOnQ0nI/5wqP+dTD3MfbWb3eXwOPePH0ca/3MGa/bujRmVtpVLvVOiW9qLWkv/TpqXL9ma1yIvS8ZxtgrJSgtPQHgMWwnDmZOUBMiP8X4Et0SBz/mQdv4Tk4siXweFulLyI9j8n/dEbsqkt8oj0yFOSkJdkRN6TAzImjPwOesF2MAiD8EkYhfHGgbnPQ/JPxXu/wHkBcHW</latexit>- J. M. Powers
ASME V&V 2020 20 May 2020
51
- Gray-Scott reaction-diffusion model.
- Reduction to analytically filter fast kinetics falsely suppresses limit cycle.
Model Reduction: The Signal May Be Lost!
Mengers, 2012
reduced full
- J. M. Powers
ASME V&V 2020 20 May 2020
52
- Computational science requires the essence of prediction of deterministic
continuum systems to be machine- and algorithm-independent.
- What constitutes “essence” always requires user-choices; hopefully the
neglected terms are not influential!
- Capturing the “essence” must be informed by the underlying physics.
- Pristine verification is a useful exercise to give the user confidence that
the results are scientific, but unrealistic for many problems.
- Practical verification is important for the integrity of science.
- Perimeter-extending verification, e.g. verifying spectral amplitudes, is
- ngoing and highly challenging!
- Segregating “signal” and “noise” will never be easy!
Conclusions
- J. M. Powers
ASME V&V 2020 20 May 2020
53
Ashraf N. al-Khateeb, Tariq D. Aslam, Gregory P. Brooks, Keith A. Gonthier, Matthew J. Grismer, Andrew K. Henrick, Joshua D. Mengers, Alexander Mukasyan, William L. Oberkampf, Samuel Paolucci, William J. Rider, Patrick J. Roache, Christopher M. Romick, Matthew J. Zahr, all of the AIAA Committee on Standards for CFD (Urmila Ghia, chair). Los Alamos National Laboratory/NNSA, NSF, NASA, AFOSR.
Acknowledgments
- J. M. Powers
ASME V&V 2020 20 May 2020
54
- Al-Khateeb, 2010, Fine Scale Phenomena in Reacting Systems: Identification and Analysis for Their Reduction,
Ph.D. Dissertation, U. Notre Dame.
- ASME, 2009, Standard for Verification and Validation in Computational Fluid Dynamics and Heat Transfer,
ASME V&V 20, ISBN 9780791832097.
- Brill, Grenga, Powers, and Paolucci, 2014, “Automatic Error Estimation and Verification Using an Adaptive
Wavelet Method,” WCCM XI, Barcelona.
- Brooks, 2003, A Karhunen-Loeve Least-Squares Technique for Optimization of Geometry of a Blunt Body in
Supersonic Flow, Ph.D. Dissertation, U. Notre Dame.
- Henrick, 2008, Shock-Fitted Numerical Solution of One- and Two-Dimensional Detonation, Ph.D. Dissertation, U.
Notre Dame.
- Kadanoff, 2003, “Excellence in Computer Simulation,” Computing in Science and Engineering 6(2): 57-67.
- Mengers, 2012, Slow Invariant Manifolds for Reaction-Diffusion Systems, Ph.D. Dissertation, U. Notre Dame.
- Oberkampf and Roy, 2010, Verification and Validation in Scientific Computing, Cambridge U. Press.
- Powers and Paolucci, 2005, “Accurate Spatial Resolution Estimates for Reactive Supersonic Flow with Detailed
Chemistry,” AIAA Journal, 43(5):1088-1099.
- Powers and Sen, 2015, Mathematical Methods in Engineering, Cambridge U. Press.
- Powers, 2016, Combustion Thermodynamics and Dynamics, Cambridge U. Press.
References
- J. M. Powers
ASME V&V 2020 20 May 2020
55
- Rastigejev, Singh, Bowman, Paolucci, and Powers, 2000, “Novel Modeling of Hydrogen/Oxygen
Detonation,” AIAA-2000-0318.
- Reed, Perez, Kuehl, Kocian, and Oliviero, 2015, “Verification and Validation Issues in Hypersonic
Stability and Transition Prediction,” Journal of Spacecraft and Rockets, 52(1): 29-37.
- Richardson, 1922, Weather Prediction by Numerical Process, Cambridge U. Press.
- Rider, 2011, “What Makes a Calculation Good? or Bad?,” Workshop on Verification and Validation in
Computational Science, University of Notre Dame.
- Roache, Ghia, and White, 1986, “Editorial Policy Statement on the Control of Numerical Accuracy,”
Journal of Fluids Engineering, 108(1): 2.
- Roache, 2009, Fundamentals of Verification and Validation, Hermosa.
- Romick, 2015, On the Effect of Diffusion on Gaseous Detonation, Ph.D. Dissertation, U. Notre Dame.
- Roy, McWherter-Payne, and Oberkampf, 2003, “Verification and Validation for Laminar Hypersonic
Flowfields, Part 1: Verification, AIAA Journal, 41(10): 1934-1943.
- Silver, 2012, The Signal and the Noise: Why Most Predictions Fail—but Some Don’t, Penguin.
- Zahr and Powers, 2020, “Accurate, High-Order Resolution of Multidimensional Compressible Reactive