An Overview of Undergrad Fluids Notes developed for MAE 222
Written and compiled by:
Clayton P. Byers
Princeton University, 2016 Foreword
These notes are a compilation and edit of my precept notes I developed for MAE 222 in Spring 2016 at Princeton University. The goal here was to combine them into a sort of study guide that can be used by future students. They assume the reader is either famil- iar with, or concurrently studying, basic fluids mechanics. These notes will not stand alone as a way to learn fluids from scratch! Some sections go into fine detail about derivations, which aren’t necessary for the basic undergrad education. Other sections as- sume you have some base level of knowledge, and may be complicated if you haven’t seen the material before. They will serve well for an undergrad reviewing the material for your final, or even for a graduate student in the early preparation for your general examination.
The flow and order of the material follows the general outline in which it was presented in the course. In general, each section should have a number of fully worked examples to demonstrate the core concepts. I go through each step in the math and logic to help develop your understanding of the application of the material.
I have tried to edit the content so that it is consistent in the internal equation and figure references, but there might be an equation or two that accidentally got cross-referenced. If you see any mistakes in notation (or more egregious errors in the content!) please let me know: claytonb (at) princeton (dot) edu.
This material was inspired by Prof. Marcus Hultmark’s class lectures, Prof. Alexander Smits’ book “A Physical Introduction to Fluid Mechanics,” and the book “Engineering Fluid Mechanics” by Crowe, Elger, Roberson, and Williams. You’ll find similarities to those texts or classes for good reason, but my goal was to present them in a new light or with a different approach. I hope you find this useful and enlightening!
Intro to Fluids Notes 1 C. P. Byers 2016 Contents
1 Introductory Concepts5 1.1 Dimensional homogeneity ...... 5 1.2 The unique characteristics of pressure in fluids ...... 5 1.3 Example: breaking a barrel ...... 7 1.4 Example: an airplane door ...... 8 1.5 Statics and moments ...... 10 1.5.1 Example: a dam wall with one fluid ...... 10 1.5.2 Example: a dam wall with two fluids ...... 13 1.6 Rigid body motion summary ...... 15 1.7 Specific weight and specific gravity ...... 18 1.8 Buoyancy ...... 18 1.8.1 Example: floating some aluminum ...... 19 1.8.2 Example: floating in a different fluid ...... 21 1.9 Control Volumes ...... 22 1.9.1 Example: accumulating mass ...... 22 1.9.2 Example: non-uniform flow ...... 23 1.10 Material Derivative ...... 25
2 Continuity and Momentum 27 2.1 Continuity equation ...... 27 2.1.1 Differential form of the continuity equation (bonus material) ...... 29 2.1.2 Example: continuity on a nozzle ...... 30 2.2 Momentum Balance ...... 32 2.2.1 Example: force on a nozzle ...... 32 2.2.2 Example: Balance with angled velocities ...... 34
3 The Momentum Equation 38 3.1 Integral & Differential momentum equation ...... 38 3.1.1 Example: momentum practice ...... 41 3.1.2 Example: differential momentum practice ...... 45 3.2 Bernoulli’s equation ...... 46 3.2.1 Rigorous derivation of Bernoulli’s equation (bonus material) ...... 47 3.2.2 Pressure and streamlines ...... 49 3.3 Example: flow over a bump ...... 49
Intro to Fluids Notes 2 C. P. Byers 2016 CONTENTS
4 Introducing Potential Flow 53 4.1 Some flow definitions and characteristics ...... 53 4.1.1 Vorticity ...... 53 4.1.2 Velocity Potential ...... 54 4.1.3 Stream functions ...... 55 4.2 Example: a potential vortex ...... 56 4.3 The power of the velocity potential ...... 59 4.4 Example: superposition ...... 60
5 Non-Dimensionalization 63 5.1 Non-dimensionalization ...... 63 5.1.1 Similarity and non-dimensional parameters ...... 63 5.1.2 Non-dimensional equations ...... 66 5.1.3 Example: non-dimensionalizing the momentum equation ...... 66 5.1.4 Example: flow in a channel ...... 68 5.2 Prandtl’s Boundary Layer ...... 69 5.2.1 x-momentum equation ...... 69 5.2.2 y-momentum equation ...... 72 5.2.3 Combining the x- and y-momentum equations ...... 73 5.2.4 Bonus: similarity solution ...... 74 5.3 Bonus: Energy Equation ...... 75
6 Analysis of the Boundary Layer 77 6.1 Summary of the boundary layer ...... 77 6.2 Zero pressure gradient ...... 78 6.3 Displacement thickness ...... 78 6.3.1 Displacement thickness and the zero pressure gradient assumption . . . . 80 6.4 Momentum thickness ...... 81 6.4.1 Momentum thickness and drag ...... 84 6.5 Example: approximate boundary layer ...... 84 6.6 Example: finding the skin friction ...... 85
7 Drag, Separation, and Shedding 89 7.1 Drag force from friction ...... 89 7.1.1 Example: drag on a plate ...... 90 7.2 Separation of the boundary layer ...... 91 7.2.1 Favorable pressure gradient ...... 93 7.2.2 Zero pressure gradient ...... 93 7.2.3 Adverse pressure gradient ...... 94 7.3 Resistance to separation ...... 94 7.4 Case: a curved surface ...... 94 7.5 Strouhal number ...... 95 7.5.1 Example: Tacoma Narrows Bridge ...... 96 7.5.2 Example: car antenna ...... 98
Intro to Fluids Notes 3 C. P. Byers 2016 CONTENTS
8 Internal Flows and Losses 99 8.1 Internal flows ...... 99 8.1.1 Continuity ...... 100 8.1.2 Inertial terms ...... 101 8.1.3 The x-momentum equation for a channel (and pipe) ...... 101 8.1.4 The pressure gradient ...... 102 8.2 The velocity profile in a pipe ...... 103 8.3 The friction factor in a laminar pipe ...... 105 8.4 Example: a vertical pipe ...... 106 8.5 Example: force to hold a pipe ...... 109 8.6 Losses in pipe flow ...... 110 8.7 Example: flow from a reservoir ...... 113
9 Supercritical and Supersonic Flows 115 9.1 Comparison of Mach number and Froude number ...... 115 9.2 Hydraulic jumps ...... 116 9.2.1 Example: hydraulic jumps on a dam ...... 118 9.2.2 Example: jump in a channel ...... 118 9.3 Compressible flow relations ...... 120 9.3.1 Example: space shuttle re-entry ...... 121 9.4 Normal shocks ...... 122 9.4.1 Example: revisiting the shuttle ...... 123
Intro to Fluids Notes 4 C. P. Byers 2016 Chapter 1
Introductory Concepts
1.1 Dimensional homogeneity
This concept is one of the most important concepts in science and engineering, yet is often glazed over and not actively discussed as early as (I think) it should be. Whenever we write an equation, we aren’t just looking to plug in number, but are also dealing with dimensions or quantities of some sort. Something as simple as Newton’s Second Law, P F~ = m~a has no meaning or usefulness unless we use the proper quantities and dimensions.
m →[mass] a fundamental dimension
length a → [acceleration] time2
mass * length F →[force] time2 From this information, we can see that both sides of the equation balance in terms of fundamental dimensions - we have [mass ∗ length]/time2 on both sides. However, we must also make sure we use consistent units. It doesn’t make sense to have meters on one side and feet on the other. All equations we work with (which are based on some physical interaction in the world around us) will be dimensionally homogeneous. This seems simplistic, but keep it in mind and always take a look at it to make sure you’re approaching your equation correctly. In fluids, we can sometimes get information in units like psi but need P a. The easiest way to make sure you’re doing things right is to write down the units when doing math. Not only will it help you keep track of what you’re doing, but it may clarify where a mistake could be.
1.2 The unique characteristics of pressure in fluids
We like to make analogies of pressure with weight balancing on an area. However, this can be misleading, and requires a little more thought to grasp how pressure really works.
Intro to Fluids Notes 5 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
Remember that we classify pressure as a “scalar,” which means it has a value, but no direction. This is analogous to temperature - does it have a direction? Heat transfer does, but temperature itself does not. It simply has a value at a location. Pressure is the same, while the force we feel (or calculate) due to pressure isn’t prescribed by the pressure field, but instead by the physical boundaries in which pressure acts. The force due to pressure, which is a vector, gets the magnitude from the pressure and area it acts on, but the direction comes from the prescribed boundaries on which the pressure is acting. One way to think about the force of pressure is to think of a person sitting on the bottom of the ocean. Assuming the depth this person is at stays constant, then we can say the pressure acting on him is constant. Recall the equation for hydrostatic balance: dP = −ρg (1.1) dz where the z-direction is defined as positive going up. Integration of the equation then will give us: P − P0 = −ρg(z − z0) Let’s think for a moment - what are the initial conditions, and what are the variables here? Since we’re dealing with the ocean, ρ will be the density of sea water, which we can wave our hands and say is 1000 kg/m3. Notice the units we’re using? Keep it consistent throughout! Let’s also assume that gravity isn’t going to change on us too much, which is usually a safe bet, and say g ∼ 10m/s2. Again, note the unit’s we’re using! Now think on the initial conditions. We can specify the pressure at the surface of the water as atmospheric pressure, Patm. In real life, this can change a bit day to day, but we usually are interested in departures from this pressure, not the actual value of it. So sometimes we’ll just leave it as a variable, Patm, while other times we will just set it to zero and note that we are looking for the departure from atmospheric pressure. As for the height, let’s set the surface of the ocean as zero. We could also set it as any other value, but why make it hard on ourselves? OK, here’s where we stand now with the equation: kg m P − P = −1000 ∗ 10 ∗ (z − 0) atm m3 s2 or N ∆P = −10000 ∗ (z) m3 All we’ve done is simply call the pressure difference ∆P since we’re talking about a departure from atmospheric. Now, let’s say our person is 33 feet below the surface. What is the pressure difference from atmospheric pressure? N ∆P = −10000 ∗ (−33ft) m3 Note that we’ve set the depth as a negative value, as we defined the positive z-direction as up. But look at the units! We shouldn’t be using feet! Recall dimensional homogeneity! We need to convert this to meters, which is about 3.3 feet to a meter. Therefore, we would find: N 1m N ∆P = −10000 ∗ (−33ft ∗ ) = 100000 m3 3.3ft m2
Intro to Fluids Notes 6 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
The pressure at 33 ft below the surface is approximately 100 kP a higher than the atmospheric pressure! So even though our equation had the minus sign, we found the pressure increased with depth (which our intuition should agree with). Now why did I say that pressure can be tricky or unique? Let’s think about the water above the person. We specified them to be at the bottom of the ocean, 33 ft down (ok I’m tired of feet, lets use meters like real scientists). What if instead it was the bottom of a 10 m pool? Or a 10 m dunk tank? The person would still experience an additional 100 kP a of pressure. You could even shrink this down to a tube that encapsulates the person, but with 10 m of water above, and it would still be the same pressure. Even more crazy, you could use a 10 m long straw, place it on top of their head, and fill it with water, and the pressure at the top of their head would be 100 kP a higher than atmospheric pressure! So pressure isn’t so much about the weight of fluid above the point, because the straw full of water and the ocean exert the same pressure at a depth of 10 meters, even though their volumes are vastly different. Remember that the pressure is a scalar value that exerts itself on the surface, and the surface is what determines the direction of the resultant force.
Overall, just be careful when doing the integration, and define your zero point and positive direction clearly.
1.3 Example: breaking a barrel
This example highlights the “strangeness” of pressure while showing how powerful it can be. Recall how we just said a straw 10 meters tall and full of water exerts the same pressure as the ocean at 10 meters below the surface. This concept can be used to exert large forces through simple setups. Imagine a sealed barrel, expertly drawn in figure 1.1, with a pipe connected to the top. The pressure in the barrel, assuming it is completely sealed, is then dependent on the height of the fluid in the tube. Think: if the tube were disconnected, the barrel empty, and there was just the hole at the top, then that would be exposed to the atmosphere. Assuming the barrel isn’t absurdly large, the pressure within would be the same as atmospheric pressure. If it were filled with water to the hole, it would have increasing pressure towards the bottom, but again assuming it isn’t too big it wouldn’t be much different from Patm. Now, we put the tube on, but don’t fill it. What’s the pressure? Have we really changed anything? No, we haven’t! Sure, there is a column of air in the tube, but the pressure at the opening of the barrel will still be Patm, as that is the pressure of the air at the bottom of the tube. This air pressure then interfaces with the water in the barrel, so the pressure exerted is no different than if we didn’t have the tube. Now, let’s start filling the tube up with water. Again, the barrel is perfectly sealed. What happens as the water level in the tube increases? You can integrate equation 1.1 and set it all up, but your intuition should tell you that pressure will rise. What happens when the water level in the tube is 10m? (hint, we just talked about a straw that had 10m of water in it!) Since that pressure from the water column exerts itself on the water in the barrel, we would find that the pressure inside is suddenly 100 kPa higher than when there was no water column. Increase the water height to 20 meters and suddenly the water pressure in the barrel is 200 kPa above atmosphere! If you then integrated this pressure over the area inside the barrel, you would find
Intro to Fluids Notes 7 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
Figure 1.1: a totally legit drawing of a barrel with some pipe contraption coming out of the top. a tremendous amount of force on the walls, which at some point would lead to it bursting. Of course that depends on the material properties and exact geometries.
The point from this thought exercise is to help you grasp how powerful but simple pressure can be. A very tall but thin column of water can end up exerting very large amounts of pressure, even though the actual weight of the water itself is small.
1.4 Example: an airplane door
Airplane doors open inward before swinging out. The inside cabin air is pressurized relative to the cruising altitude pressure, but still lower than atmospheric. This example will help illustrate why. Let’s say you’re cruising at 10,000m in a commercial airliner with your friend. You’re flying
Intro to Fluids Notes 8 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS international, so they’ve fed you dinner. You decided to have the beef, while your friend had the fish. Now, 1 hour later, your friend is entering a hallucinogenic state brought about by the fish. He decides that the airplane is too confining, so he goes up to the cabin door to open it and leave. Should you try to stop him?
Let’s see what pressure says you should do! We know there is a pressure difference between the outside and inside of the plane, so we should calculate those values to determine the direction and magnitude of the resultant force. Lets start by assuming that the pressure inside the cabin is half that of regular atmospheric pressure, or 50kP a. Let’s also assume the cabin door is around 1 meter wide by 2 meters tall. Now what’s the outside pressure? You could look it up in a table, or online, or any number of sources, but let’s make it a little more work. The function describing the density in the troposphere (the first 10,000m or so of the atmosphere) is: P kg ρ = (1.2) 286.9(288.1 − 0.0065 ∗ z) m3 This means we have density as a function of height in the atmosphere. This can then be plugged into our hydrostatic relation, equation 1.1, to get: dP −P ∗ g = dz 286.9(288.1 − 0.0065 ∗ z) or, by rearranging and plugging in 9.81m/s2 for g, we have:
dP −0.0342 = dz P (288.1 − 0.0065 ∗ z)
I hope that you’ve done some basic differential equations, or at least separation of variables. If not, then at this point just remember that you want all of one variable on one side, and the other variable on the other side. Here, you can see that all P variables are on the LHS, while all z variables are on the RHS. Then you can integrate both sides with respect to their own variables.
Z P (z=10,000) 1 Z z=10,000 −0.0342 dP = dz P (z=0) P z=0 (288.1 − 0.0065 ∗ z) P? 10,000 1 ln (P ) = − 0.0342 ln (288.1 − 0.0065 ∗ z) ∗ −0.0065 Patm 0 ln (P?) − ln (100kP a) = 5.26 ln (223.1) − ln (288.1) P ln ( ? ) = − 1.345 100kP a P? = 26, 000 P a
So the math was a little fun, but otherwise it was a straightforward plug and chug to get the pressure at 10,000m elevation. If you look up the value in a table, you’d see that we’re within a few percent, so all is well!
Intro to Fluids Notes 9 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
Now, we have the outside pressure, and we know the inside pressure, so the force exerted on the cabin door will be: X F orces = Finside + Foutside = (−Pinside nˆi + −Poutside nˆo) ∗ Adoor
Remember how the definition of the force due to pressure has the minus sign in it. This means you also need to pay attention to the wall normal vectors. It’s pretty straightforward in this example, but for cases where the walls or surfaces are sloped, it becomes very important to pay attention ton ˆ. Assumingn ˆi (inside wall normal direction) is directed in the positive direction, andn ˆo (the outside wall normal direction) is in the negative direction, then the above equation can be written to find: (−50kP a − −26kP a) ∗ 2m2 = −48kN This means the pressure difference across the two sides of the door leads to a net force of 48kN from the inside (pointing in the negative direction). In other words, your crazy friend would have to pull inwards with 48kN of force to overcome the pressure difference on the door. This is equivalent to lifting ∼5000kg off the ground. Don’t think it’s going to happen.
1.5 Statics and moments
This utilizes the concepts of hydrodynamics and a force/moment balance. These problems end up being a good exercise in your calculus skills. When a surface is horizontal (or equivalently at uniform depth) in a quiescent fluid, we can show that the pressure acting on it is uniform. Likewise, when the fluid is a gas you can usually assume the pressure acting on a non-horizontal wall as uniform. However, when we depart from this, like an angled wall in water, we find that the pressure acting on the surface is not uniform. We must then perform a more general type of analysis.
1.5.1 Example: a dam wall with one fluid Lets say we have a dam that is 100m high, 200m wide, holding up 100m of water, as seen in figure 1.2. What’s the total force exerted on the wall? Where would the equivalent point force occur to produce the same moment on the wall? This is a simple application of forces and moments, so let’s start by writing an expression for force. We know that the pressure varies with depth, since that’s exactly what the hydrostatic equation tells us! Water has a density of 1000kg/m3, so we start by writing: dP kg m N = −ρg = −1000 ∗ 9.8 = −9800 (1.3) dz m3 s2 m3 This is how fast the pressure changes with height. Note we have assumed a positive z-direction as upward, so the negative value would mean increasing pressure with decreasing height. We also define zero elevation at the surface, so going into the water yields negative height. By taking the reference pressure at the water surface as zero (in other words, looking at the departure from atmospheric pressure, or other-other words: gage pressure) we can calculate the force on the wall by decomposing into infinitesimally small portions:
dF = P dA
Intro to Fluids Notes 10 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
Figure 1.2: schematic of a dam supporting a single fluid. where dA is simply a small area, or the width (which is a constant 200m) times dz. Why dz? well, think on what is the variable here. Does the pressure vary with any other direction? No! Again, your intuition helps here! Now, P varies in z based on equation 1.3. We can integrate to find the exact relationship: Z top Z top Z P (top) Z 0 dP = −9800 dz → dP 0 = −9800 dz0 bottom bottom P (z) z N P (top) − P (z) = −9800(0 − z) → P (z) = −9800z m2 So this tells us that the value of the pressure at a given elevation below the surface of the water. Note that you can see at 10m below the surface, the pressure is about 100kP a, one about 1 atmosphere! So we’re doing OK thus far. Now, the fractional area dA is simply 200 ∗ dz, so we can now write: Z top F = dF bottom Z top = P dA bottom Z top = −9800z ∗ 200 dz bottom Z 0 = −1960000z dz −100 0 2 = − 980000z −100 =0 − −980000(−100)2 F =9.8 GN That’s a lot of force. Notice that we got a positive value, which is good news considering we didn’t prescribe a direction the force is applied in! Even though it can be kind of annoying to
Intro to Fluids Notes 11 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS carry through all these minus signs, it will still get you to the correct spot if you are diligent in your definitions. How about the moment about the base of the wall? Instead of an infinitesimal force, let’s calculate the infinitesimal moment:
dM~ = ~r × dF~ → dM = − z − (−100) dF → dM = − z + 100 dF
I’m using the right-handed coordinate system, so the forces on the dam will produce a positive moment about the base of the dam. Also note that there is a z + 100 term, not just z. Thats due to the moment being about the base, so the greater the depth, the shorter the moment-arm. Therefore, we need to be better about our normal and define the force on the dam as acting in the negative direction. dF = −P dA This means the force will be acting towards the left on the page. Then, working with our cross product, we get positive moments about the base. Plugging this in gives:
Z top M = dM bottom Z 0 M = −(z + 100) dF −100 Z 0 = (z + 100)P dA −100 Z 0 = (z + 100) ∗ (−9800 ∗ z) ∗ 200 dz −100 Z 0 = −1960000(z2 + 100z) dz −100 3 0 z 2 = − 1960000( + 50z ) 3 −100 −1003 =0 − −1960000 + 50(−100)2 3 M =326 GN · m
Note that I was better with the directions of the forces and moments. The force from the fluid on the dam is applied in the negative direction, while the moment about the base is positive. The calculus worked how we had hoped it to! Next, we can find where the equivalent point force would be applied. By taking the moment, and dividing by the total force, we find: M z = cop F 326 GN · m = 9.8 GN zcop =33.3 m
Intro to Fluids Notes 12 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
From this, we got a distance of 33.3m, which means the location we could apply the point force would be 1/3rd of the way from the moment axis, or 2/3rds of the distance below the surface. This is the location of our center of pressure, and since the pressure distribution is triangular, this makes sense! This simple setup is giving a result that matches what we should have seen in our mechanics classes.
1.5.2 Example: a dam wall with two fluids Now we will change the setup ever so slightly to see what happens. Imagine we have two layers of fluid, where fresh water is floating on top of salt water, seen in figure 1.3. Let’s calculate out the forces, moments, and center of pressure again.
Figure 1.3: schematic of a dam supporting two different fluids.
The pressure distribution will be slightly different. Let’s first look at the top 50 meters:
Z top Z top dP = −ρg dz z z Z 0 P (0) − P (z) = −9800 dz z N P (z) = − 9800z if 0 ≥ z ≥ −50 (1.4) m2 So for the first 50 meters, we wouldn’t see anything different than the previous example. How- ever, once we cross to the next fluid, we need to account for the different density as well as the pressure at the fluid interface.
Intro to Fluids Notes 13 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
Z P (−50) Z −50 dP 0 = −ρg dz0 P (z) z Z −50 P (−50) − P (z) = −10094 dz0 z −50
490000 − P (z) = − 10094 ∗ z z N P (z) = − 10094z − 14700 if −50 > z ≥ −100 (1.5) m2 Notice that the second layer of a fluid has lead to a more complicated expression for our pressure. We have equation 1.4 for the first 50m in the fluid, then equation 1.5 for the second 50m in the fluid. That is how we found the value for P (−50). To calculate the total force, we perform the integration as was done before. We will note that the force is in the negative direction (putting the minus sign on it) and keep our expressions in mind for the different z-locations: Z 0 F = −P dA −100 Z 0 Z −50 = −(−9800 ∗ z) ∗ 200 dz + −(−10094z − 14700) ∗ 200 dz −50 −100 0 −50 2 2 =980000z + (1009400z + 2940000z) −50 −100 F = − 9.87 GN
Notice that this force is just a little bit higher than the previous example? That’s due to the denser fluid on the bottom increasing the overall pressure on the bottom half! Also notice how the sign is negative? That’s due to us correctly accounting for the fact that the pressure acts on the wall to move it in the negative x-direction. The moment will be done in a similar manner, where the axis which we calculate the moment about is located on the bottom of the wall, and making sure to account for the change in the expression for pressure at the z = −50m point.
Intro to Fluids Notes 14 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
Z top M = dM bottom Z 0 = −(z + 100) dF −100 Z 0 = (z + 100)P dA −100 Z 0 Z −50 = (z + 100) ∗ (−9800 ∗ z) ∗ 200 dz + (z + 100) ∗ (−10094z − 14700) ∗ 200 dz −50 −100 Z 0 Z −50 = −1960000(z2 + 100z) dz + −2018800z2 − 204820000z − 294000000 dz −50 −100 3 0 −50 z 2 3 2 = − 1960000( + 50z ) − (672933z + 102410000z + 294000000z) 3 −50 −100 −503 =0 − −1960000 + 50(−50)2 3 + − 672933(−50)3 + 102410000(−50)2 + 294000000(−50) − − 672933(−100)3 + 102410000(−100)2 + 294000000(−100) M =328 GN · m
Just like the force, the moment is ever so slightly higher than the previous example was. Again this intuitively make sense, as we have a larger force acting on the wall. If we then calculate out the center of pressure, we find: M z = cop F 328 GN · m = 9.87 GN zcop =33.2 m
This is only 0.1m lower than the previous center of pressure. Not very significant, but then again the density difference isn’t very significant either. However, this isn’t the centroid of a triangle now! This goes to show that you need to take the time to calculate out the pres- sures/forces/moments in order to accurately find where the center of pressure is. Overall, this is to show you how being diligent with your signs and writing out your integrals is an important thing when calculating the center of pressure.
1.6 Rigid body motion summary
The previous examples illustrated the power of pressure, but we weren’t considering fluid flow. That is why we used the “Hydrostatic Equation” - the fluids were static! (Yes, the plane moves, but for the analysis we assume the outside pressure is constant for a given altitude). We can also use a similar analysis on fluid that is in motion, but only under a simplified case. Rigid body
Intro to Fluids Notes 15 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS motion is when the fluid particles do not move relative to one another. When this occurs, the forces on a fluid particle are only the normal and body forces, not shear stresses. So performing the same type of analysis in both the x- and y-directions as was done in the z-direction (for developing the hydrostatic equation) will give you expressions for pressure gradients in all three coordinate directions: ∂P = −ρa (1.6) ∂x x ∂P = −ρa (1.7) ∂y y ∂P = −ρ(g + a ) (1.8) ∂z z These equations of course depend on the way you define your coordinate system, but here we use the standard positive z-direction being up. Also note that the derivatives are now partials, because pressure is a function of multiple variables. The minus signs again can be confusing, but a little intuition helps us. If we were accelerating in the positive x-direction, then we would see a negative pressure gradient with respect to x. This signifies that the pressure decreases as you move in the positive x-direction. Think of a very long car, completely sealed. If it accelerated at 1g, then the fluid within would have the largest pressure at the back, and the smallest pressure up front. This is a negative pressure gradient, because the value drops as you move in the positive direction! Likewise with the z−direction, we can think about what the equation is telling us. If we were to be in an enclosed box with a fluid, then we accelerated in the negative z-direction at 1g, we would find there is no pressure gradient. That is because accelerating downward at 1g is simply freefall! If we didn’t accelerate in the z-direction, then we’re back to hydrostatics. If instead we accelerate in the positive z-direction, we would increase the pressure gradient, and the pressure at the bottom of the box would increase, proportional to the amount we accelerate.
If you need any clarification on the derivation of these equations, draw a fluid particle and perform a force balance. Don’t ask me, I’m just a set of notes.
Additionally, under rigid body motion, the pressure from a sloped or curved surface can be found. Alternatively, the acceleration needed to produce certain surfaces can be found as well. For instance, an example taken from Prof, Smits’ book asks us to find the acceleration required to make water spill out of a cart, as seen in figure 1.4. However, getting to the equation that determines this isn’t always the most straightforward. We start by writing the total derivative of pressure: ∂P ∂P ∂P dP (x, y, z) = dx + dy + dz ∂x ∂y ∂z This is a general expression for the total derivative of any function that depends on three variables. Now this example doesn’t have any y-dependence, so we can instead write: ∂P ∂P dP (x, z) = dx + dz ∂x ∂z
Intro to Fluids Notes 16 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
Figure 1.4: schematic of an accelerated cart, taken from Prof. Smits’ book.
Next, we can plug in our expressions for the pressure gradients:
dP (x, z) = −ρax dx − ρ(g + az) dz Finally, we want to find the slope of a surface (or specify the accelerations to achieve a particular slope). If we are on the surface of water in the atmosphere, we can say the pressure is constant. Think about a flat body of water - the pressure all along the surface is Patm. If the body of water is then accelerated, it will slope somehow. However, the surface is still exposed to atmospheric pressure, so all along that surface the pressure is still constant. Therefore, for us, we can say surface of the water will have a constant pressure, even when under acceleration! Therefore we can write the following for the surface of water:
0 = −ρax dx − ρ(g + az) dz or
ρax dx = −ρ(g + az) dz or a dz − x = g + az dx In this example, there is no vertical acceleration besides gravity. Therefore, the slope is simply −ax/g. Based on the dimensions given, the water level at the back of the cart needs to increase in height by h/3, and the location in which the surface will “pivot” is at the halfway point, or an x-distance of 3h/2. This leads to a negative slope, so we can then write: a dz − x = g dx a − h − x = 3 g 3h 2 2 a = g x 9 Note that the height needed to increase and the pivot point of the free surface were straight- forward to find here since the container is nearly full. If there were only a thin layer of water of the bottom, you’d have to get creative with defining the shape of the fluid in the container.
Intro to Fluids Notes 17 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
1.7 Specific weight and specific gravity
Specific weight, γ, is simply the gravitational force of a fluid per unit volume. In other words, it is the weight of the fluid divided by the volume. It can be expressed simply as: weight ρV g γ = = = ρg (1.9) volume V This assumed a constant density throughout the fluid volume, which we can assume true for a fluid particle. We can then use the specific weight to re-write our hydrostatic relation: dP = −γ dz Specific gravity is simply a ratio of the specific weight of a fluid to that of water. This requires some reference state for water, but you can choose that. γ ρ g ρ SG = fluid = fluid = fluid (1.10) γwater ρwater g ρwater So a specific gravity greater than 1 means the fluid (or object) has a density greater than water, and less than 1 means the density is less than water.
1.8 Buoyancy
Buoyancy is intimately related to the hydrostatic relation. It also factors in specific gravity, since the ratio of densities will determine just how buoyant force the object can exert. A straightforward example is to look at a block of aluminum and a block of styrofoam.
SGAl = 2.7 and SGsty = 0.04
We can then show how each of these would behave in water. Your intuition will tell you that the aluminum should sink, and the styrofoam float. We can mathematically show that! Utilizing Archimedes principle, we can solve for the amount of water that each would displace when at equilibrium. Starting with styrofoam: X F orces = 0 in equilibrium
Fb − Fweight = 0
ρwater ∗ g ∗ Vdisplaced − ρsty ∗ g ∗ Vblock = 0
ρwater ∗ g ∗ Vdisplaced = SGsty ∗ ρwater ∗ g ∗ Vblock
Vdisplaced = SGsty ∗ Vblock
= 0.04 ∗ Vblock
This tells us that the displaced volume of water will be less than the volume of the styrofoam block. In layman’s terms, that means the block will float! In general, the expression Vdisp = SG ∗ Vobject will tell you how much water the material will want to displace. So long as the specific gravity (ratio of densities) of the material is less than 1, then the object will want to
Intro to Fluids Notes 18 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS displace less volume than it has. This means some portion of it will remain above the surface of the water. If the SG is greater than 1, then it will want to displace more water than it can. How does something displace more volume than it has itself? It can’t, which means it sinks! Going through the math for the amount of volume the aluminum block would want to displace, we would find Vdisp = 2.7 ∗ Vblock. Now, just like we said, it can’t displace more volume than it has, so the block would sink. This methodology is how you can determine the size of a ship needed to move cargo. If you want to move 1000 metric tons of cargo across the ocean, you need to build a ship that can displace 1000 metric tons of water and not sink!
1.8.1 Example: floating some aluminum Lets imagine a container that is 2x2 meters square, and tall enough to contain the following problem (poorly drawn in figure 1.5). We want to float a 1x1x1 meter cube of aluminum in this container. What is the minimum amount of styrofoam that would be required to keep the block from sinking, and how much does the fluid depth increase in the container?
Figure 1.5: the basic schematic for floating an aluminum block in water.
In order to float the block, we need to displace an amount of water equal to its weight.
FAl =ρAl ∗ g ∗ VAl kg m =2.7 ∗ 1000 ∗ 9.8 ∗ 1m3 m3 s2 =26460N
Intro to Fluids Notes 19 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
We thus need to displace an equivalent amount of water, or:
Fwater =26460
ρwater ∗ g ∗ Vwater =26460N 26460N V = water m kg 9.8 s2 ∗ 1000 m3 =2.7m3
This seems familiar right? That’s because we’re putting the material in water, which is what a specific gravity is defined with! For every unit volume of aluminum, it requires 2.7 units of water to balance the force. That’s exactly what specific gravity is! Now we need to figure out how much additional buoyancy force we require to float. Think: the aluminum block will sink, but since it still displaces some water, it will have an upward buoyancy force acting on it. Ever moved rocks in a lake, or an anchor perhaps? It’s easier when it’s in the water than when it’s in air. That’s buoyancy working for you! So lets see what remaining force we need to overcome:
Fremaining =Fbuoyancy − Fweight
=ρwater ∗ g ∗ Vdisplaced − 26460N =9800N − 26460N = − 16660N
This means there is still a remaining 16660N of force that needs to be overcome for the aluminum block to be neutrally buoyant. Now we look into the amount of styrofoam needed to overcome this force. We know it floats, as was seen previously. We can then see how much force it will exert. From our previous calculations, we were able to show that the volume of water displaced by styrofoam will be 0.04 times the volume of the styrofoam itself. That was because there is some amount of weight to the object, which means there must be some displacement to result in a buoyancy force. Therefore, for every 1.00m3 of styrofoam, we get an effective 0.96m3 of displacement. To obtain the 16660N of buoyancy force, we thus need:
16660N =ρwater ∗ g ∗ Vdisplaced
16660N =1000 ∗ 9.8 ∗ Vdisplaced 3 1.70m =Vdisplaced
This amount of displaced water would yield the appropriate buoyancy force. However, we know that there is only 96% of the volume of styrofoam that contributes to additional buoyancy beyond what is required for the weight of the material. Therefore, we need:
3 0.96 ∗ Vstyrofoam =1.70m 3 Vstyrofoam =1.77m
So to float the 1m3 block of aluminum, we would need 1.77m3 of styrofoam to attach to it.
Intro to Fluids Notes 20 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
Let’s do this in a different manner. I had gone through and methodically laid out each and every step to see what volume of styrofoam was needed. Instead, we can start with a basic force balance! This is a hydrostatics problem, so all the forces should balance. Therefore:
X F~ =0
Fbuoyancy − Fweight =0
Fb,Al + Fb,st − Fw,Al − Fw,st =0
ρwater ∗ g ∗ VAl + ρwater ∗ g ∗ Vst − ρAl ∗ g ∗ VAl − ρst ∗ g ∗ Vst =0
ρwater ∗ g ∗ (VAl + Vst) − SGAl ∗ ρwater ∗ g ∗ VAl − SGst ∗ ρwater ∗ g ∗ Vst =0
ρwater ∗ g(VAl + Vst − SGAl ∗ VAl − SGst ∗ Vst) =0
(1 − SGAl) ∗ VAl + (1 − SGst) ∗ Vst =0 3 −1.7 ∗ 1m + 0.96 ∗ Vst =0 3 Vst =1.77m
We were able to get the exact same value using a different method. Intuition should tell you that each block will have a force due to it’s weight, and a buoyancy force due to the displaced water. Summing the contributions of these forces will balance out to zero, since it’s hydrostatics. The only unknown is the size of the styrofoam block, so no additional equations are needed. Now, we know the volume of styrofoam needed to float the aluminum, and we know the volume of aluminum, so let’s calculate how much the water level has increased in the tank. We know the tank has a 2m x 2m footprint, so the calculation is pretty straightforward: V h = A 1m3 + 1.77m3 = 4m2 =0.69m
The height of the water then increases 0.69m due to the additional material in the water.
1.8.2 Example: floating in a different fluid Let’s do the exact same setup, but now the fluid is honey! Assuming honey has SG = 1.42, what is the new volume of styrofoam needed? Doing the force balance again, we find:
Fb,Al + Fb,st − Fw,Al − Fw,st =0
ρhoney ∗ g ∗ VAl + ρhoney ∗ g ∗ Vst − ρAl ∗ g ∗ VAl − ρst ∗ g ∗ Vst =0
SGhoney ∗ ρwater ∗ VAl + SGhoney ∗ ρwater ∗ Vst − SGAl ∗ ρwater ∗ VAl − SGst ∗ ρwater ∗ Vst =0
(SGhoney − SGAl) ∗ VAl + (SGhoney − SGst) ∗ Vst =0 3 (1.42 − 2.7) ∗ 1m + (1.42 − 0.04) ∗ Vst =0 3 Vst =1.08m
Intro to Fluids Notes 21 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
The volume of styrofoam needed to float the aluminum in honey has decreased compared to that needed in water. That’s due to the honey being a more dense fluid! Every unit volume of honey displaced has a higher buoyancy force it exerts compared to water.
1.9 Control Volumes
Now we’ll look into some basic applications of mass flux and control volumes. The basic concept we will be sticking to is the conservation of mass: all mass must be accounted for in one way or another. This can be expressed as:
min − mout = ∆msys (1.11) In other words, the difference between the mass entering the system and the mass leaving the system is the amount of mass accumulated in the system.
1.9.1 Example: accumulating mass A quick demonstration of equation 1.11 can be shown through the following setup. A tank of water with cross-sectional area of 10m2 has an inflow of 10kg/s and outflow of 5kg/s, sketched in figure 1.6. Find the rate in which the water level in the tank changes.
Figure 1.6: a tank with differing flow rates on the inlet and outlet.
We start by looking to equation 1.11 and modifying it for a flow rate rather than a fixed mass. in other words, we differentiate the equation with respect to time. Plugging in values:
m˙ in − m˙ out =m ˙ sys kg kg 10 − 5 =m ˙ s s sys kg 5 =m ˙ s sys
Intro to Fluids Notes 22 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
So the system accumulates 5kg/s of water. We can then look to how this affects the height. The mass accumulation is simply a rate of change of the total mass of the system: d d d dh m˙ = m = ρV = ρAh = ρA sys dt sys dt dt dt Since the density isn’t changing, and the cross sectional area is a constant, the height is the only parameter that changes with time. Therefore, we can find the change in height with time: kg kg dh 5 =1000 ∗ 10m2 ∗ s m3 dt m dh 0.0005 = s dt The water level in the tank will increase by 0.0005m/s, or 1.8m/hr.
1.9.2 Example: non-uniform flow The previous example only gave the total mass flux into and out of the tank. In general, many of these types of problems assume a uniform inflow and outflow condition. Let’s now look at a case of non-uniform flow in the inlet and outlet conditions. Assume a parabolic inlet flow with max velocity of 5m/s, and triangular outflow as shown in figure 1.7. If the inlet has an area of 1m x 1m, and the outlet has an area of 0.75m x 1m, what is the max outlet velocity, assuming an incompressible fluid?
Figure 1.7: nozzle with incompressible flow (no mass accumulation).
Once again, this is an application of equation 1.11. We want the mass flux version, so differentiating gives: m˙ in − m˙ out =m ˙ sys But in this case, we are assuming there is no mass accumulating in the system (because it’s a steady flow problem with an incompressible fluid). All mass influx must be balanced by mass
Intro to Fluids Notes 23 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS outflux.
m˙ in − m˙ out = 0
m˙ in =m ˙ out
To get the max velocity at the outlet, we need to find the total mass flux into the system. We are given a parabolic velocity profile on the inlet, so we can integrate to findm ˙ in. ZZ m˙ in = ρUdA surface
First, let’s determine what the expression for U is. It is parabolic, reaching a maximum at the centerline, and being zero at the edges. We can therefore write it as:
y U = U ∗ 1 − 2 in max 0.5 ∗ h
In this, y is the vertical coordinate. We define the centerline as 0, so the top and bottom of the inlet are at 0.5h and −0.5h, respectively. Now, plugging in our known values, the velocity can be expressed as: m y U = 5 ∗ 1 − 2 in s 0.5 We next write dA based off it having a unit width (into the page). Since the only variation is in the y-direction, this gives dA = 1 ∗ dy. Then, integrating from −0.5m to 0.5m, since the height is 1 meter, we get: ZZ m˙ in = ρUdA surface Z 0.5 kg m y 2 =ρ 3 ∗ 1m ∗ 5 ∗ 1 − dy m −0.5 s 0.5 0.5 4 3 kg =5ρ y − y 3 −0.5 m · s 10 kg = ρ 3 s Now that we have the mass flow in, we know it has to be the mass flow out. Also, we know the area out, and the velocity profile shape. Therefore, we can put these together to find the maximum velocity at the outlet. Since it’s triangular in shape, we can write the profile as: y U =U 1 − for positive y out max 0.5 ∗ h y =U 1 + for negative y max 0.5 ∗ h
Intro to Fluids Notes 24 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS
Here, the zero point is on the centerline again, and the total height is 0.75m, so we can write this as: 8y U =U 1 − for positive y out max 3 8y =U 1 + for negative y max 3 Now, since the outflow is symmetric, we could always just integrate one half and double (which could have also been done on the inlet, but here since it’s discontinuous it makes more sense). Then, writing out the total mass outflux, which must be equal to its influx, we get: ZZ m˙ in =m ˙ out = ρUdA surface Z 0.375 10 kg kg 8y ρ =ρ 3 ∗ 1m ∗ 2 ∗ Umax ∗ 1 − dy 3 s m 0 3 2 0.375 5 m 4 2 =Umax y − (y) 3 s 3 0 5 m2 3 =U ∗ m 3 s max 16 80 m =U 9 s max So we find that the max velocity at the outlet is 8.89m/s.
Again, as with the buoyancy example, this was stepped through methodically. If instead you saw that the mass fluxes must balance, and therefore equated the integrals, you would get the same answer in fewer steps:
m˙ in =m ˙ out Z 0.5 Z 0.375 y 2 8y ρ ∗ 1 ∗ 2 ∗ 5 ∗ 1 − dy =ρ ∗ 1 ∗ 2 ∗ Umax ∗ 1 − dy 0 0.5 0 3 0.5 0.375 4 3 4 2 5 ∗ y − y =Umax ∗ y − (y) 3 0 3 0 5 3 =U ∗ 3 max 16 80 =U 9 max 1.10 Material Derivative
One final introductory topic that needs to be addressed is the material derivative. Hopefully you’ve already seen it, but the basic idea is that the material derivative is a way to relate changes in the Lagrangian reference frame to changes in the Eulerian reference frame. To refresh your memory, the Lagrangian reference frame is a way to look at a fluid
Intro to Fluids Notes 25 C. P. Byers 2016 CHAPTER 1. INTRODUCTORY CONCEPTS particle where you follow along with it. Think about being a small fluid particle in the air that travels around, and everything you experience is because of the surroundings acting on you as you move through them. The Eulerian reference frame is a way to look at a single fixed point in the flow. Now you are an observer looking at one location, seeing many fluid particles pass through that point. The world of classical mechanics operates within the Lagrangian frame, but with fluid me- chanics, we like to think in terms of the Eulerian frame. This stems from the fact that it becomes extremely difficult to track each and every fluid particle in a system - we’re talking orders of magnitude around 1020 particles just in a moderately sized room! Our current computational ca- pabilities cannot handle this, let alone people working it out by hand back in the early founding days of fluid mechanics. So instead, we desire to be able to look at a single point and evaluate what happens at that location. A simple example would be looking at a rocket nozzle. Do you care about the dynamics of each infinitesimally small fluid particle exiting the nozzle, or is it more productive to have an understanding of the flow at the exit of the nozzle? The Eulerian reference frame allows us to look at the nozzle exit and understand the flowfield without tracking each particle. Our problem is that mechanics works with Lagrangian concepts. We desire to take the Eulerian reference frame and apply the Lagrangian concepts we are more familiar with. In general, any property of a fluid particle can be described as a function of time and space when we utilize the Eulerian reference frame. We observe a location (x, y, z) and watch it change in time t. For example, the temperature, density, or any property Φ at that position can be described as: Φ = Φ(t, x, y, z) Since the Lagrangian frame follows a particle that can move, its position will change in time. Therefore: x = x(t), y = y(t), z = z(t) thus Φparticle = Φ t, x(t), y(t), z(t) Looking at the time derivative of the particle (and making sure we use the chain rule), we then see: d ∂Φ ∂Φ ∂x ∂Φ ∂y ∂Φ ∂z Φ = + + + dt ∂t ∂x ∂t ∂y ∂t ∂z ∂t ∂Φ ∂Φ ∂Φ ∂Φ = + U + V + W ∂t ∂x ∂y ∂z This can be compactly expressed as: d DΦ ∂Φ Φ = = + U~ · ∇Φ (1.12) dt Dt ∂t |{z} Lagrangian
This is our material derivative of the quantity Φ, which will be seen throughout the course. Note that we will reference it by utilizing D/Dt, since that is a more distinct nomenclature compared to the Lagrangian d/dt.
Intro to Fluids Notes 26 C. P. Byers 2016 Chapter 2
Continuity and Momentum
2.1 Continuity equation
After utilizing the relatively simplistic equation for mass balance (equation 1.11), we want to develop a“fluid dynamics” version of it, which we call the continuity equation. Recall this applies in the Eulerian frame, where we fix a control volume and look at the flow through it. The simple way to explain the continuity equation is taking the concept of conservation of mass and re-wording it:
mass in − mass out = change in mass −or− rate of change of mass in C.V + total mass flux out of C.V = 0
Mathematically, we expressed this as: d ZZZ ZZ ρ dV + ρU~ · dS~ = 0 dt volume surface or, using the unit normal, we can equivalently state: d ZZZ ZZ ρ dV + nˆ · ρU~ dS = 0 (2.1) dt volume surface
It is important to realize that both density and velocity can be a function of position and time, or ρ = ρ(x, y, z, t) and U~ = U~ (x, y, z, t). This makes things considerably more complicated in the most general sense of things, but lucky for us we usually get problems where one or both are constants. Just realize there is no restriction on their temporal or spacial dependence. Also note that the integral over the surface represents a net outflux of mass. This is because the dot-product ofn ˆ with U~ will be positive if they are in the same direction, andn ˆ is positive outwards. Therefore, a positive surface integral will have to be balanced with a negative volume integral, implying a net outflux of mass and decrease in system volume. Now, there is another way to obtain the continuity equation. We can utilize a wonderful mathematical tool called Reynolds Transport Theorem. If we have an extensive property
Intro to Fluids Notes 27 C. P. Byers 2016 CHAPTER 2. CONTINUITY AND MOMENTUM
B, and intensive property b, the RTT allows us to relate the change of the extensive property in a Lagrangian view to the Euerian view through: d ZZZ d d ZZZ ZZ b dV = B = b dV + nˆ · bU~ dS (2.2) dt dt sys dt V (t) Vs Ss | {z } | {z } Lagrangian Eulerian
You may have seen this equation before. It is sometimes re-cast in different forms, where instead of b, there is b ∗ ρ. I am defining b here as an intensive property (per unit volume) where the later case has b defined per unit mass. If this gets confusing, don’t fret. We won’t be focusing on RTT so much, mainly on the results that it can provide us. For our convenience, let’s review the Lagrangian and Eulerian viewpoints:
1. Lagrangian: Following the fluid particle/system. Boundaries can deform so there is no flux through them.
2. Eulerian: Fixed Control Volume that allows a flux through boundaries. You look at the whole flow field rather than individual fluid particles.
Therefore, looking to the LHS of equation 2.2, we can see that this is the classical mechanics viewpoint, where as the RHS is the continuum mechanics approach. The RTT is the bridge between fluids and classical mechanics!
Now let’s look at an intensive property, such as density. if we set b = ρ, we plug it into the LHS of equation 2.2 and get: d ZZZ d b dV = B dt dt sys V (t) d ZZZ d ρ dV = B dt dt sys V (t) d d m = B dt dt sys
So, by defining our intensive property b as density, we found the extensive property Bsys to be mass. Is mass an extensive property? Yes! Think about what happens if you cut a volume in half: the mass changes. Think about the intensive property density: it isn’t dependent on the volume of material (in the strictest of senses, of course internal density gradients change things, but let’s not get too complicated here). In the classical mechanics point of view (Lagrangian), what happens to the mass of a closed system? It is conserved! Therefore: d m = 0 dt
Intro to Fluids Notes 28 C. P. Byers 2016 CHAPTER 2. CONTINUITY AND MOMENTUM
Now let’s look to the RHS of equation 2.2 and plug in our intensive property: d ZZZ ZZ b dV + nˆ · bU~ dS dt Vs Ss d ZZZ ZZ ρ dV + nˆ · ρU~ dS dt Vs Ss and equating the RHS to the LHS, we get: d ZZZ ZZ ρ dV + nˆ · ρU~ dS = 0 dt Vs Ss This is simply equation 2.1! There are many ways to derive the continuity equation, but Reynolds Transport Theorem is just one way to quickly obtain it. There are long-winded proofs on how to obtain RTT, but let’s not worry about that.
2.1.1 Differential form of the continuity equation (bonus material) We can re-cast the continuity equation in differential form. The integral form allows us to look at a control volume and understand the whole system while “glossing over” the details within it. The differential form is a powerful tool for understanding the flow field itself. An important point to remember is that the volume/surface in which the integrals occur over in the Eulerian frame are fixed in space. They don’t move or deform (we can sometimes have a moving frame if needed, but lets not worry about that for now). Because they are fixed, the time derivative can be moved inside the limits of integration. That’s because the boundaries aren’t dependent on time! So the continuity equation can be re-written as: ZZZ ∂ ZZ ρ dV + nˆ · ρU~ dS = 0 (2.3) ∂t Vs Ss Note that when moving the time derivative within the integral, we change it to a partial deriva- tive with respect to time. That’s because the integral “kills” the spacial dependence density may have when you integrate in space, so there is only a (possible) time dependency remaining. By moving into the integral, there still may be a spatial dependency on the density, so we must be clear in that it’s a partial derivative. Another tool we can use is the divergence theorem, also known as Gauss’s theorem. It relates the flux of a vector field through a surface to the change of the vector field within the volume bound by that surface. In mathematical terms, we can express this as: ZZZ ZZ ∇ · F~ dV = nˆ · F~ dS (2.4)
V S By applying equation 2.4 to the equation 2.3, we can now write it as: ZZZ d ZZZ ρ dV + ∇ · ρU~ dV = 0 dt Vs Vs
Intro to Fluids Notes 29 C. P. Byers 2016 CHAPTER 2. CONTINUITY AND MOMENTUM
Since both integrals apply over the same volume, they can be combined: ZZZ ∂ρ + ∇ · ρU~ dV = 0 ∂t Vs We see that this integral will be zero. Since the volume in which we integrate over is arbitrary (think: you can define a control volume however you want) then it will be zero no matter what boundary of integration is chosen. This in turn means the integrand itself must be zero, giving us: ∂ρ + ∇ · ρU~ = 0 ∂t Expanding out the dot product (a good exercise to practice your vector calculus skills) gives us: ∂ρ + U~ · ∇ρ + ρ ∇ · U~ = 0 ∂t We can make one more simplification by utilizing the material derivative (which we introduced in equation 1.12) to get the final differential form of the continuity equation: Dρ + ρ ∇ · U~ = 0 (2.5) Dt −with− D ∂ = + U~ · ∇ Dt ∂t 2.1.2 Example: continuity on a nozzle We know how to do a simple mass balance from the previous chapter. Let’s slightly modify a previous example (shown in figure 2.1) and apply the continuity equation to investigate the behavior of the system. We previously assumed a steady, constant density flow to solve for the max velocity at the outlet. Instead, we now have values prescribed at the inlet and outlet, then apply equation 2.1 to gain some insight into this system. First, let’s assume we know the velocity profiles at the inlet (parabolic) and exit (triangular), the depth is 1m into the page, and we’re given the density at the inlet and exit. What is happening to the mass of the system? d ZZZ ZZ ρ dV + nˆ · ρU~ dS = 0 dt volume surface The first term is unknown, while the second term is made of variables we have. The sum of the two should be zero, so it seems we’re good to go (one equation, one unknown). Plugging in the velocity profiles and densities: d ZZZ ZZ ρ dV = − nˆ · ρU~ dS dt volume surface ZZ ZZ = − nˆ · ρU~ dS − nˆ · ρU~ dS
inlet outlet Z 1 Z 0.5 Z 1 Z 0.375 2 8 = − 2 ∗ (−ˆi) · 5ρin 1 − 4y ˆi dy dz − 2 ∗ (ˆi) · 10ρout 1 − y ˆi dy dz 0 0 0 0 3
Intro to Fluids Notes 30 C. P. Byers 2016 CHAPTER 2. CONTINUITY AND MOMENTUM
Figure 2.1: modified example for applying continuity equation
Let’s note a few things at this point. First, I’ve performed the integration in y over half the area because it is a symmetric profile, thus there is an additional 2 in each integral. Second, I’ve put in the unit normals, −ˆi in the inlet, and ˆi in the outlet. Third, I’ve specified the unit vector direction of the velocity, which is ˆi in both the inlet and outlet. Continuing the math:
d ZZZ Z 0.5 Z 0.375 8 ρ dV =1 ∗ 2 ∗ 5 ∗ 1.125 ∗ 1 − 4y2 dy − 1 ∗ 2 ∗ 10 ∗ 1 ∗ 1 − y dy dt 0 0 3 volume 0.5 0.375 4 3 4 2 =11.25 y − y − 20 y − y 3 0 3 0 =3.75 − 3.75 =0
So we find that the time rate of change in the overall mass in the system is zero. The system is not accumulating or losing mass! We refer to this type of situation as a steady flow, where the system isn’t changing in time. In this instance, we had a density that was higher at the inlet than the outlet, so there is obviously some sort of density gradient within the system. However, because we’re doing a control volume analysis, we don’t care about the exact details of the system within the boundaries. In fact we can’t even solve for the details within the boundaries - we only know the overall change within the system (in this example, 0). Using a control volume, the only detail we have (or could potentially solve for) is the fluxes at the boundaries!
Intro to Fluids Notes 31 C. P. Byers 2016 CHAPTER 2. CONTINUITY AND MOMENTUM
2.2 Momentum Balance
Just as we did with density, lets utilize another quantity, specific momentum b = ρU~ . Substi- tuting this for our intensive property in the RTT then gives the following: d ZZZ d ZZZ ZZ b dV = b dV + nˆ · bU~ dS dt dt V (t) Vs Ss d ZZZ d ZZZ ZZ ρU~ dV = ρU~ dV + nˆ · ρU~ U~ dS dt dt V (t) Vs Ss | {z } Lagrangian d d ZZZ ZZ mU~ = ρU~ dV + nˆ · ρU~ U~ dS dt dt | {z } V S Newton’s 2nd s s X d ZZZ ZZ F~ = ρU~ dV + nˆ · ρU~ U~ dS (2.6) dt Vs Ss This is a simplified form of the momentum equation. Some notes: 1. The LHS of equation 2.6 was obtained by noting that the integral of ρU~ over the volume in the Lagrangian view is the linear momentum of the entire system. That’s once again because no mass enters or exits the Lagrangian control volume. The rate of change of linear momentum is the true form of Newton’s Second Law, so we can re-write the LHS as the sum of the forces applied on the system.
2. The RHS of equation 2.6 has two parts: the first being the time rate of change of mo- mentum within the volume, the second being the net flux of momentum out of the control volume. We will expand on equation 2.6 in later chapters, and express the LHS in terms of pressure, surface, and body forces. Either way, we can see that RTT is a powerful tool. Without going into the details of deriving the forces on the system, we’ll use an example to show how these forces arise.
2.2.1 Example: force on a nozzle Let’s explore equation 2.6 by applying it to the previous problem! We know the inlet and outlet conditions, and we also know that the system is steady in time. This allows us to simplify equation 2.6 even further: 0 ZZZ ¨¨* ZZ X ~ d ~¨ ~ ~ F = ¨ρ¨U dV + nˆ · ρU U dS dt ¨¨ ¨Vs Ss ¨ X ZZ ZZ F~ = nˆ · ρU~ U~ dS + nˆ · ρU~ U~ dS
Ain Aout
Intro to Fluids Notes 32 C. P. Byers 2016 CHAPTER 2. CONTINUITY AND MOMENTUM
Figure 2.2: it’s the previous problem again!
We split the surface integral to show there is a momentum flux in and momentum flux out, and they must balance with possible forces on the system. To determine what forces we might have, let’s draw the control volume and list out what could be acting on it. I’ll do this C.V. for convenience:
By defining the C.V. in this fashion, it allows us to not worry about any forces that could be acting on the surface of the top and bottom of the C.V. If it coincided with the inner walls of the nozzle, there could be frictional forces from the fluid! However, by “cutting through” the walls, we now have some sort of external force on our system. Think: if there was a net force from the flow, the walls would want to move. By having the C.V go through the wall, we must account for that force acting on the wall to hold it in place. Also, there could be pressure forces at the inlet and outlet, but let’s just assume there isn’t for now. Finally, we will assume gravity is down, so no gravitational forces will be affecting the flow.
Intro to Fluids Notes 33 C. P. Byers 2016 CHAPTER 2. CONTINUITY AND MOMENTUM
With all this info, we can finally write our momentum balance as: ZZ ZZ F~ext = nˆ · ρU~ U~ dA + nˆ · ρU~ U~ dA
Ain Aout Now we need to plug in what we know and solve: ZZ ZZ 8 8 F~ = − ˆi · 1.125 ∗ 5 1 − 4y2 ˆi 1 − 4y2 ˆi dA + ˆi · 1.0 ∗ 10 1 − y ˆi 1 − y ˆi dA ext 3 3 Ain | {z } | {z } Aout | {z } | {z } nˆ·ρU~i U~i nˆ·ρU~o U~o Z 1 Z 0.5 Z 1 Z 0.375 64 16 = − 2 1.125 ∗ 5 16y4 − 8y2 + 1 ˆi dy dz + 2 1 ∗ 10 y2 − y + 1 ˆi dy dz 0 0 0 0 9 3 Z 0.5 Z 0.375 64 16 = − 11.25 16y4 − 8y2 + 1 ˆi dy + 20 y2 − y + 1 ˆi dy 0 0 9 3 0.5 0.375 16 5 8 3 64 3 8 2 = − 11.25 y − y + y ˆi + 20 y − y + y ˆi 5 3 0 27 3 0 = − 3ˆi + 2.5ˆi F~ext = − 0.5ˆi, 0 ˆj, 0 kˆ N It looks like the overall force balance was only in the x-direction, and has a negative value. Also note the units; they’re a force as expected. We didn’t carry it through each step, but you should see that they would work out from (kg/m3) ∗ (m/s) ∗ (m/s) ∗ (m2) to give you kg ∗ m/s2, or Newtons.
We should expect the force to only be in the x-direction, as that’s the only direction flow is in. What about the negative value? That signifies the external force on the control volume must be applied in the negative x-direction, or towards the left side of the page. Does that make sense? Let’s think about a nozzle on the end of a hose. The flow is slower in the body of the hose, then reaches the entrance of the nozzle, accelerates, and exits out the end of the nozzle. If there weren’t threading holding the nozzle into place, it would want to pop off and fly away from the hose. It therefore requires an external force in the opposite direction of the flow to hold it on. This is exactly what we found in this example!
The most complicated part (for me) when it comes to a momentum balance is remembering the dot products. This was a quasi-one dimensional problem (no balance needed for the y- or z-components), so it was pretty straightforward. Introducing additional directions can make things a little complicated.
2.2.2 Example: Balance with angled velocities Let’s do one last example with multiple directions of velocity. The previous example was a straightforward application of the momentum equations because there was no ambiguity over the direction of flux or the component of momentum. This example will show how you need to think about what components of the vector apply to what terms in the equation.
Intro to Fluids Notes 34 C. P. Byers 2016 CHAPTER 2. CONTINUITY AND MOMENTUM
Suppose we have a simple square duct as shown in figure 2.3. We desire to determine the
Figure 2.3: flow where the velocity has two components. outflow velocity and balance of forces on the system. We will assume that the flow is steady, has uniform inflow and outflow conditions, and has no contributions from pressure.
Start by drawing a control volume:
Once again, I’ve drawn the C.V. in a way that allows us to not worry about possible surface forces. If the C.V. had coincided with the inner walls, we would need to think about what is happening on the surface of the C.V. where the fluid is interacting with it. Starting with the continuity equation, we should apply the integral form, since this is a C.V. application. Recall, the integral approach allows us to look at inflow and outflow conditions while “glossing over” the details of the flow. The differential form would require us to know the flow at all locations in the problem.
Intro to Fluids Notes 35 C. P. Byers 2016 CHAPTER 2. CONTINUITY AND MOMENTUM
Since we are steady, we can simplify equation 2.1 to get:
ZZZ ¨* 0 ZZ d ¨¨ ¨ ρ dV + nˆ · ρU~ dS =0 dt¨¨ ¨ volume surface ZZ ZZ nˆ · ρU~ dA + nˆ · ρU~ dA =0
Ain Aout Fortunately, we have constant areas, constant density, and velocities that are constant. This allows considerable simplification. However, we have to be careful about the unit normal for the surface and the direction of flow. For the outlet: m U~ = U ˆi, 0 ˆj, 0 kˆ andn ˆ = ˆi o o s
Therefore, at the outlet,n ˆ · U~o = Uo. The inlet is a little more complicated. However, we just need to break the flow out into its components: m U~ = |U | cos 60ˆi, |U | sin 60 ˆj, 0 kˆ andn ˆ = −ˆi i i i s
So at the inlet,n ˆ · U~i = −Ui cos 60. We then can solve:
−ρ ∗ 10 ∗ cos 60 ∗ 1 + ρ ∗ Uo ∗ 1 =0 m U =5 o s Continuity tells us that the mass flow in must balance the mass flow out (because it is steady), and only the x-component of velocity contributed to this mass flux. That’s because there isn’t a surface in which the y-component of velocity could enter the system. Now to momentum, we simply apply the same treatment to the steady momentum equation. We know the inflow and outflow velocities, so let’s plug them in: 0 ZZZ ¨¨* ZZ X ~ d ¨~¨ ~ ~ F = ¨ρU dV + nˆ · ρU U dS dt ¨¨ ¨Vs Ss ¨ZZ ZZ F~ext = nˆ · ρU~i U~i dA + nˆ · ρU~o U~o dA
Ai Ao √ √ F~ext =ρ ∗ − ˆi · 5ˆi, 5 3 ˆj, 0 kˆ 5ˆi, 5 3 ˆj, 0 kˆ ∗1 + ρ ∗ ˆi · 5ˆi, 0 ˆj, 0 kˆ 5ˆi, 0 ˆj, 0 kˆ ∗1 | {z } | {z } | {z } U~i | {z } U~o nˆ·U~i nˆ·U~o √ F~ext =ρ ∗ −5 ∗ 5ˆi, 5 3 ˆj, 0 kˆ + ρ ∗ 5 ∗ 5ˆi, 0 ˆj, 0 kˆ √ F~ext = 0ˆi, −25 3ρ ˆj, 0 kˆ
All we have is a force in the y-direction! The momentum flux in the x-direction balances out so there is no resultant force (think - same area, density, and velocity at the inlet and outlet in the
Intro to Fluids Notes 36 C. P. Byers 2016 CHAPTER 2. CONTINUITY AND MOMENTUM x-direction). However, the y-direction has a force holding the duct in place. That is because there is a net flux into the C.V. that carries y-momentum. Being diligent with your dot product is very important when dealing with momentum fluxes.
Here’s another way to think about momentum vs. mass flux.
• MASS: The velocity dotted with the surface normal provides the flux itself. It carries with it certain properties. In the case of continuity, we’re looking at a mass per unit volume, which is a scalar. That means it has a value at a point. Therefore, for continuity, it’s like we’re carrying an amount of mass through the surface, and it’s dependent on the velocity going into the surface.
• MOMENTUM: We use the same velocity dotted with the surface normal to provide the flux. No matter what it is we are “fluxing,” it is given a magnitude ofn ˆ · U~ . For momentum, we’re fluxing some momentum per unit volume (ρU~ now), which is a vector quantity. If there was no velocity normal to the surface which we pass through, then there would be no flux, thus no momentum being carried into the C.V. However, with a flux into the surface, it carries the momentum of the fluid into it. Think: a small particle just on the outside of the C.V can have x-, y-, and z-momentum. An infinitesimally small amount of time later, it will have crossed the control surface (thanks to the flux into it), but still carry its momentum.
Big wall of text, I know, but I hope there is a bit of insight in it for you. The point I’m trying to convey is that for our example, only the x-component of velocity carried mass into the system. But that same component is responsible for the flux of any parameter we want to look at. This means that, for momentum, a y-component of velocity will contribute to the force balance even though it doesn’t contribute to the flux.
Intro to Fluids Notes 37 C. P. Byers 2016 Chapter 3
The Momentum Equation
3.1 Integral & Differential momentum equation
Our work with the momentum equation thus far has been limited to the integral form, and a simplified one at that. There are a number of forces that can be applied to a fluid particle, so lets break down the few that are common in fluids. We know the pressure acting on a face is the magnitude of the pressure integrated over the area, and acts in the opposite direction of the surface normal. We represent this as: ZZ F~pressure = − nPˆ dS (3.1) S Note that the pressure is a scalar, but when acting on the normaln ˆ, we get a vector. Additionally, the minus sign indicates that a pressure is pushing on a surface, since it’s direction is opposite the surface normal. Another force to consider is the gravitational force, which is just a body force. This means it acts throughout the body (not just on the surface like pressure did). We know it is proportional to the weight, so we take an infinitesimal volume, calculate the weight, and sum them up to get the total gravitational force: ZZZ F~gravity = ρ~gdV (3.2) V Note that the direction of the force is set by the gravitational vector. This is why we ignore gravitational effects when considering flow in the x-direction: gravity often applies in the y- or z-direction (under traditional coordinate systems). The last force we should consider (for now) is the viscous force. We’ve been neglecting it thus far, and for good reason. It likes to make things a bit more complex. However, it is a very important component in most fluid flow applications. For now, we can incorporate equations 3.1 and 3.2 into the simplified momentum equation (equation 2.6) to get: d ZZZ ZZ ZZ ZZZ ρU~ dV + (ˆn · ρU~ )U~ dS = − nPˆ dS + ρ~gdV + F~ (3.3) dt viscous V S S V I’ve neglected the external force that acts through control volumes. That’s because this analysis is only going to pertain to small fluid particles, and not through solid objects in the system.
Intro to Fluids Notes 38 C. P. Byers 2016 CHAPTER 3. THE MOMENTUM EQUATION
The viscous component is one that we could spend weeks discussing at a graduate level, going into the form of the viscous stress tensor, whether the fluid is isotropic or not, and considering compressibility issues. That’s not productive at the introductory level, and only serves to confuse. For the most part, we will allow for a simple treatment of viscous effects. If we consider that viscous effects are shears and stresses on a surface, we can conceptually think of the viscous component of force as being the sum of these forces over the surface of the control volume. In other words, we would have: ZZ F~viscous = nˆ · T v dS (3.4) S
I’ve not said anything about the form of T v, but lets just call it some viscous force tensor that acts on the surface. Now we substitute equation 3.4 into 3.3 to get: d ZZZ ZZ ZZ ZZZ ZZ ρU~ dV + (ˆn · ρU~ )U~ dS = − nPˆ dS + ρ~gdV + (ˆn · T ) dS (3.5) dt v V S S V S Equation 3.5 is the integral form of the momentum equation in a fluid flow! In the previous chapter there was some bonus material that took the integral form of the continuity equation to the differential form, and we will do the same here. We apply a lovely math trick called the divergence theorem, which relates surface fluxes of a vector to a change in the volume of that vector. We start by re-writing the pressure term in the form of a dot product: ZZ ZZ − nPˆ dS = − (ˆn · P I) dS
S S where I is the identity matrix. I’ve written it in this fashion to help show that it too is a tensor, but a simple one at that. Think about what happens if you take the unit normaln ˆ and dot it with the identity matrix: you get a vector of each component of the normal, or simply just get nˆ back! Do note that the magnitude ofn ˆ below is not unity, but the idea is all the same. P 0 0 nˆ · P I = ˆi, ˆj, kˆ · 0 P 0 = Pˆi, Pˆj, P kˆ =nP ˆ 0 0 P By recasting the pressure term in this form, we can now apply the divergence theorem to the second, third, and fifth terms in our momentum equation. The divergence theorem for a unit normaln ˆ and vector F~ can be expressed as: ZZ ZZZ nˆ · F~ dS = ∇ · F~ dV
S V so equation 3.5 can be written: ZZZ ∂ ZZZ ZZZ ZZZ ZZZ ρU~ dV + ∇ · (ρU~ )U~ dV = − ∇ · P I dV + ρ~gdV + ∇ · T dV ∂t v V V V V V
Intro to Fluids Notes 39 C. P. Byers 2016 CHAPTER 3. THE MOMENTUM EQUATION
Because we’re using a fixed control volume, the derivative on the first term was able to be brought inside (the limits of integration don’t depend on time, so there are no additional terms introduced by moving it in). Now, since these integrals are all evaluated over the same control volume, we can group them together:
ZZZ ∂ ρU~ + ∇ · (ρU~ )U~ + ∇ · P I − ρ~g − ∇ · T dV = 0 ∂t v V Just like we saw with the continuity equation, we see that the integral is zero. Since the volume of integration is arbitrary, the integrand must always be zero no matter what CV is chosen. This means: ∂ ρU~ + ∇ · (ρU~ )U~ + ∇ · P I − ρ~g − ∇ · T = 0 ∂t v We can simplify the pressure term much in the same way we had made it a tensor:
P 0 0 ∂ ∂ ∂ ∂P ∂P ∂P ∇ · P I = , , · 0 P 0 = , , = ∇P ∂x ∂y ∂z ∂x ∂y ∂z 0 0 P
So rearranging the terms, we get: ∂ ρU~ + ∇ · (ρU~ )U~ = −∇P + ρ~g + ∇ · T (3.6) ∂t v Equation 3.6 is the differential form of the momentum equation in a fluid flow! This is almost the same as the Navier-Stokes equations, but we need to do a little bit of simplifying first. Starting by expanding out the LHS derivatives, we get: ∂ ∂ U~ ρ + ρ U~ + (ρU~ · ∇)U~ + (∇ · ρU~ )U~ = −∇P + ρ~g + ∇ · T ∂t ∂t v This expansion may seem confusing, but if you write it all out in terms of each derivative and each component of velocity, you’ll find this is indeed the correct form. Do it yourself to practice your vector calculus skills! Then, grouping together some terms:
∂ ∂ U~ ρ + (∇ · ρU~ ) + ρ U~ + (ρU~ · ∇)U~ = −∇P + ρ~g + ∇ · T ∂t ∂t v
Do you see something unique about the term in brackets? This is just the differential form of the continuity equation! Since the continuity equation tells us the bracketed term is always zero, we can drop it to achieve
∂U~ ρ + ρ(U~ · ∇)U~ = −∇P + ρ~g + ∇ · T (3.7) ∂t v D ∂ ~ We can further simplify this by utilizing the material derivative, Dt = ∂t +U ·∇, and by assuming a form for the viscous stresses. By assuming the fluid is incompressible, we can represent the
Intro to Fluids Notes 40 C. P. Byers 2016 CHAPTER 3. THE MOMENTUM EQUATION