<!DOCTYPE html> 6 Steady Viscous flow‣ Notes on the Finite Element Method
Notes on the Finite Element Method

Chapter 6 Steady Viscous flow

6.1 Equations and Boundary Conditions

Viscous flow is governed by conservation of mass and momentum. For steady flow, the momentum equation states that shear and pressure forces are in balance.

p=ν2𝒖. (6.1)

where ν represents the kinematic viscosity. For incompressible flow, the mass conservation equation is:

𝒖=0, (6.2)

Boundary conditions specify the two components u,v of the velocity vector on solid boundaries. For the remaining BC there are two options: either the pressure difference alon the channel can be prescribed, or the velocities at the entrance (x=-1) is given. These are Dirichlet conditions in either case, however the assemble method is very different dependig on which conditios are fixed along the open voundaries.

The streamfunction and vorticity are related variables. The vorticity is the curl of the velocity field. In two dimensions

ω=vx-uy (6.3)

The stream function ψ satisfies:

2ψ=-ω (6.4)

The two dimensional Poiseuille solution describes steady viscous flow in a channel with parallel wall, when the entrance velocity varies parabolically with maximum value equal to one. Taket he wall separation to be H* and the channel length to be L*, the solution is:

u(y)=-12νpx(1-y2),v=0,p=-2νx+p0. (6.5)

where x=2x*/L* and y=2y*/H*, and p0 is an arbitrary constant. In this solution the velocity is independent of x, the abcissa parallel to the walls and the pressure in independent of the ordinate, y. The vorticity and streamfunction ares also a functions of y alone:

ω=2y,ψ=y-y33+ψ0. (6.6)

The vorticity gradient is constant across the channel and the exists a vorticity gardient at each wall. ψ0 is another arbitrary constant. The solution is illustrated in figure

Poiseuille flow in a constant width channel. The velocity
profile is parabolic, the vorticity profile is linear and the
streamfunction varies as a cubic polynomial. The pressure is
independent of

Figure 6.1: Poiseuille flow in a constant width channel. The velocity profile is parabolic, the vorticity profile is linear and the streamfunction varies as a cubic polynomial. The pressure is independent of y and decreases linearly from the left opening.

This analytic solution is illustrated in figure 6.1. Profile of the velocity u. the vorticity ω and the streamfunction ψ, variables that are independent of x are illustrated in the top frame. The pressure (independent of y) is illustrated beneath.

6.2 Finite Element Method

The weak form of equations 6.2 and 7.1 is obtained in the usual way:

νϕm(2ux2+2uy2)𝑑a+ϕmpx𝑑a=0νϕm(2vx2+2vx2)𝑑a+ϕmpy𝑑a=0ϕm(ux+vy)𝑑a=0 (6.7)

The pressure and the velocities are expandent in termd of trial functions. The following forms are chosen to allow the possibilty of different trial functions for velocity and pressure:

(u,v)(x,y)=n=1nuϕn(x,y)(un,vn)whereϕn(x,y)=k=1Ck,nxp(k)yq(k) (6.8)
p=n=1npϕnp(x,y)pnwhereϕnp(x,y)=k=1Ck,npxp(k)yq(k) (6.9)

Introducing these expansions into equation 6.7 leads to the usual system of equations for the three dependent variables:

ϕmϕnpx𝑑apn+(ϕmxϕnx+ϕmyϕny)𝑑aun=sϕmϕn𝒏unds (6.10)
ϕmϕnpy𝑑apn+(ϕmxϕnx+ϕmyϕny)𝑑avn=sϕmϕn𝒏vnds (6.11)
ϕmpϕnx𝑑aun+ϕmpϕny𝑑avn (6.12)

Define global matrices 𝒟x,𝒟y, 𝒢x,𝒢y and 𝒦 with elements:

Dm,nx=ϕmpϕnx𝑑aDm,ny=ϕmpϕny𝑑a (6.13)
Gm,nx=ϕmϕnpx𝑑aGm,ny=ϕmϕnpy𝑑a (6.14)
𝒦m,n=(ϕmxϕnx+ϕmyϕny)𝑑a (6.15)

6.2.1 Open BC in terms of pressure.

Weak Form

For linear TF, the stiffness matrix is given by equation 6.16. In this case the gradient matrices are the same: 𝒟x=𝒢x and 𝒟x=𝒢x; For the canonical triangle:

𝒟ex=A6[-110-110-110]𝒟ey=A6[-101-101-101] (6.16)

Assembly

In matrix form equations 6.10 through  6.12 are

[𝒦0𝒟x0𝒦𝒟y𝒟x𝒟y0][uvp]=𝒔=0,where𝒔=0 (6.17)

The zero in the lower right corner of the left lost matrix is a concern, as we will see it can cause the matrix to be singular. Fortunately this is not the case when pressure boundary conditions are imposed.

Consider the grid illustrated in figure LABEL:Fi:C4S2simplegrid. The grid has 9 nodes; there are three variables: u,v and p. the total number of variabless is 27 of which 18 are prescribed at the boundaries (six BC on both u and v and six more on p) and 9 variables are unknown. The problem for the unknown variables is then:

~𝒔~=-^𝒔^ (6.18)

where ~ is a 9×9 matrix and ^ is 9×18. The solution vector has been partitioned into 𝒔^, the known values at Dirichlet boundary points, and 𝒔~, the unknown values.

~=13[12-612-624-6-101-612-2-112-6-11-624-6-202-612-11-1112-202-101-11-2-1],and^𝒔^=12[121000000]with the result:[u6=0.5u7=0.5u9=0.5v6=0v7=0v9=0p5=0p6=-0p8=0]. (6.19)

6.2.2 Open BC in terms of velocity.

If the preceeding scheme were applied to the situation where pressure is unknown everywhere, but the velocity is given on three of the four boundaries, there would be four unknown velocities (two u and two v) and nine unknown p. It is possible to show that if the number of unknow pressure values exceeds the total number of unknown velocities, the matrix L~ is singular. The accepted solution is to use different order polynomials for velocity ϕn (e.g. quadratic polynomials) and for pressure ϕnp (linear polynomials). This combination of trial function is called mixed TF.

Weak Form

To achhieve this the matrix elements Ck,n in equation 6.8is 6×6, whereas matrix elements Ck,np in equation LABEL:eq:C6S2:exppressi remains 3×3. Now matrices 𝒟x and 𝒢x are no longer equal. For the canonical triangle:

𝒟ex=A6[-11010-10-1110-100020-1];𝒢ex=A6[000-110000-110000-110]. (6.20)

Assembly

Consider for example Poiseuille flow in a two dimensional channel, defined by four nodes (rather than nine in the example above). Velocity trial functions are taken to be quadratic polynomial and pressure trial functions are take to be linear polynomials. The pressure is determined at the four corners of the grid, whereas velocity is determined on each of the nine nodes drawn in figure 9.2

Poiseuille in a simple grid consisting of two elements each
oulined by black lines. Black squares and numbers identify nodes
where the pressure is evaluated, Velovity is evaluated at all
notes (black and red). Velocity is prescribed at all nodes except
6 and 9.

Figure 6.2: Poiseuille in a simple grid consisting of two elements each oulined by black lines. Black squares and numbers identify nodes where the pressure is evaluated, Velovity is evaluated at all notes (black and red). Velocity is prescribed at all nodes except 6 and 9.

Any element has three vertices, where pressure is evaluared and a total of six nodes where the velocity is evaluated: the three vertices supplemented by three mid-point along the element boundaries.

Even with this scheme in place, the pressure is only determined to within a constant which would still cause the matrix to be singular. This problem has been encountered in Chapter 4. It can be dealt with by adding a Lagrange multiplier to the problem, as discussed in Chapter 4, section 4.3.1. The global problem can now be written

[𝒦0𝒢x00𝒦𝒢y0𝒟x𝒟y010010][uvpλ]=𝒔=0,where𝒔=[uvpλ] (6.21)

6.2.3 Dirichlet Boundary Conditions

As noted in section 1.3.3, the Dirichlet boundary points are dealt with by rewriting equation 9.14

~=13[16-4-11-110-48-11016-4-1-1110-48-110113-1211311-13-11-1-1333330],and^𝒔^=13[400011200]with the result:[u6=1u9=1v6=0v9=0p1=2p2=-2p3=2p4=-2λ=0]. (6.22)

in exact agreement with equation 6.5. Note in passing thatthe determinant of a modified ~ modified to remove the Lagrangian contraint is zero.

6.2.4 Evaluating the solution at some arbitrary point

In many cases it may be required to evalute the solution at some location other than a grid node.

6.3 Results

6.3.1 Convergent Channel.

Viscous flow in a converging channel

Figure 6.3: Viscous flow in a converging channel

6.3.2 Cavity Flow

Viscous flow in a Cavity. Along the top the velocity is
forced to unity. Left: streamfunction; the red areas in the lower
corners are regions of separated flow. Middle: vorticity, the
black lines represent the

Figure 6.4: Viscous flow in a Cavity. Along the top the velocity is forced to unity. Left: streamfunction; the red areas in the lower corners are regions of separated flow. Middle: vorticity, the black lines represent the ω=0 contour; near the surface the vorticity in negative, and changes sign with depth. The vorticity is negative in the lower corners. Right: pressure, The max value is p=591 in the upper left corner.

6.3.3 Flow Behind a Step.

Viscous flow around a step. The velocity profile at the
letf (W) boundary is parabolic. Note the small recirculation are
near the corner at

Figure 6.5: Viscous flow around a step. The velocity profile at the letf (W) boundary is parabolic. Note the small recirculation are near the corner at x=-1, y=-1.

6.3.4 Flow Around a Cylinder

The cylinder is embedded in a flow that extends 6 units in the x-direction and four units in the y-direction. The cylinder is centered on 0,0 with a radius 0.2. The boundary condition set the x-velocity to one along the N, W, and S boundaries, with lateral velocity set to zero. The FEM solution is illustrated in figure 7.1, where only the central portion of the computed flowfield is shown. The streamfunction shows the flow streaming by the cylinder in a pattern that is summetric about the y axis. The vorticity exhibits a maximum at the bottomost part of the cylinder, where the pressure gradient driven vorticity sourge islargets. A minimum in vorticity occurs at the diametrically opposite point. The pressure is maximum at the upstream stagnation point and minimum on the dowstrem stagnation point. There is a lrge pressure gradient around the body.

Viscous flow around a cylinder. The u-velocity is set to
one along the N, W and S boundaries. The solution is found in a
domain that extends from

Figure 6.6: Viscous flow around a cylinder. The u-velocity is set to one along the N, W and S boundaries. The solution is found in a domain that extends from -3x3 and -2y2. Only the central portion is illustrated.