News

My basil finally developed roots! I'm currently reading about quantum mechanics, ferrofluids, and language models.

Blog

[08/09/2024:] Motivating Ladder Operators II
[08/08/2024:] A Cool Way to Garden
[08/08/2024:] Life and Basil Limeade
[08/05/2024:] Motivating Ladder Operators
[08/04/2024:] Migrated to AstroJS
[07/31/2024:] The Classical in the Quantum

Notes

Working on notes on the quantum mechanics, derivatives, and uploading my previous course notes onto this blog!

Projects

Finally started a projects page! I've recently made some nice upgrades to my post component, so it looks pretty clean! ;)

🌊

I'm considering whether or not to continue this project using WebGL or Three.js.

I'm also researching methods for generating the 3D scenes I want for this project automatically.

In the meantime, I've decided to proceed with some preliminary prototypes of the other interactive parts of this project.

Orange Juice

I like orange juice. :)

Mlog


MECENG 106 Notes: Fluid Dynamics

Fall 2024
By Aathreya Kadambi
Expanding on Lectures by Professor Phil Marcus

This fall I’m taking a fluid dynamics class by Professor Phil Marcus at Berkeley! Coincidentally, I actually was really interested in his research on Jupyter’s red spot and these related problems in freshman year, although I ended up going down a different road for a while. Excited to learn fluid dynamics.

Story 1: Dimensions

Relevant lectures: Lecture 1

The lecture notes have anything you need to succeed. You are also strongly recommended to work in teams on the homework. Homework are combination of graded and self-graded. Feel free to go to any discussion section.

When you write down equations, you should keep track of the dimensions of the quanities in the equation. If you are taking the sin\sin or log\log of something, it better be dimensionless.

Dimensional analysis is very important. In fact, people were able to find the energy in the atomic bomb (which was a well-kept secret) based on the speed of the shock wave.

Dimensions are things like length, time, mass, etc.. It is important to distinguish these things from units, which we use to measure these dimensions.

Remark. I’ll leave out the examples and discussion of dimensional analysis and units and things like that, since one can find good treatment of that subject in practically any thick science textbook. One thing I will mention is that apparently there’s actually a unit of temperature called “Rankine”. I’ve never seen that before.

Story 2: Properties of Fluids

Relevant lectures: Lectures 1, 2

Our properties are going to be functions of space and time: xR3\textbf{x} \in \R^3 and tRt \in \R. Here are some important properties:

The following properties live in Maps(R3×R,R)\text{Maps}(\R^3\times \R, \R).

  • Temperature: Temp\text{Temp}.
  • Mass Density: ρ=massVolume\rho = \frac{\text{mass}}{\text{Volume}}. It has dimensions ML3ML^{-3} in MLT units.
  • Pressure: P=forceareaP = \frac{\text{force}}{\text{area}}. It has dimensions ML1T2ML^{-1}T^{-2} in MLT units.
  • Velocity: VV. It has dimensions LT2LT^{-2}.

Remark. Notice how we are treating these quantities in a continuum. I was thinking about it, and I guess this means in terms of temperature for example, we can treat each particle or molecule as a Dirac function, and the temperature in a region is the expected value of the temperature in that region when one integrates. That feels somewhat nice because it gives this intutiion of temperature over a region being looking at space in a lower resolution.

In fluid dynamics, we will write the ideal gas law as:

P=RρTP = R\rho T
RR is called the gas constant, and the other quantities were discussed above.

In physics we generally use the form PV=nRTPV = nRT. So what is the relationship between these two forms? In physics one has to look up the molecular weights and stuff, and in MechE, we have to look up individual gas constants for each gas.

Ideal gas equation of state:

P=RρTP = R\rho T
or in physics,
PV=nRphysicsTPV = nR_{\text{physics}}T
Notice that
ρ=MV=νphysicsnV\rho = \frac{M}{V} = \frac{\nu_{\text{physics}}n}{V}
so solving for nn, n=ρVνphysicsn = \frac{\rho V}{\nu_{\text{physics}}}. Substituting this into the previous equation, we find that
P=RphysicsνphysicsρTP = \frac{R_{\text{physics}}}{\nu_{\text{physics}}} \rho T
so we’ve found that
R=Rphysicsνphysics\boxed{R = \frac{R_{\text{physics}}}{\nu_{\text{physics}}}}

Story 3: Viscosity

Viscosity is about roughly how well things flow. Physically, it is a diffusion coefficient of momentum.

In fluid dynamics, we have so called boundary conditions. For a Newtonian fluid, the boundary conditions are that the fluid at any surface in the direction that is parallel to the surface must move at the same velocity as the surface. This is called the no-slip boundary condition. The zeroness of momentum diffuses into the middle so that for honey, where that diffusion would happen very quickly for example, the momentum in the middle will also be close to zero. For water on the other hand, the momentum in the middle might be high even if the momentum at the surface is zero.

So far what we have discussed is called the kinematic viscosity. There is another viscosity called dynamic viscosity, which satisfies νdyn=ρνkin.\nu_{\text{dyn}} = \rho \nu_{\text{kin}}. From now on, ν\nu will refer to kinematic viscosity. There is a dimensionless quantity called the Reynold’s number, defined: Re=[V][L]ν\text{Re} = \frac{[V][L]}{\nu} where we are using brackets here to indicate “characteristic values”. When Re103\text{Re} \le 10^3, we call it laminar, when it is 105\ge 10^5 we call it turbulent, and in between this, we call it transitional.

For 3D flows, it is extremely difficult to make calculations in the transitional region without approximations. That’s why you need to take MECENG 106, because that is one of the hardest places to calculate flows.

Example. Consider water out of a tap. The characteristic volume and length are 5  cm/s5\; cm/s and 1  cm1\; cm, and the viscosity is 0.01  cm2/s0.01 \;cm^2/s. As such,

Re=510.01=500\text{Re} = \frac{5\cdot 1}{0.01} = 500
so tap water flows are fairly laminar. Consider now a hurricane. There, the characteristic velocity is 104  cm/s10^4 \; cm/s, the characteristic length is 107  cm10^7 \; cm, and the viscosity is 0.1  cm2/s0.1 \; cm^2/s. Thus the Reynolds number is Re=1012\text{Re} = 10^{12} so this flow is clearly very turbulent.

Remark. You can compute the transition point for smoke flowing up, when it transitions through different types of flow. Why do we define the Reynold’s number like that?

Story 4: Pressure

Relevant Lectures: Lecture 2

Consider an area. This vector has normal inward vector. We might write: dF=n^PdAdF = \hat n P dA so that the integral is df=n^PdA\int df = \int \hat n P dA A question is, if we change our orientation, then do we get a different force or something? It turns out that the magnitude is independent.

We will show this in the static case, namely where

  • V0V \equiv 0
  • t=0\frac{\partial}{\partial t} = 0

Now let’s imagine a little piece of swiss cheese (proceeds to draw an inclined plane with angle theta).

Story kk: Gauss’s Law

Our MechE 106 equation which is in many cases more useful than Gauss’s law is:

VP  dvolume=SPn^  darea-\int_V \nabla P \;d\text{volume} = \int_S P\hat{\mathbf{n}} \; d\text{area}



As a fun fact, it might seem like this website is flat because you're viewing it on a flat screen, but the curvature of this website actually isn't zero. ;-)

Copyright © 2024, Aathreya Kadambi

Made with Astrojs, React, and Tailwind.