Save this video free

lecture 6: nonlinear solvers

Professor Saad Explains · 1:13:51 · Watch on YouTube

Part of University of Utah CH EN 6400. See all 17 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Professor Saad closes the linear-solver discussion with sparse matrix storage and solver-selection guidance, then introduces nonlinear root finding through a pipe-flooding calculation. He demonstrates how to define a residual, use SciPy's `root` with an initial guess, inspect the result, and pass changing problem parameters through `args`.

Key takeaways

Chapters

0:00 Why 2D and 3D Diffusion Systems Need Sparse Storage
6:53 SciPy Sparse Diagonals and Sparse Linear Solves
11:40 Why Direct Linear Solvers Become Expensive
15:24 Choosing a Solver by Matrix Size and Sparsity
19:30 From Linear Algebra to Nonlinear Equations
21:20 Pipe Flooding as a Nonlinear Root-Finding Problem
25:10 When to Use a Nonlinear Solver Instead of `solve`
29:50 Identify Which Variables Enter an Equation Nonlinearly
35:00 Roots as Intersections with the Horizontal Axis
40:01 Convert Equations into Residual Form
45:47 SciPy `root`: Residual Function and Initial Guess
53:27 Implement and Plot the Pipe-Height Residual
1:02:07 Check Convergence, Residual Error, and Function Evaluations
1:08:53 Pass Pipe Parameters with SciPy's `args` Option

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 We are almost done with linear systems. I want to give you an overview of matrix storage and memory. We were we are going to come back to this once we get to two dimensional problems. So what I would have liked to do is do the heat transfer problem we did in class but do it in two dimensions. Okay. um that's going to require about a full session full lecture but we're going to come to that anyway later when we explain conservation laws and heat transfer so we will do it then right now I want you to just have enough mileage with these basic tools uh because the 2D case the issue is not the the issue becomes the logistics of putting together the

0:47 coefficient matrix not solving it right now we're focused on just solving the coefficient matrix. Okay, so I don't want to waste time focusing on the logistics and the mechanisms of how we build matrices for 2D or 3D problems. So we will just stick stay focused on um uh lin algebra.solve right now. Um I wanted to talk about matrix storage before we uh we are done with linear systems. So in in two and three dimensions the heat transfer problem we solved this second derivative of temperature this applies also to mass diffusion. So when you're talking about concentrations, you'll you'll cover that again um in the next course transport if you haven't taken mass and heat transfer. They're very

1:35 similar. There's an analogy between had heat and mass transfer because it's a diffusion process. Um in 3D the general operator is a combination of second derivatives of in each direction for some quantity. We'll call it u. This could be temperature. This could be um velocity. This could be um uh

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Professor Saad Explains.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.