1. Trang chủ
  2. » Tất cả

4. fv_convection

32 4 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Nội dung

Section 4: Finite Volume Method for Convection Problems Governing equation for convection of a scalar: 𝜕 𝜕 (𝜌𝑢𝜙) + (𝜌𝑣𝜙) = 𝜕𝑥 𝜕𝑦 or in vector notation ∇ ∙ (𝜌𝑢̅𝜙) = Integrate over a control volume: ∫ ∇ ∙ (𝜌𝑢̅𝜙) 𝑑𝑉 = Apply divergence theorem: ∫(𝜌𝑢̅𝜙) ∙ 𝑛̂ 𝑑𝐴 = Evaluate the integral around the control volume: (𝜌𝑢𝜙|𝑒 − 𝜌𝑢𝜙|𝑤 )Δ𝑦 + (𝜌𝑣𝜙|𝑛 − 𝜌𝑣𝜙|𝑠 )Δ𝑥 = (EQ1) How we handle 𝜙𝑒, 𝜙𝑤, 𝜙𝑛, 𝜙𝑠 terms as these are not at cell centers? Interpolation to cell faces using cell centered values is required Perhaps the most intuitive method is to average using neighboring cell center values, generally known as central differencing (even though it is a linear interpolation) That is: (𝜙 + 𝜙𝑃 ) 𝐸 𝜙𝑤 = (𝜙𝑃 + 𝜙𝑊 ) 𝜙𝑛 = (𝜙𝑁 + 𝜙𝑃 ) 𝜙𝑠 = (𝜙𝑃 + 𝜙𝑆 ) 𝜙𝑒 = If we substitute these expressions into our finite volume equation (EQ1) we get: 𝑚̇𝑒 (𝜙𝐸 + 𝜙𝑃 )/2 − 𝑚̇𝑤 (𝜙𝑃 + 𝜙𝑊 )/2 + 𝑚̇𝑛 (𝜙𝑁 + 𝜙𝑃 )/2 − 𝑚̇𝑠 (𝜙𝑆 + 𝜙𝑃 )/2 = (EQ2) where we have used the notation 𝑚̇𝑒 = 𝜌𝑢𝑒 Δ𝑦, etc Isolating 𝜙𝑃 : on the left side: (𝑚̇𝑒 − 𝑚̇𝑤 + 𝑚̇𝑛 − 𝑚̇𝑠 )𝜙𝑃 = −𝑚̇𝑒 𝜙𝐸 /2 + 𝑚̇𝑤 𝜙𝑊 /2 − 𝑚̇𝑛 𝜙𝑁 /2 + 𝑚̇𝑠 𝜙𝑆 /2 Using notation that is standard in the CFD community, define a set of coefficients as: 𝐴̃𝐸 = −𝑚̇𝑒 /2 𝐴̃𝑊 = 𝑚̇𝑤 /2 𝐴̃𝑁 = −𝑚̇𝑛 /2 𝐴̃𝑆 = 𝑚̇𝑠 /2 so that the final discretized equation may be written in “standard” form as: 𝐴̃𝑃 𝜙𝑃 = 𝐴̃𝐸 𝜙𝐸 + 𝐴̃𝑊 𝜙𝑊 + 𝐴̃𝑁 𝜙𝑁 + 𝐴̃𝑆 𝜙𝑆 + 𝑆̃𝑢 where 𝐴̃𝑃 ≡ 𝐴̃𝐸 + 𝐴̃𝑊 + 𝐴̃𝑁 + 𝐴̃𝑆 + (𝑚̇𝑒 − 𝑚̇𝑤 + 𝑚̇𝑛 − 𝑚̇𝑠 ) − 𝑆̃𝑃 (EQ2) To get our equation into this form we subtract and add 𝑚̇𝑒 𝜙𝑃 , and also add and subtract 𝑚̇𝑤 𝜙𝑃 , on the left side Similarly for the north/south directions The 𝑆̃𝑢 and 𝑆̃𝑃 terms are representations for source terms which may be present in the differential equation itself, or arise from the convenient implementation of boundary conditions For our equation, they are both zero Another Interpolation Option: Alternatively, we can consider an upwinding technique If the flow were from west-to-east, and south-to-north, a simple extrapolation would yield: 𝜙𝑒 = 𝜙𝑃 ; 𝜙𝑤 = 𝜙𝑊 ; 𝜙𝑛 = 𝜙𝑃 ; 𝜙𝑠 = 𝜙𝑆 Substituting these extrapolations into (EQ1), we get: 𝑚̇𝑒 𝜙𝑃 − 𝑚̇𝑤 𝜙𝑊 + 𝑚̇𝑛 𝜙𝑃 − 𝑚̇𝑠 𝜙𝑆 = Isolate 𝜙𝑃 on the left side: (𝑚̇𝑒 + 𝑚̇𝑛 )𝜙𝑃 = 𝑚̇𝑤 𝜙𝑊 + 𝑚̇𝑠 𝜙𝑆 Then in our standard form: 𝐴𝐸 = 𝐴𝑊 = 𝑚̇𝑤 𝐴𝑁 = 𝐴𝑆 = 𝑚̇𝑠 However, we need to add and subtract both 𝑚̇𝑤 𝜙𝑃 and 𝑚̇𝑠 𝜙𝑃 from the left side in order to put the equation in the standard form: 𝐴𝑃 𝜙𝑃 = 𝐴𝐸 𝜙𝐸 + 𝐴𝑊 𝜙𝑊 + 𝐴𝑁 𝜙𝑁 + 𝐴𝑆 𝜙𝑆 + 𝑆𝑢 (EQ3) where 𝐴𝑃 ≡ 𝐴𝐸 + 𝐴𝑊 + 𝐴𝑁 + 𝐴𝑆 + (𝑚̇𝑒 − 𝑚̇𝑤 + 𝑚̇𝑛 − 𝑚̇𝑠 ) − 𝑆𝑃 For our equation, both 𝑆𝑢 and 𝑆𝑃 are zero, however, these values will be modified along the boundaries as will be shown in an example to follow Deferred Correction Consider the combination of discretized equations: 𝐸𝑄3 + 𝛽 (𝐸𝑄2 − 𝐸𝑄3)=0 where EQ3 is the complete discretized equation resulting from the lower order (upwinding) interpolation and EQ2 is the discretized equation resulting from the higher order (central) interpolation scheme The variable 𝛽 is a “blending” factor For instance, 𝛽 = results in upwinding (a first order method), 𝛽 = results in linear interpolation (a second order method), and < 𝛽 < results in a blending of the two Making the substitutions: (𝐴𝑃 𝜙𝑃 − 𝐴𝐸 𝜙𝐸 − 𝐴𝑊 𝜙𝑊 − 𝐴𝑁 𝜙𝑁 − 𝐴𝑆 𝜙𝑆 − 𝑆𝑢 ) + 𝛽[(𝐴̃𝑃 𝜙𝑃 − 𝐴̃𝐸 𝜙𝐸 − 𝐴̃𝑊 𝜙𝑊 − 𝐴̃𝑁 𝜙𝑁 − 𝐴̃𝑆 𝜙𝑆 − 𝑆̃𝑢 ) − (𝐴𝑃 𝜙𝑃 − 𝐴𝐸 𝜙𝐸 − 𝐴𝑊 𝜙𝑊 − 𝐴𝑁 𝜙𝑁 − 𝐴𝑆 𝜙𝑆 − 𝑆𝑢 )] 𝑂𝐿𝐷 =0 Now we solve for the “red” colored 𝜙𝑝 to obtain our iteration equation: 𝜙𝑃 = (𝐴𝐸 𝜙𝐸 + 𝐴𝑊 𝜙𝑊 + 𝐴𝑁 𝜙𝑁 + 𝐴𝑆 𝜙𝑆 + 𝑆𝑢 )⁄𝐴𝑃 − 𝛽 𝐴𝑃 [(𝐴̃𝑃 𝜙𝑃 − 𝐴̃𝐸 𝜙𝐸 − 𝐴̃𝑊 𝜙𝑊 − 𝐴̃𝑁 𝜙𝑁 − 𝐴̃𝑆 𝜙𝑆 − 𝑆̃𝑢 ) − (𝐴𝑃 𝜙𝑃 − 𝐴𝐸 𝜙𝐸 − 𝐴𝑊 𝜙𝑊 − 𝑂𝐿𝐷 (EQ4) 𝐴𝑁 𝜙𝑁 − 𝐴𝑆 𝜙𝑆 − 𝑆𝑢 )] EXAMPLE PROBLEM Consider the convection of a step profile in a uniform incompressible flow oblique to the grid lines the domain over the region 0

Ngày đăng: 02/05/2021, 21:11

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN

w