# Fluid Mechanics for Mechanical Engineers/Introduction
## Solids, Liquids and Gases

A fluid is composed of atoms and molecules. Depending on the phase of the fluid (gas,liquid or supercritical), the distance between the molecules shows orders of magnitude difference, being the largest in the gas phase and shortest in the liquid phase. As the distance between the molecules or the mean free path of the flowing medium approaches to the characteristic size of the flow device, the flow cannot be treated as continuum.
In a solid, molecules form a regular lattice and oscillate around an equilibrium point. At this state, there is a strong attraction between the molecules and kinetic energy of the molecules can not overcome this force in this phase of the matter. When enough energy is given to the molecules, e.g. by heating it, the matter melts and consequently becomes a liquid. The molecules gain kinetic energy as a result of added heat and start to move around in an irregular pattern. However, the density of liquids and solids, in other words the mean molecular distances at these two phases do not differ much from each other. When the liquid vaporizes and turns into the gas phase, the density drastically drops as the molecules starts to move freely between the intermolecular collisions.
| Solid | Liquid | Gas |
| High density | High density | Low density |
| Low intermolecular distance (typical˜0.3 nm) | Low intermolecular distance (typical˜0.3 nm) | High intermolecular distance (typical˜3 nm) |
| Low kinetic kinetic energy of molecules | Higher kinetic energy of molecules | Highest kinetic kinetic energy of molecules |
| Molecules oscillates in a regular lattice arrangement. | Molecules build lattice forms over only short distances, but they move in an irregular pattern over longer distance. | Molecules moves freely between collisions. |
| Incompressible | Hardly compressible | Compressible |

## Definition of Fluid

Fluid Mechanics is the study of fluids at rest (fluid statics) and in motion (fluid dynamics).
A fluid is defined as a substance that continually deforms (flows) under an applied shear stress regardless of the magnitude of the applied stress. Whereas a solid can resist an applied force by static deformation.
Liquids, gases, plasmas and, to some extent, plastic solids are accepted to be fluids. A perfect fluid offers no internal resistance to change in shape and, consequently, they take on the shape of their containers. Liquids form a free surface (that is, a surface not created by their container) whereas gases and plasmas do not, but, instead, they expand and occupy the entire volume of the container.

## Motivation for studying fluid mechanics

The importance of flow phenomena is out of question. Natural phenomena or technological applications are completely or partially involves flow phenomena. It can be met in a diverse range of length of time scales. Atmospheric flows and blood flows are two examples for this diversity. As a tool making specie, humankind learned also how to utilize flow phenomena. Hence, those, who deal with flowing matter, should be better equipped with theoretical understanding and capability to use experimental and numerical investigation tools.

## Historical Background and Future Perspective

Fluid mechanics have played an important role in human life. Therefore, it also attracted many curious people. Even in the ancient Greek history, systematic theoretical works have been done. The development of governing equations of fluid flow started already in the 16th century. In the 18th and 19th century, the conservation laws for mass, momentum and energy was already known in its most general form. In the 20th century, developments were in theoretical, experimental and recently numerical. In the theoretical field, mostly solutions of the governing equations for special cases were provided. Experimental methods have been developed to measure flow velocities and fluid properties. By the development of computers , the numerical treatment of fluid mechanical problems opened new perspectives in research. It is the common believe that in the 21th century, the activities would be most intensive in the development new experimental and numerical tools and application of those for developing new technologies.
* Aquaduct (Pont Du Gard), 7th cent. BC
* Greek ship (Trireme), 7th cent. BC
* Helicopter design of Leonardo da Vinci

## Basic components of Fluid Mechanics Research

Besides theoretical considerations, experiments and simulations are heavily used in research. If possible, most productive and accurate approach is the combination of all three methods. However, sometimes environmental conditions can be so harsh for any experimental technique that only theoretical or numerical methods can be used. For example, it is very hard or almost impossible to obtain the velocity or temperature distribution in the die casting mold or in the crucible used for crystal growth, because of very high temperatures.

## Viscosity of a Fluid

Force applied on a matter creates stresses on it. Stress is simply force per unit area:
$\displaystyle \tau ={\frac {F}{A}}\left[{\frac {N}{m^{2}}}=Pa\right]$
Hence the unit of stress is $Pa$. There can be normal and shear stresses in and on the matter.
Shear stress is proportional to the deformation rate of the matter, i.e. strain rate:
$\displaystyle \tau \propto {\frac {\delta \theta }{\delta t}}$
$\displaystyle \tan {\delta \theta }={\frac {\delta u\delta t}{\delta y}}$
$\displaystyle u$ is the deformation speed. For very small deformation angles
$\displaystyle \delta \theta ={\frac {\delta u\delta t}{\delta y}}\ \rightarrow \ {\frac {\delta \theta }{\delta t}}={\frac {\delta u}{\delta y}}\ \rightarrow \ \tau \propto {\frac {\delta u}{\delta y}}\ \rightarrow \ \tau =\mu {\frac {\delta \theta }{\delta t}}=\mu {\frac {\delta u}{\delta y}}$
$\displaystyle \mu$ is the dynamic viscosity of the fluid.
For the same $\displaystyle \tau$ and fluid having higher viscosity $\displaystyle \mu$, the deformation rate, i.e. velocity gradient is smaller.
Dynamic viscosity is a thermodynamic property of the material and it depends on temperature and pressure. In general, viscosity of liquids drop by increasing temperature, whereas that of gases increases. The viscosities of liquids and gases increase with increasing pressure.
$\displaystyle \mu =f\left(T,P\right)\left[Pa\cdot s\right]$
Often dynamic viscosity is normalized by the density of the fluid and this quantity is called “kinematic viscosity”:
$\displaystyle \upsilon ={\frac {\mu }{\rho }}\left[{\frac {m^{2}}{s}}\right]$
One can judge the dominance of inertial effects to viscous effects by using a dimensionless number, namely Reynolds number:
$\displaystyle Re={\frac {\rho U_{c}l_{c}}{\mu }}={\frac {U_{c}l_{c}}{\upsilon }}$
$\displaystyle U_{c}$ and $\displaystyle l_{c}$ are characteristic velocity and length scales of the flow.

## Elasticity, viscosity, solid- and liquid-like behavior, and plasticity

When one tries to deform a piece of material, some of the above properties appear depending on the amplitude and duration of the applied stress.
* Long time application of weak stress: Solids initially deform and then resist to deform. Fluids deform (flow) continuously.
* Short time application of weak stress: If deformation follows the stress, material is elastic!!!. If deformation rate follows the stress, material is viscous.
* Application of high stress: After a certain stress (yield stress), some solids start to deform irreversibly. These are called plastic solids. There are also yield stress fluids, whose threshold stress is much lower than plastic solids.

## Deborah number

A transition from a more resistant (elastic) to a less resistant behavior (viscous) has a relevant characteristic time scale: the relaxation time of the material. Correspondingly, the ratio of the relaxation time of a material to the timescale of a deformation is called Deborah number :
$\displaystyle \displaystyle De={\frac {\text{characteristic relaxation time of material}}{\text{time scale of deformation}}}$
Small Deborah numbers correspond to situations where the material has time to relax (and behaves in a viscous manner), while high Deborah numbers correspond to situations where the material behaves rather elastically. Water can show elastic behavior when the time scale of deformation becomes very short. For example, when one tries to jump to water from a height more than 100 meters, water feels like a solid ground at the instant of collision ( do not try). Corn starch and water mixture (suspension) is a good example with which low and high De number effects can be shown.

## Rheological Material

Fluids can be classified according to the relation between stress $\displaystyle \tau$ and deformation rate $\displaystyle du/dy$. The Newtonian fluids show a linear relation
$\displaystyle \tau =\mu {\frac {du}{dy}}\Rightarrow \mu =\mu (T,P)$
Fluids which do not follow the linear law between stress an the deformation rate are called non-newtonian and they are the subject of rheology. A dilatant (shear-thickening) fluid increases resistance with increasing applied stress. Alternately, a pseudoplastic (shear-thinning) fluid decreases resistance with increasing stress. If the thinning effect is very strong, the fluid is termed plastic. The limiting case of a plastic substance is one which requires a finite yield stress before it begins to flow. The linear-flow Bingham plastic idealization is shown in the figure, but the flow behavior after yield may also be nonlinear. Examples of a yielding fluid are toothpaste and ketchup, which will not flow out of the tube until a finite stress is applied by squeezing.
Some fluids show decreasing (thixotropic) or increasing resistance (rheopectic) in time for the same deformation rate. For example, pudding is a rheopectic fluid and some paints are thixotropic.

## Continuum Assumption

In many technical applications with gasses, the distance travelled by a molecule before it hits to another molecule (mean free path) ($\displaystyle \lambda$) are much larger than the molecular diameter. For air, $\lambda$ is around $5\times 10^{-8}m$.
The molecules are not fixed in a lattice but move about freely relative to each other. Thus fluid density, or mass per unit volume, has no precise meaning because the number of molecules occupying a given volume continually changes. If the selected unit volume $\displaystyle \delta V$ is smaller than the cube of the mean free path between the molecules, there will be large scatter in the determination of density, since the molecules move freely relative to each other, i.e. at one instant the number of molecules in the unit volume is not constant. This effect becomes unimportant if the unit volume is large compared with, say, the cube of the molecular spacing, when the number of molecules within the volume will remain nearly constant in spite of the enormous interchange of particles across the boundaries. In other words, when $\displaystyle \delta V$ is selected such that the selected volume contains in average the number of molecules, the density converges to a level. The acceptable size of the unit volume for many liquids and gases is about $\displaystyle 1\mu m^{3}$. Over this value, the medium can be accepted as continuum , such that the variations in space and time can be accepted to be smooth and differential equations can be written to describe the fluid motion. If, however, the chosen unit volume is too large, there could be a noticeable variation within the selected volume owing to the non-uniform bulk distribution of molecules caused by temperature and/or pressure variations in the flow field.

## Pressure in a fluid

Pressure is force per unit area and is a scalar quantity.
$\displaystyle p={\frac {F}{A}}\left[Pa\right]\ ;\left(1bar=10^{5}Pa\right)$
In a fluid at rest, the tangential viscous forces are absent and the only force between adjacent surfaces is normal to the surface. In a resting fluid there is only a normal stress (pressure). In other words, force caused by the pressure on a surface is normal to that surface.
Balance in x-direction:
$\displaystyle \left(p_{1}\ ds\right)\ sin\theta -p_{3}\ dz=0$
$\displaystyle dz=ds\sin \theta \longrightarrow p_{1}=p_{3}$
Balance in z-direction:
$\displaystyle -\left(p_{1}\ ds\right)\ cos\theta +p_{2}\ dx-{\frac {1}{2}}\rho g\ dx\ dz=0$
$\displaystyle ds\ cos\theta =dx\longrightarrow p_{2}-p_{1}-{\frac {1}{2}}\rho g\ dz=0$
For an infinitesimal prism, effect of gravity can be neglected.
$\displaystyle \rightarrow p_{1}=p_{2}=p_{3}$

## Interface phenomena and surface tension

Surface tension phenomena occur at the interface of one liquid and another liquid, gas or a solid wall. The cohesive forces between molecules down into a liquid are shared with all neighboring atoms. Those on the surface have no neighboring atoms above, and exhibit stronger attractive forces upon their nearest neighbors on the surface. This enhancement of the intermolecular attractive forces at the surface is called surface tension.
If the interface is curved, a mechanical balance shows that there is a pressure difference across the interface, the pressure being higher on the concave side,
$\displaystyle \Delta \ p=\sigma \left({\frac {1}{R_{1}}}+{\frac {1}{R_{2}}}\right)$
where $\displaystyle \sigma \left[{\frac {N}{m}}\right]$ is the surface tension coefficient. Surface tension coefficient is not a property of the liquid alone, but a property of the liquid's interface with another medium.
According to the above equation, in the soap bubble or in the droplet, inner pressure is higher than outer pressure. This can also be shown by a force balance. In the droplet, the force balance in the vertical direction reads
$\displaystyle F_{net}=\sigma 2\pi \!R-\left(p_{i}-p_{0}\right)\pi \!R^{2}=0$
$\displaystyle \Delta \ p=\sigma {\frac {2}{R}}$
Similarly, in the soap bubble the force balance becomes
$\displaystyle \Delta \ p=\sigma \left({\frac {1}{R}}+{\frac {1}{R}}\right)=\sigma {\frac {2}{R}}$
$\displaystyle F_{net}=2\sigma 2\pi \!R-\left(p_{i}-p_{0}\right)\pi \!R^{2}=0$
$\displaystyle \Delta \ p=\sigma {\frac {4}{R}}$
Note that owing to the two interfaces in the soap bubble force due to surface tension is as double as that in the droplet.
The contact angle is the angle between the liquid-solid and gas-liquid interfaces. It is calculated such that angle remains in the liquid. It is dependent on the adhesion forces between the liquid molecules and the solid wall. These forces are sensitive to the actual physicochemical conditions of the solid-liquid interface.

## Saturation pressure and cavitation

Evaporation occurs at the liquid gas interface. When the vapor pressure of liquid is less than the liquid's saturation pressure at the given liquid temperature, the evaporation and condensation occurs at the same time on the interface.At the liquid solid interface, at a given temperature, liquids starts to boil at saturation pressure.
Instead of increasing the temperature of the liquid, one can decrease the pressure of the liquid so that it starts to boil, or so to say cavitates.
One can meet cavitation in nature and in technical application. One known example is the cavitation damage on ship propellers. An interesting natural occurrence of cavitation was observed while the snapping shrimp hunts.

## Streamline, streakline, pathline and timeline

Four basic types of line patterns are used to visualize flows:
* A streamline is a line everywhere tangent to the velocity vector at a given instant.
* A pathline is the actual path traversed by a given fluid particle.
* A streakline is the locus of particles which have earlier passed through a prescribed point.
* A timeline is a set of fluid particles that form a line at a given instant.
In a steady flow streamlines, streaklines and pathlines are identical.

## Laminar and turbulent flows

Laminar flows are:
* smooth,
* the disturbances are damped via viscous effects,
* and they are in general deterministic.
In turbulent flows:
* flow and fluid variables show random fluctuations in time and space, i.e. the flow is stochastic
* there are eddies of velocity and length scales over a very wide range
Laminar to turbulent transition occurs when the disturbances in the flow can not be damped anymore by viscous forces. This happens when the inertia of the flow is increased and/or the flow configuration (boundaries, states of the fluid(s)) causes the generation and/or amplification of very small disturbances. As Reynolds number (Re) is the ratio of the inertial forces to viscous forces, for different types of flows, over a critical Reynolds number, transition to turbulence takes place. Below a list of simple but still technically interesting flow cases and critical Reynolds numbers are listed:
* Pipe flow: $Re={\frac {U_{b}D_{pipe}}{\nu }}>2200$
* Jet flow: $Re={\frac {U_{b}D_{jet}}{\nu }}>1000$
* Flow over a flat plate: $Re={\frac {U_{\infty }\delta _{l}}{\nu }}>950$
where $U_{b}$, $U_{\infty }$ are the bulk velocity of the fluid or the velocity of fluid approaching to the plate. $D_{pipe}$, $D_{jet}$ and $l$ are the pipe diameter, jet diameter or the length of the plate. $\delta _{l}=1.72{\sqrt {\nu l/U_{\infty }}}$ is the displacement thickness.

## Compressibility

Ideal Gas law (Equation of State)
$\displaystyle p=\rho RT$ : Where R is the gas constant and T is the universal temperature.
$R_{air}=286,9\left[{\frac {J}{kg}}K\right]$
Density and volume change:
$\displaystyle \rho ={\frac {m}{V}}$
$\displaystyle {\frac {d\rho }{dV}}=-{\frac {m}{V^{2}}}=-{\frac {m}{V}}{\frac {1}{V}}=-\rho {\frac {1}{V}}$
$\displaystyle {\frac {d\rho }{\rho }}=-{\frac {dV}{V}}$
The Bulk Modulus:
$\displaystyle E_{v}=-{\frac {dp}{\frac {dV}{V}}}={\frac {dp}{\frac {d\rho }{\rho }}}\ [Pa]$
Large values of Ev means that the fluid is relatively incompressible.
Under standard atmospheric conditions:
$E_{v}=2.15\times 10^{9}\ Pa=21500\ bar\$
for water and
$E_{v}=1.42\times 10^{5}\ Pa=1.4\ bar\$
for air. Therefore air is 15000 times more compressible than water.
Liquids can be accepted to be incompressible in many applications. Air can be compressible, especially when there are large changes of pressure in the flow.
${\frac {d\rho }{dt}}=0$ and ${\frac {d\rho }{dx_{i}}}=0$
Where i = 1,2,3.

## Classification of flows

Following chart covers most of the flow phenomena, which might occur in a flow problem. When one deals with a flow problem, first task is to classify the flow. Correct classification helps to choose the correct and most efficient methods to deal with this problem.