Advanced Mathematics for Engineers and Scientists/Scale Analysis

Scale Analysis

edit

In the chapter on nondimensionalization, variables (both independent and dependent) were nondimensionalized and at the same time scaled so that they ranged from something like   to  . "Something like   to  " is the mentality.

Scale analysis is a tool that uses nondimensionalization to:

  • Understand what's important in an equation and, more importantly, what's not.
  • Gain insight into the size of unknown variables, such as velocity or temperature, before (even without) actually solving.
  • Simplify solution process (nondimensional variables ranging for   to   are very amiable).
  • Reduce dependence of the solution on physical parameters.
  • Allow higher quality numeric solution since variables that are of the same range maintain accuracy better on a computer.

Scale analysis is very common sense driven and not too systematic. For this reason, and since it is somewhat unnatural and hard to describe without endless example, it may be difficult to learn.

Before going into the concept, we must discuss orders of magnitude.

Orders of Magnitude and Big O Notation

edit

Suppose that there are two functions   and  . It is said (and notated) that:

 
 
Visualization of the limit superior and limit inferior of f(x) as x increases without bound.

It's worth understanding fully this possibly obscure definition.  , short for limit superior, is similar to the "regular" limit, only it is the limit of the upper bound. This concept, alongside limit inferior, is illustrated at right. This intuitive analysis will have to suffice here, as the precise definition and details of these special limits are rather complicated.

As a further example, the limits of the cosine function as   increases without bound are:

 
 
 

With this somewhat off topic technicality hopefully understood, the statement that:

 

Is saying that near  , the order (or size, or magnitude) of   is bounded by  . It's saying that   isn't crazily bigger then   near  , and this is precisely notated by saying that the limit superior is bounded (the "regular" limit wouldn't work since oscillations would ruin everything). The notation involving the big O is rather surprisingly called "big O notation", it's also known as Landau notation.

Take, for example,   at different points:

 
 

In the first case, the   term will easily dominate for large  . Even if the coefficient on that term is very near zero, for large enough x that term will dominate. Hence, the function is of order   for large  .

In the second case, near   the first two terms are limiting to zero while the constant term,  , isn't changing at all. It is said to be of order  , notated as order   above. Why O(1) and not O(2)? Both are correct, but O(1) is preferred since it is simpler and more similar to  .

This may put forth an interesting question: what would happen if the constant term was dropped? Both of the remaining terms would limit to zero. Since we are looking at x near zero and not at zero,

 

This is because as   approaches zero, the quadratic term gets smaller much faster than the linear term. It would also be correct, though kind of useless, to call the quantity O(1). It would be incorrect to state that the quantity is of order zero since the limit would not exist, not under any circumstance.

As implied above,   is by no means a unique function. All of the following statements are true, simply because the limit superior is bounded:

 
 
 
 

While technically correct, these are very misleading statements. Normally, the simplest, smallest magnitude function g(x) is selected.

Before ending the monotony, it should also be mentioned that it's not necessary for   to be smaller then   near  , only the limit superior must exist. The following two statements are also true:

 
 

But again, these are misleading and it's most proper to state that:

 

A relatively simple concept has been beaten to death, to the point of being confusing. It'll be more clear in context, and it'll be used more in later chapters for different purposes.

Scale Analysis on a Two Term ODE

edit

Previously, the following BVP was considered:

 
 
 

Wipe away any memory of solving this simple problem, the concepts of this chapter do not look at the actual solution. The variables are nondimensionalized by defining new variables:

 

So that   is scaled by  , and   is scaled by an unknown scale  . Now note that, thanks to the scaling:

 

These are both true near zero.   will be O(1) (this is read "of order one") when its scale is properly chosen. Using the chain rule, the ODE was turned into the following:

 

Now, if both   and   are of order one, then it is reasonable to assume that, at least at some point in the domain of interest:

 

This is by no means guaranteed to be true, however it is reasonable.

To identify the velocity scale, we can set the derivative equal to one and solve. There is nothing "illegal" about purposely setting the derivative equal to one since all we need is some equation to specify an unknown constant,  . There is much freedom in defining this scale, because what this constant is and how it's found has no effect on the validity of the solution of the BVP (as long as it's not something stupid like  ).

 

Since:

 

It follows that:

 

This velocity scale may be thought of as a characteristic velocity. It's a number that shows us what to expect the velocity to be like. The velocity could actually be larger or smaller, but this gives a general idea. Furthermore, this scale tells us how changing various physical parameters will affect the velocity; there are four of them summarized into one constant.

Compare this result to the coefficient (underlined) on the complete solution, with u dimensional and   nondimensional:

 

They differ by a factor of  , but they are of the same order of magnitude. So, indeed,   characterizes the velocity.

Words like "reasonable" and "assume" were used a few times, words that would normally lead to the uglier word "approximate". Relax: the BVP itself hasn't been approximated or otherwise violated in any way. We just used scale analysis to pick a velocity scale that:

  • Turned the ODE into something very easy to look at:  
  • Gained good insight into what kind of velocity the solution will produce without finding the actual solution.

Note that a zero pressure gradient can no longer show itself in the ODE. This is by no means a restriction, since a zero pressure gradient would result in a zero velocity scale which would unconditionally result in zero velocity.

Scale Analysis on a Three Term PDE

edit

The last section was still more of nondimensionalization then it was scale analysis. To just begin getting deeper into the subject, we'll consider the pressure driven transient parallel plate IBVP, identical to the above only with a time component:

 
 
 
 

See the change of variables chapter to recall the origins of this problem. Scales are defined as follows:

 

Again, the scale on   is picked to make it an order one quantity (based on the BCs), and the scales on   and   are just letters representing unknown quantities.

The chain rule has been used to define derivatives in terms of the new variables. Instead of taking this path, recall that, given variables   and   (for the sake of example) and their respective scales   and  :

 

So that makes things much easier. Performing the change of variables:

 

In the previous section, there was one unknown scale and one equation, so the unknown scale could be easily and uniquely isolated. Now, there are two unknown scales but only one equation (no, the BCs/IC will not help). What to do?

The physical meaning of scales may be taken into consideration. Ask: "What should the scales represent?"

There is no unique answer, but good answers for this problem are:

  •   characterizes the steady state velocity.
  •   characterizes the response time: the time to establish steady state.

Once again, these are picked (however, for this problem there really aren't any other choices). In order to determine the scales, the physics of each situation is considered. There may not be unique choices, but there are best choices, and these are the "correct" choices. An understanding of what each term in the PDE represents is vital to identifying these "correct" choices, and this is notated below:

 

For the velocity scale, a steady state condition is required. In that case, the time derivate (acceleration) must small. We could obtain the characteristic velocity associated with a steady state condition by requiring that the acceleration be something small (read: zero), stating that the second derivative is  , and solving:

 

This is the same as the velocity scale found in the previous section. This is expected since both situations are describing the same steady state condition. The neglect of acceleration equates to what's called a balance between driving force and viscosity since driving force and viscosity are all that remain.

Getting the time scale may be a little more elusive. The time associated with achieving steady state is dictated by the acceleration and the viscosity, so it follows that the time scale may be obtained by considering a balance between acceleration and viscosity. Note that this statement has nothing to do with pressure, so it should apply to a variety of disturbances. To balance the terms, pretend that the derivatives are   quantities and disregard the pressure:

 

This is a statement that:

  • The smaller the viscosity, the longer you wait for steady state to be achieved.
  • The smaller the separation distance, the less you wait for steady state to be achieved.

Hence, the scale describes what will affect the transient time and how. The results may seem counterintuitive, but they are verified by experiment if the pressure is truly a constant capable of combating possibly huge viscosity forces for a high viscosity fluid.

Compare these scales to constants seen in the full, dimensional solution:

 

The velocity scales match in order of magnitude, nothing new there. But examine the time constant (extracted from the exponential factor) and compare to the time scale:

 

They are of the same order with respect to the physical parameters, though they'll differ by nearly a factor of 10 when  . This result is more useful then it looks. Note that after determining the velocity scale, all three terms of the equation may have been considered to isolate a time scale. This would've been a poor choice that wouldn't have agreed with the time constant above since it wouldn't be describing the required settling between viscosity and acceleration.

Suppose that, for some problem, a time dependent PDE is too hard to solve, but the steady state version is easier and it is what you're interested in. A natural question would be: "How long do I wait until steady state is achieved?"

The time scale provided by a proper scale analysis will at least give an idea. In this case, assuming that the first term of the sum in the solution is dominant, the time scale will overestimate the response time by nearly a factor of 10, which is priceless information if you're otherwise clueless. This overestimate is actually a good (safe) overestimate, it's always better to wait longer and be certain of the steady state condition. Scales in general have a tendency to overestimate.

Before closing this section, consider the actual nondimensionalization of the PDE. During the scale analysis, the coefficients of the last two terms were equated and later the coefficients of the first two terms were equated. This implies that the nondimensionalized PDE will be:

 

And this may be verified by substituting the expressions found for the scales into the PDE. This dimensionless PDE, too, turned out to be completely independent of the physical parameters involved, which is very convenient.

Heat Flow Across a Thin Wall

edit

Now, an important utility of scale analysis will be introduced: determining what's important in an equation and, better yet, what's not.

As mentioned in the introduction to the Laplacian, steady state heat flow in a homogeneous solid may be described by, in three dimensions:

 

Now, suppose we're interested in the heat transfer inside a large, relatively thin wall, with differing temperatures (not necessarily uniform) on different sides of the wall. The word 'thin' is crucial, write it down on your palm right now. You should suspect that if the wall is indeed thin, the analysis could be simplified somehow, and that's what we'll do.

Not caring about what happens at the edges of the wall, a BVP may be written:

 
 
 

  is the thickness of the wall (implication:   is the coordinate across the wall). Suppose that the wall is a boxy object with dimensions  . Using the box dimensions as scales,

 

Only the scale of   is unknown. Substituting into the PDE,

 
 

Note that the scale on   divided out — so a logical choice must be made for it's scale; in this case it'd be an extreme boundary value (ie, the maximum value of  ), let's say it's chosen and taken care of. Thanks to this scaling and the rearrangement that followed, we may get a good idea of the magnitude of each term in the equation:

 

Each derivative is approximately  . But what about the squared ratio of dimensions? This is called a dimensionless parameter. Look at your palm now (the one you don't write with), recall the word "thin". "Thin" in this case means exactly the same thing as:

 

And if the ratio above is much smaller then  , then the square of this ratio is even smaller. Our dimensionless parameter is called a small parameter. When a parameter is small, there are many opportunities to simplify analysis; the simplest would be to state that it's too small to matter, so that:

 

What was just done couldn't have been justified without scaling variables so that their derivatives are (likely)  , since you have no idea what order they are otherwise. We know that each derivative is hopefully  , but some of these   derivatives carry a very small factor. Only then can terms be righteously dropped. The dimensionless BVP becomes:

 
 
 

Note that it's still a partial differential equation (the   and   varialbes haven't been made irrelevant – look at the BCs). Also note that scaling on   is undone since it cancels out anyway (the scale could've still been picked as, say, a maximum boundary value). This problem may be solved very simply by integrating the PDE twice with respect to  , and then considering the BCs:

 
 
 

  and   are integration "constants". The first BC yields:

 
 

And the second:

 
 

The solution is:

 

It's just saying that the temperature varies linearly from one wall face to the other. It's worth noting that in practice, once scaling is complete, the hats on variables are "dropped" for neatness and to prevent carpal tunnel syndrome.

Words of Caution

edit
 
Failure of one dimensional flow approximation.

"Extreme caution" is more fitting.

In the wall heat transfer problem, we took the partial derivatives in   and   to be  , and this was justified by the scaling:  ,   and   are  , so the derivatives must be so as well. Right?

Not necessarily. That they're   is a linear approximation, however if the function   is significantly nonlinear with respect to a variable of interest, then the derivatives may not be as   as thought. In this problem, one way that this can happen is if the temperature at each wall face (the functions   and  ) have large and differing Laplacians. This will result in three dimensional heat conduction.

Examine carefully the image at right. Suppose that side length is ten times the wall thickness;   and   have zero Laplacians everywhere except along circles where temperatures suddenly change. At these locations, the Laplacian can be huge (unbounded if the sudden changes are discontinuities). This will suggest that the derivatives in question are not O(1) but much greater, so that these terms become important even though in this case:

 

Which is as required by the scale analysis: the wall is clearly thin. But apparently, the small thinness ratio multiplied by the large derivatives leads to significant quantities.

Both the exact solution and the solution to the problem approximated through scaling are shown at the location of a cutting plane. The exact solution shows at least two dimensional heat transfer, while the solution of the simplified solution shows only one dimensional heat transfer and is substantially different.

It's easy to see why the 1D approximation fails even without knowing what a Laplacian is: this is a heat transfer problem involving the diffusion of temperature, and the temperature will clearly need to diffuse along   near the sudden changes within the wall (can't say the same about the BCs since they're fixed).

The caption of the figure starts with the word "failure". Is it really a failure? That depends on what you're looking for, it may or may not be. Note that if the wall were even thinner and the sudden jumps not discontinuities, the exact and 1D solutions could again eventually become indistinguishable.