Académique Documents
Professionnel Documents
Culture Documents
Today's Lecture
Introduction to aerodynamics Navier-Stokes equations Introduction to Fortran90 Finite Volume method for solving differential equations
Example: diffusion problem Example: convection-diffusion problem
Literature
Windturbine Aerodynamics
Navier-Stokes equations
Describe the fluid properties: velocity components, pressure, density, Internal energy and temperature. Can only be solved analytical for very simple problems In differential form the governing equations of the flow of a compressible Newtonian fluid are: Mass equilibrium
Momentum equations
Energy equation Unknowns: , ui, p, I, T (7 unknowns, 5 equations). Equations of state: p =p(, T) , I =I(, T)
Momentum equations
Mass Conservation
[rate of change in time of the density] + [net flow of mass out of element]=0
convective term
Momentum conservation
[rate of increase of momentum of fluid particle] = [sum of forces on fluid particle]
source term
Mass conservation
Momentum conservation
10
Gauss' theorem
convective term
diffusion term
11
BREAK
Next:
Fortran90 programming
12
Fortran90
"Hello World"-program
Compile, link, run Write to the screen in different ways Read input from the screen to a variable
Loops
do, do while, if-then
Project
main program functions subroutines
Exercise: solve a system of linear equations, write to a file, load and plot in Matlab
13
14
Loops
15
16
17
Exercise:
Problem
18
Exercise: Hint
You will need the following variables
integer n,I real*8 Ta(5),Tb(5) ! Ta are the Tn values Tb are the Tn+1 values
19
BREAK
Next: Finite-Volume method for solving differential equations
Example: diffusion problem Example: convection-diffusion problem
20
21
Grid generation, 1D
22
Discretisation
1D governing equation
Out-going normal n
Solution to integral
23
Discretisation
The diffusive flux of entering the left-hand side (west) minus the diffusive flux leaving the right-hand side (east) is equal to the generation of
24
Boundary A
Boundary B
25
Boundary node A
Boundary node B
26
Solution of equations
The equations for each internal nodal point are set up The equations for the boundary points are set up to incorporate the boundary conditions The system of linear equations can be put in matrix format
27
28
Grid
Set up the system of linear algebraic equations, use five CV's i.e. x=0.004 m
29
Convection-diffusion problems
The diffusion process affects the distribution of a transported quantity along its gradients in all directions, whereas convection spreads influence only in the flow direction Peclet number is a measure of the relative strengths of convection and diffusion
30
Discretisation
Right-hand side (diffusive term) identical with previous example
31
Differencing schemes
central differencing scheme (CVS) introduces influence at node P from the directions of all its neighbours. Good for diffusion problems (Pe is small). Bad for convection problems (Pe is large) CVS is used for the diffusion term
The upwind differencing scheme (UDS) is used for the convective terms
32
33
Boundary node B
34
35
Solution
Analytical solution
36
37
Solution
Analytical solution
38
39
Include these in one project Run the grid program Run the solver Run the plotting program
40
Next time:
2D problems (staggered grids) How to include pressure (SIMPLE-algorithm)
41
42