Encyclopaedia Index

Part 3. BFC GRID GENERATION EXAMPLES

Contents

BFC grid generation examples Case 1

Case 1. Flow around splitter plate

```

BFC=T

GSET(D,1,15,15,1,2,3)

GSET(C,J8,F,J1,1,1,1,5,+,0,.6,0,INC,1.0)

GSET(T,J16,F,J8,1,1,1,5,1.0)

GSET(C,J8,F,J16,1,1,11,15,+,0,-.6,0,INC,1.0)

GSET(T,J8,F,J1,1,1,11,15,1.0)

GSET(T,K11,F,K6,1.0)

```

BFC grid generation examples Case 1

```

BFC=T

GSET(D,1,15,15,1,2,3)

```

BFC grid generation examples Case 1

```

BFC=T

GSET(D,1,15,15,1,2,3)

GSET(C,J8,F,J1,1,1,1,5,+,0,.6,0,INC,1.0)

```

BFC grid generation examples Case 1

```

BFC=T

GSET(D,1,15,15,1,2,3)

GSET(C,J8,F,J1,1,1,1,5,+,0,.6,0,INC,1.0)

GSET(T,J16,F,J8,1,1,1,5,1.0)

```

BFC grid generation examples Case 1

```

BFC=T

GSET(D,1,15,15,1,2,3)

GSET(C,J8,F,J1,1,1,1,5,+,0,.6,0,INC,1.0)

GSET(T,J16,F,J8,1,1,1,5,1.0)

GSET(C,J8,F,J16,1,1,11,15,+,0,-.6,0,INC,1.0)

```

BFC grid generation examples Case 1

```

BFC=T

GSET(D,1,15,15,1,2,3)

GSET(C,J8,F,J1,1,1,1,5,+,0,.6,0,INC,1.0)

GSET(T,J16,F,J8,1,1,1,5,1.0)

GSET(C,J8,F,J16,1,1,11,15,+,0,-.6,0,INC,1.0)

GSET(T,J8,F,J1,1,1,11,15,1.0)

```

BFC grid generation examples Case 1

```

BFC=T

GSET(D,1,15,15,1,2,3)

GSET(C,J8,F,J1,1,1,1,5,+,0,.6,0,INC,1.0)

GSET(T,J16,F,J8,1,1,1,5,1.0)

GSET(C,J8,F,J16,1,1,11,15,+,0,-.6,0,INC,1.0)

GSET(T,J8,F,J1,1,1,11,15,1.0)

GSET(T,K11,F,K6,1.0)

```

BFC grid generation examples Case 2

Case 2. 2D duct with bend and expansion

```

BFC=T

GSET(D,30,8,1,30.,2.,1.)

GSET(C,I11,F,I6,RZ,3.1416/2,5,6,INC,1)

GSET(C,I31,F,I11,+,0,14,0,INC,1)

GSET(C,J1,F,J1,16,20,1,1,+,2,0,0)

GSET(C,J9,F,J1,16,20,1,1,+,-6,0,0,INC,1)

GSET(T,I16,F,I11,1.0)

GSET(T,I26,F,I21,1.0)

```

BFC grid generation examples Case 2

```

BFC=T

GSET(D,30,8,1,30.,2.,1.)

```

BFC grid generation examples Case 2

```

BFC=T

GSET(D,30,8,1,30.,2.,1.)

GSET(C,I11,F,I6,RZ,3.1416/2,5,6,INC,1)

```

BFC grid generation examples Case 2

```

BFC=T

GSET(D,30,8,1,30.,2.,1.)

GSET(C,I11,F,I6,RZ,3.1416/2,5,6,INC,1)

GSET(C,I31,F,I11,+,0,14,0,INC,1)

```

BFC grid generation examples Case 2

```

BFC=T

GSET(D,30,8,1,30.,2.,1.)

GSET(C,I11,F,I6,RZ,3.1416/2,5,6,INC,1)

GSET(C,I31,F,I11,+,0,14,0,INC,1)

GSET(C,J1,F,J1,16,20,1,1,+,2,0,0)

GSET(C,J9,F,J1,16,20,1,1,+,-6,0,0,INC,1)

```

BFC grid generation examples Case 2

```

BFC=T

GSET(D,30,8,1,30.,2.,1.)

GSET(C,I11,F,I6,RZ,3.1416/2,5,6,INC,1)

GSET(C,I31,F,I11,+,0,14,0,INC,1)

GSET(C,J1,F,J1,16,20,1,1,+,2,0,0)

GSET(C,J9,F,J1,16,20,1,1,+,-6,0,0,INC,1)

GSET(T,I16,F,I11,1.0)

GSET(T,I26,F,I21,1.0)

```

BFC grid generation examples Case 3

Case 3. Turnaround duct

```

BFC=T

GSET(D,1,10,20,5.0,30.0,100.0)

GSET(C,K21,F,K21,+,0.0,110.0,0.0)

GSET(C,K17,F,K21,+,0.0,0.0,-100.0,INC,1.0)

GSET(C,K5,F,K17,RX,-3.14159,95.0,0.0,INC,1.0)

GSET(C,K1,F,K5,+,0.0,0.0,100.0,INC,1.0)

```

BFC grid generation examples Case 3

```

BFC=T

GSET(D,1,10,20,5.0,30.0,100.0)

```

Set the grid dimension as:

```

NX=1

NY=10

NZ=20

```

and the grid extensions are:

```

XULAST=  5.0 meters

YVLAST= 30.0 meters

ZWLAST=100.0 meters

```

BFC grid generation examples Case 3

```

BFC=T

GSET(D,1,10,20,5.0,30.0,100.0)

0.0,110.0,0.0)

```

Move grid plane K21 to a new position which is 110.0 meter away in y direction from its old position.

BFC grid generation examples Case 3

```

BFC=T

GSET(D,1,10,20,5.0,30.0,100.0)

GSET(C,K21,F,K21,+,0.0,110.0,0.0)

GSET(C,K17,F,K21,+,0.0,0.0,-100.0,INC,1.0)

```

Relate to K21 plane, set K17 plane to be -100.0 meter away in X direction and set the intermediat planes (i.e. K18, K19, K20 planes) with a uniform distribution.

BFC grid generation examples Case 3

```

BFC=T

GSET(D,1,10,20,5.0,30.0,100.0)

GSET(C,K21,F,K21,+,0.0,110.0,0.0)

GSET(C,K17,F,K21,+,0.0,0.0,-100.0,INC,1.0)

GSET(C,K5,F,K17,RX,-3.14159,95.0,0.0,INC,1.0)

```

Set K5 plane to a position which is defined by rotation K17 plane -3.14159 radius around an axis which is in X direction and has an origine (95.0,0.0) in Y-Z coordinate plane.

Intermediate planes are also set by the rotating.

BFC grid generation examples Case 3

```

BFC=T

GSET(D,1,10,20,5.0,30.0,100.0)

GSET(C,K21,F,K21,+,0.0,110.0,0.0)

GSET(C,K17,F,K21,+,0.0,0.0,-100.0,INC,1.0)

GSET(C,K5,F,K17,RX,-3.14159,95.0,0.0,INC,1.0)

GSET(C,K1,F,K5,+,0.0,0.0,100.0,INC,1.0)

```

Complete the grid generation by pushing K5 plane in Z direction to form K1 plane. Intermediat planes are also set.

BFC grid generation examples Case 4

Case 4. Flow over hill

```

REAL(PI,DD,RR,AN,Z1,Y1,Y2);PI=3.14159;DD=0.5;RR=0.2;AN=40

AN=AN*PI/180.

Z1=RR*SIN(AN);Y1=DD*TAN(AN)-RR/COS(AN)+RR*COS(AN)

Y2=DD*TAN(AN)-RR/COS(AN)+RR

BFC=T

GSET(P,A,0,0,-1);GSET(P,B,0,0,1);GSET(P,C,0,1,1);GSET(P,D,0,1,-1)

GSET(P,E1,0,0,-DD);GSET(P,E2,0,Y1,-Z1)

GSET(P,E3,0,Y1,Z1);GSET(P,E4,0,0,DD)

GSET(L,A1,A,E1,4);GSET(L,12,E1,E2,4)

GSET(L,23,E2,E3,4,ARC,0,Y2,0)

GSET(L,34,E3,E4,4);GSET(L,4B,E4,B,4)

GSET(L,BC,B,C,10);GSET(L,CD,C,D,20)

GSET(L,DA,D,A,10)

GSET(F,F1,A,E1.E2.E3.E4,B,-

GSET(M,F1,+K+J,1,1,1,LAP30.FFFTFF)

GSET(C,I2,F,I1,+,.1,0,0);GSET(I)

```

BFC grid generation examples Case 4

```

REAL(PI,DD,RR,AN,Z1,Y1,Y2)

PI=3.14159;DD=0.5;RR=0.2;AN=40

AN=AN*PI/180.

Z1=RR*SIN(AN)

Y1=DD*TAN(AN)-RR/COS(AN)+RR*COS(AN)

Y2=DD*TAN(AN)-RR/COS(AN)+RR

BFC=T

GSET(P,A,0,0,-1)

GSET(P,B,0,0,1)

GSET(P,C,0,1,1)

GSET(P,D,0,1,-1)

GSET(P,E1,0,0,-DD)

GSET(P,E2,0,Y1,-Z1)

GSET(P,E3,0,Y1,Z1)

GSET(P,E4,0,0,DD)

```

BFC grid generation examples Case 4

```

GSET(L,A1,A,E1,4)

GSET(L,12,E1,E2,4)

GSET(L,23,E2,E3,4,ARC,0,Y2,0)

GSET(L,34,E3,E4,4)

GSET(L,4B,E4,B,4)

GSET(L,BC,B,C,10)

GSET(L,CD,C,D,20)

GSET(L,DA,D,A,10)

```

BFC grid generation examples Case 4

```

GSET(F,F1,A,E1.E2.E3.E4,B,-,C,-,D,-)

```

BFC grid generation examples Case 4

```

GSET(D,1,10,20)

```

BFC grid generation examples Case 4

```

GSET(M,F1,+K+J,1,1,1,LAP30.FFFTFF)

GSET(C,I2,F,I1,+,.1,0,0)

```

BFC grid generation examples Case 4

Case 5. Valve

GSET(I)

BFC grid generation examples Case 5

```

TALK=T;RUN(1,1);VDU=WINDOWED

BFC=T

GSET(P,A,0,-.1,0)

GSET(P,B,0,0,0)                                See picture on a later page

GSET(P,C,0,0,0.25)

GSET(P,D,0,-.07,0.25)

GSET(P,E,0,-.1,0.3)

GSET(P,F,0,-.1,0.4)

GSET(P,G,0,-.15,0.4)

GSET(P,H,0,-.15,0.2)

GSET(L,L1,A,B,10)

GSET(L,L2,B,C,9)

GSET(L,L3,C,D,4)

GSET(L,L4,D,E,2)

GSET(L,L5,E,F,4)

GSET(L,L6,F,G,6)

GSET(L,L7,G,H,6,1.0,ARC,0,-.2,.3)

GSET(L,L8,D,H,6)

GSET(V,V1,S,A,SPLINE)

GSET(V,0,-.09,.08)

GSET(V,0,-.08,.14)

GSET(V,V1,E,H)

GSET(L,L9,A,H,9,1.0CRVV1)

GSET(F,F1,A,-,B,-,C,D,H,-)

GSET(F,F2,H,-,D,E,F,-,G,-)

GSET(D,20,20,15,.1,.2,.4)

GSET(M,F1,-J+K,1,11,1,LAP10.FFTFFF)

GSET(M,F2,-J+K,1,11,10,TRANS)

GSET(C,I21,F,I1,RZ,-3.14159*2,0,0,INC,1)

GSET(I)

GSET(P,A,-0.707*0.05,0.6,0.35-0.707*0.05)

GSET(P,B, 0.707*0.05,0.6,0.35-0.707*0.05)

GSET(P,C, 0.707*0.05,0.6,0.35+0.707*0.05)

GSET(P,D,-0.707*0.05,0.6,0.35+0.707*0.05)

GSET(L,L1,A,B,6,1.0,ARC,0,0.6,0.35-0.05)

GSET(L,L2,B,C,6,1.0,ARC,0.05,0.6,0.35)

GSET(L,L3,C,D,6,1.0,ARC,0,0.6,0.35+0.05)

GSET(L,L4,D,A,6,1.0,ARC,-0.05,0.6,0.35)

GSET(F,F1,A,-,B,-,C,-,D,-)

GSET(M,F1,+I+K,8,21,10)

GSET(C,J14,F,J21,8,13,10,15,+,0.0,-0.3,0.0,INC,1.0)

GSET(T,J14,F,J11,8,13,10,15,1.0)

GSET(B,7,12,5,13,10,15,TRANS)

GSET(I)

STOP

```

BFC grid generation examples Case 5

```

BFC=T

GSET(P,A,0,-.1,0);GSET(P,B,0,0,0)

GSET(P,C,0,0,0.25);GSET(P,D,0,-.07,0.25)

GSET(P,E,0,-.1,0.3);GSET(P,F,0,-.1,0.4)

GSET(P,G,0,-.15,0.4);GSET(P,H,0,-.15,0.2)

GSET(L,L1,A,B,10);GSET(L,L2,B,C,9)

GSET(L,L3,C,D,4);GSET(L,L4,D,E,2)

GSET(L,L5,E,F,4);GSET(L,L6,F,G,6)

GSET(L,L7,G,H,6,1.0,ARC,0,-.2,.3)

GSET(L,L8,D,H,6)

GSET(V,V1,S,A,SPLINE);GSET(V,0,-.09,.08)

GSET(V,0,-.08,.14);GSET(V,V1,E,H)

GSET(L,L9,A,H,9,1.0CRVV1)

GSET(F,F1,A,-,B,-,C,D,H,-)

GSET(F,F2,H,-,D,E,F,-,G,-)

```

BFC grid generation examples Case 5

```

GSET(D,20,20,15,.1,.2,.4)

GSET(M,F1,-J+K,1,11,1,LAP10.FFTFFF)

GSET(M,F2,-J+K,1,11,10,TRANS)

```

BFC grid generation examples Case 5

```

GSET(C,I21,F,I1,RZ,-3.14159*2,0,0,INC,1)

```

BFC grid generation examples Case 5

```

GSET(I)

GSET(P,A,-0.707*0.05,0.6,0.35-0.707*0.05)

GSET(P,B, 0.707*0.05,0.6,0.35-0.707*0.05)

GSET(P,C, 0.707*0.05,0.6,0.35+0.707*0.05)

GSET(P,D,-0.707*0.05,0.6,0.35+0.707*0.05)

GSET(L,L1,A,B,6,1.0,ARC,0,0.6,0.35-0.05)

GSET(L,L2,B,C,6,1.0,ARC,0.05,0.6,0.35)

GSET(L,L3,C,D,6,1.0,ARC,0,0.6,0.35+0.05)

GSET(L,L4,D,A,6,1.0,ARC,-0.05,0.6,0.35)

GSET(F,F1,A,-,B,-,C,-,D,-)

GSET(M,F1,+I+K,8,21,10)

```

BFC grid generation examples Case 5

```

GSET(C,J14,F,J21,8,13,10,15,+,0.0,-0.3,0.0,INC,1.0)

```

BFC grid generation examples Case 5

```

GSET(T,J14,F,J11,8,13,10,15,1.0)

```

************************** See picture on next page **************************

BFC grid generation examples Case 5

```

GSET(B,7,12,5,13,10,15,TRANS)

GSET(I)

```

JJS