Introduction to Computational Fluid Dynamics
1. What is a fluid ?
A fluid is a substance that flows (in other words, it takes the shape of its container) and does not resist deformation (i.e. slips when moved). The terms fluid and liquid are often used interchangeably, but technically, the term fluid can refer to both a liquid and a gas.
The distinction between liquids and gases can affect how the fluid is modeled, but both have the same basic fluid formulae and comparable properties.
2. Macroscopic properties of a fluid:
1.Dynamic viscosity:
The viscosity of a fluid characterizes its resistance to a speed of deformation (movement) caused by the application of a constraint (Force/surface).
2.Compressibility:
The ability of a fluid to undergo significant variations in density when applying a pressure step \(\Delta P\) or a temperature variation \(\Delta T\).
Two coefficients are used:
-
isothermal compressibility coefficient: \(K_t\)
-
Coefficient of thermal expansion at constant pressure beta.
3.Thermal diffusion:
The quantity
is called heat flux density. It is a thermal power (Watts) exchanged per unit of surface area and is set:
The positive number \(\lambda\) is called the coefficient of thermal conductivity, it is expressed in W.m/K.
3. CFD insight
Computational fluid dynamics (CFD) is one of the most quickly emerging fields in applied sciences.
CFD mainly deals with the numerical analysis of fluid dynamics problems, which embodies differential calculus. The equations involved in fluid dynamics are Navier–Stokes equations. Until now, solutions to Navier–Stokes equations have not been explicitly found except for some cases such as Poiseuille flow, Couette flow, and Stokes flow with certain assumptions.
Thus, CFD is the process of converting the partial differential equations of fluid dynamics into simple algebraic equations and then solving them numerically to obtain some meaningful results.
4. CFD prosses
The CFD is based on three essential processes:
-
Pre-processing
This is the most important phase and it is also called the meshing phase where we have to create an understandable topology adapted to our field of study.
-
Solving
This phase consists in solving the guiding equations of the flow, this work is done by the computer.
-
Post-processing:
This step is based on the visualization and interpretation of the results for the development or optimization of the product. Finally for the validation of the results they are compared with the experimental data.
All three processes are interdependent
5. Generalities about the Stokes problem
5.1. Navier-Stokes equation:
The Navier-Stokes equations are a system of non linear partial differential equations which describe the movement of fluids in a continuous medium, it is demonstrated from a balance of momentum per unit volume for an incompressible fluid it is given in the form:
The first equation (1) is zero divergence equation of the velocity field \(\overrightarrow{v}(\overrightarrow{r},t)\), it ensures the incompressibility of the fluid. Each term of the second equation (2) represents a force per unit of volume such as.
When we divide the balance equation (2) of forces per unit volume \(\rho\), we get a balance of forces per unit mass, which can also be interpreted as a velocity transport equation:
5.2. Reynolds number
The Reynolds number is a dimensionless quantity that gives the ratio between the inertial forces and the viscous forces that intervene in the flow.
We will write the Navier-Stokes equation using dimensionless combinations (which will be noted by premiums) of the different sizes involved. Let L and U be the scales respective size and flow velocity, we have:
\(\overrightarrow{r}=L\overrightarrow{r}^{'}\); \(\overrightarrow{v}=L\overrightarrow{v}^{'}\); \(p-p_{0}=(\rho U^{2})p^{'}\); \(t=\frac{L}{U}t^{'}\)
So the Navier-Stokes equation becomes:
The expression of Rynolds number is as follows
We recognize the two characteristic times necessary to transport the movement over a length L by diffusion and by convection. Transportation will be the shortest time thus dominating, the Reynolds number is the relationship between convective and diffusive effects:
It is also often useful to understand the Reynolds number as the relationship between the terms of inertia and viscous forces of the Navier-Stokes (2) equation such as:
The Stokes problem is involved in a very large number of physical applications, and one of the great originalities of the Stokes problem is its reversibility over time. This means that a swimmer in a Stokes fluid has to break the symmetry of its movement to move forward.
6. Governing Equations
To solve a fluid mechanics problem, we use physical laws to find the mathematical equations which describe the physical properties of the fluid, such as velocity, temperature, pressure, density and viscosity. It is assumed that the fluid is incompressible, it means that the volume of the fluid cannot be reduced by an increase of pressure. Theses equations are called the governing equations of CFD:
6.1. Continuity equation
Consider the fundamental principle of physics proposed by Antoine Lavoisier, which gives theintergral form of the mass conservation equation:
where \(\rho(kg/m)\) is the density in the domain \(\Omega\), \(v(m/s)\) is the velocity of the fluid and \(n\) the unitnormal vector to the boundary \(\partial \Omega\).
Consider also:
Using Gauss divergence theorem in the mass conservation equation, we obtain the differential form,which is the continuity equation:
6.2. Movement equation
Newton’s second law states that the force of a moving object is equivalent to it’s rate of change of movement. In fluid mechanics, the movement theorem is :
And it was converted to differential form by the french mathematician Cauchy, with the applicationof the divergence theorem.
The result is the movement equation :
where \(p (Pa)\) is the pressure, \(\mu\) is the dynamic viscosity and \(g\) is the external forces acting on the fluid, such as gravity.
6.3. Energy equation
where \(h = U+pV(J)\) is the internal energy of the system, V is the volume, \(\mu_t\) is the thurbulence viscosity, \(\sigma_t\) is a constant and \(S_h\) is the volumetric heat source.
6.4. Simutaion Model
6.4.1. Backward-Facing Step (BFS)
Backward-Facing Step (BFS) flow is one representative model for separation flows, which can be widely seen in:
-
Aerodynamic flows
-
Engine flows
-
Heat transfer systems
-
Flow around buildings
The [BFS] is a very popular reference and validation model for Computational Fluid Dynamics (CFD) simulations because of the availability of a good number of experimental data. Flow separation depends on several parameters such as BFS geometry, inlet and outlet conditions, turbulent intensity, as well as heat transfer conditions. Although the geometry is very simple, the flow may have interesting separation regions, which also makes it an ideal candidate for testing numerical boundary conditions.