Showing posts with label inviscid. Show all posts
Showing posts with label inviscid. Show all posts

Tuesday, September 20, 2011

MrsDrPoe: Potential Flow, Part II

Good morning, and welcome to another Thesis Tuesday on the blog!  Today we'll be continuing our discussion of potential flow, looking at some problems better examined in cylindrical coordinates.


Although cylindrical coordinates are useful, transforming equations from Cartesian to cylindrical coordinates often results in some 'hairy' expressions.  For our purposes today, we'll need the definitions for the velocity potential function and the streamfunction in this new coordinate system:


Velocity Potential: vr = d/dr(PHI), vtheta = d/dtheta(PHI/r), vz = d/dz(PHI)


Streamfunction: vr = d/dtheta(PSI/r), vtheta = -d/dr(PSI)


Next, we'll apply these relations to a few potential flow scenarios.


Source and Sink


A source/sink is a flow radially outward/inward from/to a point at some volumetric flowrate, m.  We'll define the velocity components for this type of flow as:


vr = m/(2*pi*r) and vtheta = 0


For a source type of flow, m > 0; for a sink, m < 0.  We should also note that at r = 0, the velocity becomes infinite, which is physically impossible.  "Wait," you may be asking yourself, "If this flow is physically impossible, why do we care?"  The answer to this question is that you'll have to wait till next week to find out.  (Don't you just love cliff-hangers?)  Let's figure out the velocity potential and stream functions that govern a source (realizing that if we simply make m negative, we'll also have the functions that govern a sink):

Velocity Potential:


d/dr(PHI) = m/(2*pi*r)

int(1)dPHI = int(m/(2*pi*r))dr

PHI = 0.5*(m/pi)*ln(r) + c
(We can see that if we take the derivative of this function with respect to theta, we get zero; therefore, this expression also matches the second constraint below.)

d/dtheta(PHI/r) = 0


Streamfunction:


d/dtheta(PSI/r) = m/(2*pi*r)

int(1)dPSI = int(m/(2*pi))dtheta

PSI = 0.5*(m/pi)*theta + c
(We can see that if we take the derivative of this function with respect to r, we get zero; therefore, this expression also matches the second constraint below.)

-d/dr(PSI) = 0


Vortex


It seems odd that we could consider a vortex to be irrotational; however, we must remember that rotation refers to the orientation of a fluid element and not the path followed by the element.  An irrotational vortex is called a free vortex, while a rotational vortex is called a forced vortex.  (Recall that the velocity potential function is only valid for irrotational flows.)  A combined vortex is one with a forced vortex at its core and a free vortex outside its core.


The property of circulation is often associated with vortex motion.  Circulation, GAMMA, is defined as the line integral of the tangential component of the velocity taken around a closed curve in the flow field.  The velocity potential and streamfunctions for free vortices are often written in terms of the circulation of the flow*.


For a free vortex, we will define the following velocity components:


vr = 0 and vtheta = K/r


where K is the magnitude of the velocity.


Velocity Potential:


d/dtheta(PHI/r) = K/r

int(1)dPHI = int(K)dtheta
PHI = K*theta + c
(Again the derivative of this function with respect to r matches the second matching condition.)

d/dr(PHI) = 0


Streamfunction:


d/dr(PSI) = K/r

int(1)dPSI = -int(K/r)dr

PSI = -K*ln(r) + c
(The derivative of this function with respect to theta matches the second matching condition.)

d/dtheta(PSI/r) = 0



Cool, huh? Remember that if we plot constant values of PHI and PSI, we will obtain a flow net that helps us visualize the flow.  Next week, we'll do some fun things with the results from today and last week. 

*PHI = (0.5*GAMMA*theta)/pi and PSI = -(0.5*GAMMA*ln(r))/pi

Tuesday, September 13, 2011

MrsDrPoe: Potential Flow, Part I

It's Thesis Tuesday on the blog, and today we'll be going down a bit of a rabbit trail involving Potential Flow.  

If we make the assumption that a flow field is irrotational, rotation (and vorticity) in the field is equal to zero and d/dx(v) = d/dy(u), d/dy(w) = d/dz(v), and d/dz(u) = d/dx(w).  Irrotational flow occurrs in regions far from surfaces (inviscid flow); the Bernoulli Equation holds true between any two points in the flow field, not just in two points along a streamline.

We will define some scalar function PHI as the velocity potential function: V = Grad(PHI) or u = d/dx(PHI), v = d/dy(PHI), w = d/dz(PHI).  Applying these definitions for velocity to our relations for irrotational velocity fields (i.e. d/dx(d/dy(PHI)) = d/dx(d/dy(PHI))), we can see that this function does describe irrotational flow.  If we apply the velocity potential function to the continuity equation, we end up with: 

d/dx(d/dx(PHI)) + d/dy(d/dy(PHI)) + d/dz(d/dz(PHI)) = 0


This expression is known as the Laplace Equation.  Inviscid, incompressible, irrotational flow governed by the Laplace Equation is often called potential flow.  Lines of constant PHI are called equipotential lines.


The streamfunction, PSI, is another special two-dimensional function defined as: u = d/dy(PSI), v = d/dx(PSI).  The value of PSI is constant along streamlines.  Applying this to the continuity equation gives:


d/dx(d/dx(PSI)) + d/dy(d/dy(PSI)) = 0


which is the 2D Laplace Equation.  It should be apparent that the streamfunction and the velocity potential function are related.  Streamlines and equipotential lines are actually perpendicular to each other; they form a flow net that can be used to help visualize the flowfield.


Let's look at a two basic potential flows:


Uniform Flow


For uniform flow with constant velocity (U) in the x-direction:


To determine the potential function for this flow, we must examine our relationships between PHI, u, and v.  Integration will be necessary, and it is crucial that the results from integration both parts of the definition must match.

d/dx(PHI) = U

int(1)dPHI = int(U)dx

PHI = Ux + c 
 (If we take the derivative of this function with respect to y, we obtain zero; thus this function holds true for this flow.)

d/dy(PHI) = 0 

To determine the streamfunction we examine the relationships between PSI, u, and v.  Again integration and obtaining matching results are necessary.


d/dy(PSI) = U

int(1)dPSI = int(U)dy

PSI = Uy+c 
(Again this function matches the additional constraint below.)

d/dx(PSI) = 0


For uniform flow with constant velocity alpha degrees from the horizon:


Potential function:


d/dx(PHI) = U*cos(alpha)

int(1)dPHI = int(U*cos(alpha))dx

PHI = U*cos(alpha)*x + c 

d/dy(PHI) = U*sin(alpha)

int(1)dPHI = int(U*sin(alpha))dy

PHI = U*sin(alpha)*y + c

PHI = U*cos(alpha)*x + U*sin(alpha)*y 
(This function matches both constraints placed on the flow.)


Stream function:


d/dx(PSI) = U*sin(alpha)

int(1)dPSI = int(U*sin(alpha))dx

PSI = U*sin(alpha)*x + c 

d/dy(PSI) = U*cos(alpha)

int(1)dPSI = int(U*cos(alpha))dy

PSI = U*cos(alpha)*y + c

PSI = U*sin(alpha)*x + U*cos(alpha)*y
(This function also matches both constraints placed on the flow.)




Now that we've determined the velocity potential function and the streamfunction for these flows, we can use this knowledge to examine any potential flow.  Next week, we'll look at a couple of flow examples in cylindrical coordinates, but until then, happy studying!

Tuesday, September 6, 2011

MrsDrPoe: Conservation of Momentum, Part VI

Good morning to you all and welcome to Thesis Tuesday on the blog!  Today we'll be discussing the last segment of the conservation of momentum equation: an example using the inviscid reduction of its differential form (i.e. the Bernoulli Equation).

Example: Water flows from the faucet on the first floor of the building shown in the figure below with a maximum velocity of 20 ft/s.  For steady, inviscid flow, determine the maximum water velocity from the basement faucet and from the faucet on the second floor (assume each floor is 12 feet tall).

Given: V1max = 20 ft/s, hf = 12 ft, hgf = 4 ft, gammawater = 62.4 lbf/(ft*ft*ft), rhowater = 1.94 slugs/(ft*ft*ft)

Find: V2max, Vbmax

Assumptions: inviscid, steady, incompressible flow along a streamline, no outside forces, water exits faucet as a free jet

Solution:

Because of our assumptions, we can immediately employ the Bernoulli equation between each set of two points without consideration for the continuity equation, etc.


a) Between floors 1 and 2


p1 + 0.5*rhowater*V1*V1 + gammawater*z1 = p2 + 0.5*rhowater*V2*V2 + gammawater*z2


We can rearrange the equation algebraically to solve for V2 (the velocity from the second floor faucet):


V2 = sqrt((p1 - p2 + 0.5*rhowater*V1*V1 + gammawater*z1 - gammawater*z2)/0.5*rhowater)


Since water from the faucets exits like a free jet, we are essentially saying that the pressure at each exit is atmospheric (0 gage pressure); thus:


p1 = p2 = 0 psi


Since we are given information about the height between the floors:


z1 = 0 ft, z2 = 12 ft


Plugging these and our Given values in to our V2 expression, we find that the maximum velocity from the second floor faucet is: 19.28i ft/s.


The i indicates that this number is an imaginary number; since this number is impossible to achieve physically, we know that water will not flow from the upstairs faucet. 

b) Between floor 1 and the basement 

To determine the velocity from the basement faucet, we can use the manipulated equation above for V2, replacing the subscript 2 with the subscript b (i.e. using the basement values instead of the second floor values):

Vb = sqrt((p1 - pb + 0.5*rhowater*V1*V1 + gammawater*z1 - gammawater*zb)/0.5*rhowater)

Again the free jet assumption tells us:


p1 = pb = 0 psi


And the height between floors information yields:


z1 = 0 ft, zb = -12 ft


Plugging in all our values, we find that the maximum velocity from the basement faucet is: 34.23 ft/s.


That concludes our discussion on momentum.  You should now have the basic tools necessary to work a problem by employing the integral form of the momentum equation, the viscous differential form (Navier Stokes) of the momentum equation, and the inviscid differential form (Bernoulli Equation) of the momentum equation.  Feel free to revisit any of the previous equation derivations or example problems here, and until next time...happy studying!

Tuesday, August 30, 2011

MrsDrPoe: Conservation of Momentum, Part V

It's Thesis Tuesday on the blog, and today we'll be continuing our examination of the Conservation of Momentum equation, this time focusing on the inviscid reduction of its differential form.

If you recall, the difficulty with the differential momentum equation is that we need to define the stress terms. Previously, we obtained the following results:

d/dx(Sxx) + d/dy(Txy) + d/dz(Txz) = -d/dx(p) + mu*(d/dx(d/dx(u))+d/dy(d/dy(u)) + d/dz(d/dz(u)))

d/dx(Tyx) + d/dy(Syy) + d/dz(Tyz) = -d/dy(p) + mu*(d/dx(d/dx(v))+d/dy(d/dy(v)) + d/dz(d/dz(v)))

d/dx(Tzx) + d/dy(Tzy) + d/dz(Szz) = -d/dz(p) + mu*(d/dx(d/dx(w))+d/dy(d/dy(w)) + d/dz(d/dz(w)))

If we examine the case of inviscid flow, this means we are looking at an area where viscous effects are negligible (mu = 0). Generally this occurs in the far-field, i.e. in a region of the fluid far away from any walls or boundaries. This leaves us with:

d/dx(Sxx) + d/dy(Txy) + d/dz(Txz) = -d/dx(p)

d/dx(Tyx) + d/dy(Syy) + d/dz(Tyz) = -d/dy(p)

d/dx(Tzx) + d/dy(Tzy) + d/dz(Szz) = -d/dz(p)

So our stress tensor terms are ONLY related to changes in pressure. If we replace these new equalities in the differential form of the equation, we end up with a set of equations known as Euler's Equations. It is important to note, however, that this set is only valid for inviscid flows.

If we apply the assumptions of steady, incompressible flow with no outside forces acting on the fluid to Euler's Equations, we get:

u*d/dx(u) + v*d/dy(u) + w*d/dz(u) = gx - (1/rho)*d/dx(p)


u*d/dx(v) + v*d/dy(v) + w*d/dz(v) = gy - (1/rho)*d/dy(p)


u*d/dx(w) + v*d/dy(w) + w*d/dz(w) = gz - (1/rho)*d/dz(p)

Using a vector identity (which we won't discuss in further detail), and applying along a streamline (lines always parallel or tangent to the flow), we can further reduce this equation to:

0.5*V*V + (p/rho) + g*y = constant (along a streamline)

or: 0.5*V1*V1 + (p1/rho) + g*y1 = 0.5*V2*V2 + (p2/rho) + g*y2

This is Bernoulli's Equation, and it is written for two specific points along a streamline.

Restrictions:

Remember that this equation is only applicable to flows of fluids where the assumptions we made to derive the equation (steady, incompressible, inviscid, along a streamline, no outside forces) hold. It is CRUCIAL to realize that if the flow does not meet these qualifications, this simplified equation CANNOT be used!

If our flow cannot be treated as incompressible, but the other assumptions hold, we can modify the Bernoulli Equation so that it can still be used. For compressible gases, we can apply the ideal gas law to obtain:

0.5*V*V + y*g + R*T*ln(p) = constant (along a streamline)

For unsteady flows, we can modify the equation by the addition of a single term integrating the acceleration over a streamline:

0.5*rho*V1*V1 + p1 + rho*g*y1 = rho*int(d/dt(V))ds + 0.5*rho*V2*V2 + p2 + rho*g*y2

Physical Meaning:

The Bernoulli Equation is simply the mathematical statement of the principle "the work done on a particle by all forces acting on the particle is equal to the change of the kinetic energy of the particle." We can better see that if we look at each of the terms in the equation. As the particle moves, we see forces of pressure and gravity acting on it (the z*g and p/rho terms). This is directly connected to the amount of kinetic energy that the particle has (0.5*V*V).

If we multiply each term in the Bernoulli Equation by the density, rho:

0.5*rho*V*V + p + g*rho*y = constant (along a streamline)

we obtain the pressure form of the equation. Here p represents the thermodynamic pressure of the fluid as it flows (this pressure determines the state of a fluid, i.e. whether it is a gas or a liquid). This value is typically termed the static pressure of the fluid, since it could be measured by moving along with the fluid or being static in relation to the fluid. The third term is the hydrostatic pressure, which is associated with the hydrostatic pressure condition. The second term is called the dynamic pressure since it is associated with the velocity of the fluid.

The combination of the first two terms in the equation is the stagnation pressure. This pressure represents the conversion of all the kinetic energy into a pressure rise, which occurs at a stagnation point where the velocity is equal to zero. The streamline leading to a stagnation point is called a stagnation streamline. The sum of all three terms in this form of the Bernoulli Equation is known as the total pressure, which is constant along a streamline.

Often in Mechanical Engineering, the Bernoulli Equation will be written in head form; this form of the equation is particularly useful for pipe flow and can be derived by dividing each term in the original equation by the gravitational constant, g:

(p/gamma) + (0.5*V*V/g) + y = constant (along a streamline)

In this form, the pressure term is called the pressure head, which represents the height of a column of fluid needed to produce the pressure p. The velocity term is called the velocity head, which represents the vertical distance needed for the fluid to fall freely to reach the velocity V from rest. The height term is the elevation head, and it represents the potential energy of the fluid.


Next week we'll look at some very simple examples of how to employ the Bernoulli Equation. Stay tuned!