Presentation is loading. Please wait.

Presentation is loading. Please wait.

Application of Environment Spatial Information System HW – Boundary Conditions Minkasheva Alena Thermal Fluid Engineering Lab. Department of Mechanical.

Similar presentations


Presentation on theme: "Application of Environment Spatial Information System HW – Boundary Conditions Minkasheva Alena Thermal Fluid Engineering Lab. Department of Mechanical."— Presentation transcript:

1 Application of Environment Spatial Information System HW – Boundary Conditions Minkasheva Alena Thermal Fluid Engineering Lab. Department of Mechanical Engineering Kangwon National University HOMEWORK

2 Contents 1. Boundary Condition Types 2. Boundary Conditions in CFD 1. Boundary Condition Types 2. Boundary Conditions in CFD Introduction Inlet Boundary Conditions Outlet Boundary Conditions Wall Boundary Conditions The Constant Pressure Boundary Condition Symmetry Boundary Condition Periodic or Cyclic Boundary Condition Boundary Conditions in CFD - Final Remarks 1

3 Contents 3. Boundary Conditions in PHOENICS 3. Boundary Conditions in PHOENICS Nomenclature The Algebraic Equations The Source Term The Types of Boundary Condition in PHOENICS Fixed Value Boundary Condition Fixed Flux / Fixed Source Boundary Condition Linear Boundary Condition Non-Linear Boundary Condition Laminar Wall Boundary Condition Turbulent Wall Boundary Condition Inflow Boundary Condition Boundary Conditions in PHOENICS - Final Remarks 2

4 1. Boundary Condition Types Five types of boundary conditions are defined at physical boundaries. The “zeroth” type designates those cases with no physical boundaries. In the equations below the coordinate at the boundary is denoted r i and i indicates one of the boundaries. Type 1. Prescribed temperature (Dirichlet condition) specify the value of the function on a surface: Type 2. Prescribed heat flux (Neumann condition) specify the normal derivative of the function on a surface: here n i is the outward-facing normal vector on the body surface. riri riri riri 1

5 Type 3. Convective boundary condition (sometimes called the Robin condition): here h i is the heat transfer coefficient and specified function f i is usually equal to h i T ∞ where T ∞ is a fluid temperature. Type 4. Thin, high-conductivity film at the body surface: here product ( ρ cb) i are properties of the surface film (density, specific heat, and thickness), and the surface film must have a negligible temperature gradient across it (“lumped”). riri riri riri 1. Boundary Condition Types 2

6 Type 5. Thin, high-conductivity film at the body surface, with the addition of convection heat losses from the surface: Type 0. No physical boundary. The number 0 (zero) is used where there is no physical boundary, which arises in some body shapes. riri riri 1. Boundary Condition Types 3

7 2. Boundary Conditions in CFD All CFD problems are defined in terms of initial and boundary conditions. In transient problems the initial values of all the flow variables need to be specified at all solution points in the flow domain. The most common boundary conditions in the discretised equations of the finite volume method: inlet outlet wall prescribed pressure symmetry periodicity (or cyclic boundary condition) Introduction

8 Fig. 2 v -velocity cell at the inlet boundary Fig. 1 u -velocity cell at the inlet boundary The distribution of all flow variables needs to be specified at inlet boundaries Figures 1 and 2 show the grid arrangement in the immediate vicinity of an inlet for u- and v- momentum, scalar and pressure correction equation cells. The grid extends outside the physical boundary and the nodes along the line I=1 (or i = 2 for u-velocity) are used to store the inlet values of flow variables (u in, v in p ’ in ) Inlet Boundary Conditions1

9 Fig. 3 Pressure correction cell at inlet boundary Fig. 4 Scalar cell at inlet boundary The diagrams show the “active” neighbours and cell faces which are represented in the discretised equation for the shaded cell. All links to neighbouring nodes remain active for the first u-, v- and φ-cell, so to accommodate the inlet boundary condition for these variables it is unnecessary to make any modifications to their discretised equations. Figure 3 shows that the link with the boundary side is cut in the discretised pressure correction equation by setting the boundary side (west) coefficient a W equal to zero. 2 Inlet Boundary Conditions

10 Outlet Boundary Conditions Fig. 6 v -velocity cell at an outlet boundary Fig. 5 u -velocity cell at an outlet boundary 1 If the location of the outlet is selected far away from geometrical disturbances the flow often reaches a fully developed state where no change occurs in the flow direction. In such a region we can place an outlet surface and state that the gradients of all variables (except pressure) are zero in the flow direction. Figures 5 to 8 show the grid arrangements near such an outlet boundary. We have shaded the last cells upstream of the outlet, for which a discretised equation is solved, and highlighted the active neighbours and faces.

11 Outlet Boundary Conditions Fig. 7 Pressure correction cell at outlet boundary Fig. 8 Scalar cell at outlet boundary 2 If NI is the total number of nodes in the x-direction, the equations are solved for cells up to I (or i) = NI -1. Before the relevant equations are solved the values of flow variables at the next node (NI), just outside the domain, are determined by extrapolation from the interior on the assumption of zero gradient at the outlet plane. For the v- and scalar eqs. this implies setting v NI,j = v NI-1,j and φ NI,j = φ NI-1,j Calculation of u-velocity at the outlet plane i = NI by assuming zero gradient gives u NI,J = u NI-1,J

12 Wall Boundary Conditions Fig. 9 u -velocity cell at a wall boundary The wall is the most common boundary in confined fluid flow problems. Figures 9 to 11 illustrate the grid details in the near wall regions for the u-velocity component (parallel to the wall), for the v-velocity component (perpendicular to the wall) and for scalar variables. 1

13 Wall Boundary Conditions Fig. 10 v -velocity cell at a wall boundary (a) j= 3 and (b) j=NJ The no-slip condition (u = v =0) is the appropriate condition for the velocity components at solid walls. The normal component of the velocity can simply be set to zero at the boundary ( j = 2) and the discretised momentum equation at the next v-cell in the flow ( j = 3) can be evaluated without modification. For all other variables special sources are constructed, the precise form of which depends on whether the flow is laminar or turbulent. 2

14 Wall Boundary Conditions Fig. 11 Scalar cell at a wall boundary 3 There are several types of wall boundary conditions: Laminar Flow/Linear Sub-layer Turbulent Flow Rough walls Moving walls

15 Wall Boundary Conditions4 Inflow boundary Density, velocity and temperature given Flow Outflow boundary Velocity=0, temperature or heat flux given Solid wall Fig. 12 Boundary conditions for an internal flow problem

16 Wall Boundary Conditions5 Fig. 13 Boundary conditions for external flow problem Inflow boundary Density, velocity and temperature given Flow Outflow boundary Solid object As inflow be where flow into domain through open boundary Open boundary Velocity = 0, temperature or heat flux given Open boundary Or as outflow be where flow out of domain

17 Wall Boundary Conditions6 Fig. 14 Example of flow boundaries with symmetry conditions Inlet boundary condition Solution region Symmetry boundary condition Wall boundary condition Outlet boundary condition

18 Wall Boundary Conditions7 Fig. 15 Examples of flow boundaries with cyclic conditions Wall boundary condition Cyclic boundary conditions Outflow bc Inflow bc Cyclic bc

19 The Constant Pressure Boundary Condition Fig. 16 p ’ - cell at an intlet boundary Fig. 17 p ’ - cell at an outlet boundary The constant pressure condition is used in situations where exact details of the flow distribution are unknown but the boundary values of pressure are known. The pressure correction is set to zero at the nodes. The grid arrangement of the p ’ -cells near a flow inlet and outlet is shown in Figures 16 and 17.

20 The conditions at a symmetry boundary are: (1) no flow across the boundary (2) no scalar flux across the boundary. In the implementation, normal velocities are set to zero at a symmetry boundary and the values of all other properties just outside the solution domain (say I or i= 1) are equated to their values at the nearest node just inside the domain (I or i = 2): φ 1,J = φ 2,J In the discretised p ’ - equations the link with the symmetry boundary side is cut by setting the appropriate coefficient to zero; no further modifications are required. Symmetry Boundary Condition

21 Consider for example swirling flow in a cylindrical furnace is shown in Figure 18. In the burner arrangement gaseous fuel is introduced through six symmetrically placed holes and swirl air enters through the outer annulus of the burner. Periodic or Cyclic Boundary Condition Fig. 18 An example of a cyclic boundary condition 1

22 This problem can be solved in cylindrical polar co-ordinates (z, r,θ). The pair of boundaries k = 1 and k =NK are called periodic or cyclic boundaries. To apply cyclic boundary conditions we need to set the flux of all flow variables leaving the outlet cyclic boundary equal to the flux entering the inlet cyclic boundary. This is achieved by equating the values of each variable at the nodes just upstream and downstream of the inlet plane to the nodal values just upstream and downstream of the outlet plane. For all variables except the velocity component across the inlet and outlet planes (say w) we have φ 1,J = φ NK-1,J and φ NK,J = φ 2,J For the velocity component across the boundary we have w 1,J = w NK-1,J and w NK,J = w 3,J Periodic or Cyclic Boundary Condition2

23 Flows inside a CFD solution domain are driven by the boundary conditions. In a sense the process of solving a field problem (e.g. a fluid flow) is nothing more than the extrapolation of a set of data defined on a boundary contour or surface into the domain interior. It is, therefore, of paramount importance that we supply physically realistic, well-posed boundary conditions. The single most common cause of rapid divergence of CFD simulations is the inappropriate selection of boundary conditions. The “main” boundary conditions for viscous fluid flows include inlet, outlet and wall condition; three further conditions are constant pressure, symmetry and periodicity. They are physically realistic and very useful in practical calculations. Boundary Conditions in CFD - Final Remarks

24 In PHOENICS, boundary conditions and sources appear on the r.h.s. of the differential equation for a variable . Thus: where:  - the variable in question ρ - density U - vector velocity S  - conventionally recognised source terms, such as pressure gradients or viscous heating terms.   - diffusive exchange coefficient for . S bc1 etc. - various boundary conditions. These may be present only in certain regions of the domain. More terms of this kind may be also be present in other regions of the domain, and these regions may overlap. 3. Boundary Conditions in PHOENICS

25 Nomenclature A compass-point notation: P = Cell center T = Cell center at previous time step N,S,E,W,H,L = Neighbour-cell centers S → N = Positive IY W → E = Positive IX L → H = Positive IZ

26 The differential equation is integrated over a control volume to yield the finite- volume equation actually solved. The integral of the boundary source is represented in linearized form: The finite-volume discretization of the differential equation thus yields, for each cell P in the domain, the following algebraic equation: where:S  - the “true” source C - the coefficient V  - the value T - the type, a geometrical multiplier The Algebraic Equations

27 As a consequence of the integration procedure, the source is required per cell. The units of the source are (  kg/s). The type is used to convert the source from any given set of units. Thus, if the source is defined as “per unit volume”, type supplies the cell volumes. If the source is “per unit area”, type is an appropriate cell face area. Note that TCV is added to the numerator, and TC to the denominator. As will be shown, this allows for easy manipulation of the solution. The Source Term

28 The types of boundary conditions in PHOENICS are: Fixed value Fixed flux / fixed source Linear boundary condition Non-linear boundary condition Wall conditions Inflows and outflows General sources The Types of Boundary Condition in PHOENICS

29 Practical example: we wish to fix the temperature in one corner of a cube to 0.0, and to 1.0 in the diagonally opposite corner. Numerical practice: the value of  can be fixed in any cell by setting C to a large number, and V to the required value. The equation then becomes: Fixed Value Boundary Condition

30 Practical example: heat is being generated at a constant (fixed) rate. Numerical practice: a fixed source can be put into the equation by setting C to a small number, so that the denominator is not changed, and by setting V to (source/C). T then ensures that the final source is per cell. The equation then becomes: Fixed Flux / Fixed Source Boundary Condition

31 Practical example: One of the domain boundaries is losing heat to the surroundings. The external heat transfer coefficient, H (W/m 2 /K), and the external temperature, T ext (K), are both known and constant. Numerical practice: The heat source for a cell with area A is: This is obviously in TC(V -  ) form if T = A, C = H and V=T ext. Non-Linear Boundary Condition The non-linear source can always be linearized into TC(V -  ) form by arranging to update C and/or V during the course of the calculation. Linear Boundary Condition

32 Laminar shear stress at stationary wall is expressed by: where area is the cell face area, Δ y is the distance from the cell face to the cell centre This can be put into TC(V -  ) form if T = area, and V=0. The problem with this approach is that the density and laminar viscosity may be varying, whilst the distance to the wall will change as the grid is refined, and indeed may change from cell to cell in a BFC grid. A special PATCH type is provided which automatically sets: The coefficient is then a further multiplier, which is usually set to 1.0. Laminar Wall Boundary Condition

33 In a turbulent flow, the near-wall grid node normally has to be in the fully-turbulent region, otherwise the assumptions in the turbulence model are invalid. The wall shear stress and heat transfer can no longer be obtained from the simple linear laminar relationships. Unless a low-Reynolds number extension of the turbulence model is used, the normal practice is to bridge the laminar sub-layer with wall functions. These use empirical formulae for the shear stress and heat transfer coefficients. Three types of wall function are available, selected by the COVAL settings: Coefficient GRND1 for Blasius power law Coefficient GRND2 for equilibrium Logarithmic wall function Coefficient GRND3 for Generalised (non-equilibrium) wall function Coefficient GRND5 for Fully-rough equilibrium Logarithmic wall function Turbulent Wall Boundary Condition

34 All mass flow boundary conditions are introduced as linearized sources in the continuity equation, with pressure (P 1 ) as the variable. A mass source is thus: where C m and V m are coefficient and value for P 1. At an inflow boundary, the mass flow is fixed irrespective of the internal pressure. This effect is achieved by setting C m to FIXFLU, and V m to the required mass flow. The sign convention is that inflows are +ve, outflows are -ve. A fixed outflow rate can thus be fixed by setting a negative mass flow. Inflow Boundary Condition

35 Boundary conditions and sources are treated in PHOENICS as linearized sources having the form TC(V -  ). For a variable , the main kinds of boundary conditions are: Fixed-value boundary condition (coefficient = FIXVAL) Fixed-flux boundary condition (coefficient = FIXFLU) Wall-type boundary condition (patch type = *WALL) Linear boundary condition (coefficient = proportionality constant) Boundary conditions for mass and pressure are both treated as linearized sources in the continuity eq., with pressure as the variable in the linear source: TC m (V m – P 1p ). FIXFLU is used as coefficient for the specification of mass fluxes, and FIXVAL or FIXP for fixing the pressure. Boundary conditions must be supplied for all the variables when there is an inflow mass into the domain. This is done by using ONLYMS as coefficient in the COVAL command for the property, and the inflowing value as value. Boundary Conditions in PHOENICS - Final Remarks

36 THE END


Download ppt "Application of Environment Spatial Information System HW – Boundary Conditions Minkasheva Alena Thermal Fluid Engineering Lab. Department of Mechanical."

Similar presentations


Ads by Google