2 DOCUMENTATION BFC phoenics online documentations: Introduction,Boundary Conditions andGCV (general colocated velocity method)Tutorials (look for BFC tutorials)Browse at the phoenics input library cases for: BFC and Multblock
3 When To Use BFCsBFCs are particularly suitable for internal or external flows with smoothly-varying non-regular boundaries.For such flows, BFCs provide:good geometric representation,possibility of economical grid refinement close to the surface,good representation of surface boundary layers, and hence of wall friction and heat transfer.BFCs can also be used to reduce numerical "false-diffusion" errors, by aligning the grid with the local flow direction where possible, e.g., for angled jets (inclined fan heater in a room)
4 Columns of cells must continue from one end of the grid to the other, i.e., the mesh is structured. The cells are counted using the same conventions as in Cartesian and polar geometries:1 to NX in the IX-direction1 to NY in the IY-direction1 to NZ in the IZ-directionThe grid corner points must be prescribed by the user, via a Cartesian frame of axes, (XC, YC, ZC).The alignment of the Cartesian axes - and the origin - can be chosen arbitrarily.NOTE: The Cartesian coordinates (XC,YC,ZC) must NOT be confused with the cell-indices (IX,IY,IZ).Note how the Cartesian and grid axes only coincide for the first few cells.Coordinate Systems
5 Structure of the Grid File IX=5IX=1EASTWESTXC, YC and ZC are the Cartesian co-ordinates of the nodes.Note that: I goes from West to East, J goes from South to North, and K goes from Low to High.I, J & K count nodes (cell corners),IX, IY & IZ count cells.NX, NY and NZ are the numbers of cells in the I (IX), J (IY) & K (IZ) directions.
6 Velocity Components Q is the total velocity vector. IYIXQ is the total velocity vector.U1, V1 (and W1) are the SOLVEd velocity resolutes.UCRT, VCRT (and WCRT) are the deduced vector components in the Cartesian coordinate system.UC1, VC1 (and WC1) are the deduced vector components in the grid line directions (the co-located velocities)
7 The Steps In BFC Grid Generation Specify POINTS - provide the Cartesian coordinates of key features of the geometry to be meshedSpecify LINES - join the points by lines, which are divided into segments corresponding to the number of cells which lie along the line. Lines may be straight, arc segments, or spline curves through defined points.Create FRAMES - link the lines to make 2-D FRAMES. Frames always have four corners.MATCH Grid to Frames - match the grid plane to appropriate frames.Form the 3-D Grid - link 2-D grid planes to form a 3-D grid.
8 EACH LINE IS DIVIDED IN POINTS WHICH WILL FORM THE VOLUMES LINESPOINTSEACH LINE IS DIVIDED IN POINTS WHICH WILL FORM THE VOLUMESFORMING THE FRAMESEACH FRAME HAS ALWAYS 4 CORNERSEXTRUDING TO FORM VOLUMESSEE ADDITIONAL INFORMATION AT: Introduction,
9 WORKSHOP#1: SETTING A BFC GRID YX510DIMENSION: NX = 15 & NY = 10Problem dataSet to view plane (XY);click on mesh togle;Select BFC grid
13 WORKSHOP#1 – Step 4 Match a grid Pick the first corner of a FrameMatch the corner with the NODES coordinatesSpecify the first corner direction to the next points. All frames have right-handed axes. Ex: B->C +I & C->D +J(I,J,K)(1,6,1)(I,J,K)(1,1,1)(I,J,K)(6,1,1)RESCUE Q1
15 WORKSHOP#1 – Step 5 Volume Grid along (XY) planeTo create volumes is necessary to extrude the grid along the K direction
16 Inlet Boundary Conditions It is a special b.c. because the mass fluxes are related to the U1, V1, W1 resolute and not to the UCRT, VCRT and WCRT.In general the required angles will vary from cell to cell.Subroutine GXBFC has been provided to calculate the inlet conditions automatically, for the case of uniform inflow.UCRT, VCRT, WCRT and density is non-standard, and simply provides a mechanism for transmission of UIN, VIN, WIN and RHOIN to GXBFCSEE ADDITIONAL INFORMATION AT: Boundary Conditions
17 Use Of Cyclic Boundaries The default setting in PHOENICS is no cyclic conditions, and a symmetry condition is assumed.Cyclic (or periodicity) boundary conditions applies only along the east and west boundaries of XZ plane.The provision for BFCs is intended for turbomachine (and airfoil) applications in which cyclic conditions are needed at the entrance to and exit from the blade passage.To activate x-cyclic boundaries: Group 6, Q1 file:XCYIZ(1,NZ,T) (switches XCYCLE on for all IZ slabs)XCYIZ(1,9,T) (switches XCYCLE on for IZ=1 to 9)case B523 exemplifies the use of x-cyclic boundary conditions for the flow through a cascade of wedges
18 WORKSHOP#1: SET UP A CASE USING BFC plateinletplateModels:elliptic GCV and,solution for Vel & PKECHEMNumerics: 200 iter.Props: Fluid: air(0)Create objects:inlet size: (10,1,1) & -2 m/s,outlet size (5,1,1)blocakge.Note: case B116 has 15x15 volumes.plateoutletRESCUE Q1
20 Automatic Block LinksThe GCV solver uses overlapping cells at block joints. These cells must exist in the individual block grid files.Link automatic is when the blocks blocks share the same IJK orientation and same number of cells
21 A Natural LinkA natural link is when the blocks share the same IJK orientation but not the same number of cellsB2B1SB1 share the north face of L3 with the south face of B2N
22 Basic steps for Multi-Block Setup Plan the decomposition of domain into individual blocks. A possible configuration is shown above. Block 1 is to be 5 x 15 x 1, and Block 2 is to be 15 x 5 x 1.Generate the grid for each individual block. The grid for each block will be generated in a separate mesh-generator session.Combine the grids to form the multi-block grid and define inter-block links. This step involves hand-editing the input Q1 file.Define remainder of the problem (variables, boundary conditions, etc).B2B1
23 Block linksThe GCV solver uses overlapping cells at block joints. These cells must exist in the individual block grid files.Only the linked faces of a block require an extra layer of dummy cells.Block B1 has an extra plane of nodes at J =17 with thickness DY=0.Similarly B2 has an extra plane of nodes at J = 1 with thickness DY =0These extra nodes are most conveniently copied exactly from the 'real' edge nodes, so that they are invisible to any viewing program.See further examples at GCV(15,6)(16,5)J=1J=16J=17DY=0J=2J=6B2B1
24 Linking the blocks in Q1 TALK=T; RUN( 1, 1) BFC=T NUMBLK=2 READCO(GRI+)MPATCH(1,MBL1-2, NORTH,1,NX,NY-1,NY-1,1,NZ,1,1)MPATCH(2,MBL2-1, SOUTH,6,10,2,2,1,NZ,1,1)STOPSee additional information on linking blocks at GCV(15,6)(16,5)J=1J=16J=17DY=0J=2J=6B2B1YX
25 WORKSHOP#2 – Flow in a bifurcation; a natural link Each block’s grid is developed and then linked together.
26 WORKSHOP#2 - Flow in a bifurcation; We will follow the workshop on how to assemble natural links in a pipe bifurcation: wksh multiblock 1.To short the drilling time, please download the q1 file which contains the Points and Lines.After UPLOADING the file start from section: ‘Set grid for first block’ on wksh multiblock 1.
27 WORKSHOP#2 – Blocks’ construction; Hint: before building MGRID2 (left) erase: the volume, the frame and the cells of MGRID1 (right) leaving only the lines.Rescue q1 files at the links: MGRID1 and MGRID2.
28 WORKSHOP#2 – Assembling the case Rescue q1 files at the links: MGRID3, GRI1, GRI2. Save these files at your working directory.
29 Unnatural Block LinksLink is unnatural when the blocks do not share the same IJK orientationYXB1B2B3NSEWBlocks 1&2 and 1&3 are linked 'naturally' - West to East and South to north, whilst the link between 2&3 is 'unnatural' - a North face is linked to a West face.The instructions are in the tutorial: workshop multblock-2; also visit the links: READCO , MPATCH and link the three blocks.
30 Basic steps for Multi-Block Setup Plan the decomposition of domain into individual blocks. A possible configuration is shown above. Each block is to be 5 x 5 x 1.Generate the grid for each individual block. The grid for each block will be generated in a separate mesh-generator session.Combine the grids to form the multi-block grid and define inter- block links. This step involves hand-editing the input Q1 file.Define remainder of the problem (variables, boundary conditions, etc).
31 WORKSHOP#3 - Flow in a disk sector; We will follow the workshop on how to assemble un-natural links in a disk sector: workshop multblock-2To short the drilling time, please download the q1 file which contains the Points and Lines.After UPLOADING the file start from section: ‘Set grid for first block’ on workshop multblock-2
32 WORKSHOP#3 – Blocks’ extrusion parameters UGRID1.q1UGRID2.q1UGRID3.q1BLOCK # B B B Lengthplane plane planefrom/to from/to from/toDirection K to to to dZ = 1Direction J to to to dY = 0Direction I to to to dX = 0
33 WORKSHOP#3 - Matching Blocks q1 code lines TALK=T;RUN(1,1)BFC=TGCV=TNUMBLK=3READCO(UGRI+)MPATCH(1,MBL1.2,WEST,2,2,1,NY-1,1,NZ,1,1)MPATCH(2,MBL2.1,EAST,NX-1,NX-1,1,NY-1,1,NZ,1,1)MPATCH(1,MBL1.3,NORTH,2,NX,NY-1,NY-1,1,NZ,1,1)MPATCH(3,MBL3.1,SOUTH,2,NX,2,2,1,NZ,1,1)MPATCH(2,MBL2.3,NORTH,1,NX-1,NY-1,NY-1,1,NZ,1,1)MPATCH(3,MBL3.2,WEST,2,2,2,NY,1,NZ,1,1)SPEDAT(SET,GCV,MBL3.2,C,WNL)STOPB1B3B2WNNSWEIf the blocks are rotated relative to each other in IJK space (B3 to B2), the block alignment must be specified through SPEDAT command.This string defines how the N, E and H faces of the first block link to the second block. The default, natural, link would be S W L; i.e. North to South, East to West and High to Low, see B1 to B3 and B2 to B1.
34 WORKSHOP#3 - SPEDAT COMMAND & BLOCK ROTATION yxB3NSWEB3 is rotated 90º from B2Blocks’LinkagesB2EWNSENB3SWSPEDAT(SET,GCV,MBL3.2,C,WNL)BLOCK#3 -> N E H BLOCK#2 -> W N LThe string defining the block rotation consists of three letters, which may be any of E W N S H L. The individual characters define the relative orientation between the N, E and H faces of the first block (B2) of the pair of blocks, and the current block (B3) respectively.
35 WORKSHOP#3 – Case setting; Properties: air (0)Model: laminar, activate velocities, CGVNumerics: 100 iteractionsObjectcs: Inlet (V = 1,0 m/s) & Outlet
36 WORKSHOP#3 – ResultsRescue q1 files at the links: UGRID123, UGRI1, UGRI2, UGRI3. Save these files at your working directory.
37 Multblock Application in Complex Geometry The selected figures come from the cases available in the phoenics input library ( Multiblock)
38 Phoenics BFC Generator The Phoenics built-in BFC Generator is helpful for simple problems.If one application demands several ‘natural or unnatural’ links the mesh generation process becomes very complex.In this scneario phoenics BFC generator is not recommended. There are specific software for mesh generation recommended such as: ICEM,
39 Airfoil GridsThe domain size is expressed in terms of the airfoil thickness.Airfoil with finite thickness (present illustration) require Natural and/or Unnatural links, unfortunately. It is not an easy task to do using Phoenics BFC grid generator!
40 C Grids for Finite Thicknes Airfoil ( represent the frames’ corners) (B)(C)(D)(E)(F)(G)(H)(L)B1B2B3B4xyzero thickness trailing edgeB1B2B3(A)(B)(C)(D)(E)(F)(G)(L)B4finite thickness trailing edgeBlocks B1, B2, B3 have natural linksB4 is 180o rotated in regard to B1.Multi Block grid.Provide extra Y cells to B1 and B4SPEDAT(SET,GCV,MBL4.1,C,NEL)Blocks B1, B2, B4 have natural linksB3 is 180o rotated in regard to B4.Multi Block grid.Provide extra Y cells to B4 and B3SPEDAT(SET,GCV,MBL4.3,C,NEL)
41 Finite x Small Thickness Airfoil The small thickness airfoil is gives an approximated solution.The thin airfoil consists of a line and it is easily setup on the BFC mesh generator in phoenics.
43 Natural links for airfoil: grid This grid would be a 2nd choice for the C grid. It still can be improved by changing the inclination of lines L23 & L24 an designing a better number of cells to result in a more orthogonal mesh. One can also design a similar grid for a zero thickness airfoil