
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Three sessions, one storyline Session 1 (today) Session 2 Session 3 Live application How deep does a burn go? Any load on a cantilever beam Hidden physics ยท inverse ยท FE + NO
Todayโs problem: how deep does a burn go? POLL (chat + handout) 5 s contact at 70 ยฐC. How deep is the burn? (a) 0.01 mm (b) 0.1 mm (c) 0.4 mm (d) 2 mm Why this problem?
Why depth is the number that matters The decision
The simulation bottleneck ยท where classical surrogates fall short ยท the physics-informed idea
The simulation bottleneck Image taken from https://www.ansys.com/products/structures#tab1- 5
Numerical solvers vs. machine-learning solvers Numerical Solvers Machine Learning Solvers Hybrid SciML: Best of both worlds Error guarantees Few parameters (e.g. RK) Large inductive bias No data Slow Generalization? Fast Lots of parameters (e.g. deep NN) Little inductive bias Lots of data No error guarantees Generalization?
Where classical surrogates fall short โ our burn problem Classical data-driven surrogates
Networks as function approximators ยท activations and smoothness ยท automatic differentiation
A neural network is just a smooth function you can tune
ฮธ input hidden layers (tanh) output zoom on one neuron (orange) w w w ฮฃ + b tanh โ = tanh(เท ๐ ๐ค๐ โ๐ + ๐๐)
Three ways to get derivatives Method Accuracy Cost / caveat Finite differences O(h) or O(hยฒ) + round-off pick h; poor for 2nd derivatives Symbolic exact expression swell with depth Automatic (AD) exact to machine precision โ 2โ 4 ร a forward pass (reverse mode)
LIVE DEMO D1 ยท cell 2 Baydin et al., J. Mach. Learn. Res. 18 ( 2018 ) 1 โ Automatic differentiation in machine learning: a survey
Automatic differentiation by hand โ one neuron x z = wโx + bโ^ a = tanh z^ u = wโ a reverse pass: multiply local derivatives along the path ๐๐ข ๐๐ฅ = ๐ค 2 ๐๐ข/๐๐ 1 โ tanh 2 ๐ง ๐๐/๐๐ง ๐ค 1 ๐๐ง/๐๐ฅ ACTIVITY (2 min, handout) Differentiate once more: dยฒu/dxยฒ =? Type it in the chat. why it matters: d u/dx is again a graph of simple ops โ differentiate again (= create_graph=True) PyTorch x.requires_grad_(True) u = model(x) u_x = torch.autograd.grad( u, x, torch.ones_like(u), create_graph=True)[0] u_xx = torch.autograd.grad( u_x, x, torch.ones_like(u_x), create_graph=True)[0]
Step 1 ยท From skin to a model ๐๐ ๐๐ก = ๐ผ ๐
๐ ๐๐ฅ
, 0 < ๐ฅ < ๐ฟ, 0 < ๐ก โค ๐ก๐๐๐ T( 0 ,t) = 70 ยฐC ยท T(L,t) = 37 ยฐC ยท T(x, 0 ) = 37 ยฐC ยท ฮฑ โ 1.1ร 10 โปโท mยฒ/s ยท L = 2 mm ยท t_end = 10 s neglected for now: blood perfusion (Pennes term), layered properties โ one extra term / input; same PINN machinery Pennes, J. Appl. Physiol. 1 (1948) 93 ยท Duck, Physical Properties of Tissue (1990)
Step 2 ยท Non-dimensionalise (the most skipped step) quantity SI scale after scaling depth x 10โปยณ m xฬ = x / L โ [0,1] time t 10 s tฬ = t / t_end โ [0,1] temperature 310 โ 343 K ฮธ = (TโT_b)/(T_sโT_b) โ [0,1] coefficient ฮฑ ~ 10โปโท ฮบ = ฮฑ t_end / Lยฒ ๐๐ ๐ ๐กฦธ = ๐ ๐ 2 ๐ ๐ ๐ฅเท 2 , ๐ = ๐ผ๐ก ๐๐๐ ๐ฟ 2
Handout Q 1 ( 1 min) Compute ฮบ for t_end = 10 s. Type it in the chat.