Encyclopaedia Index

Part 4. Non-BFC examples

CONTENTS

  1. Case 1. Cartesian grid, regions

  2. Case 2. Polar grid, regions

  3. Case 3. Cartesian grid, objects

  4. Case 4. Time step distribution

    Case 1 Cartesian grid, regions

    
    
    NREGX=2
    
    IREGX=1;GRDPWR(X,4,2.0,1.0)
    
    IREGX=2;GRDPWR(X,5,1.5,1.0)
    
    

    NREGY=3 IREGY=1;GRDPWR(Y,2,3.0,1.0) IREGY=2;GRDPWR(Y,5,3.0,1.5) IREGY=3;GRDPWR(Y,3,1.0,1.0)

    Fig d50

    Case 2 Polar grid, regions

    
    
    CARTES=F;RINNER=2
    
    

    NREGX=2 IREGX=1;GRDPWR(X,4,2.0,1.0) IREGX=2;GRDPWR(X,5,1.5,1.0)

    NREGY=3 IREGY=1;GRDPWR(Y,2,3.0,1.0) IREGY=2;GRDPWR(Y,5,3.0,1.5) IREGY=3;GRDPWR(Y,3,1.0,1.0)

    Fig d51

    Case 3 Cartesian grid, objects

    
    
    RSET(D,TEST,.5,2.,3.,1,0)
    
    RSET(B,BLK,.2,.5,1.,.3,.4,.4,15,0)
    
    RSET(B,INL,0.,0.,0.,.5,1.,0.,6,0)
    
    RSET(B,OUT,0.,1.5,3.,.5,.5,0.,10,0)
    
    RSET(M,10,10,10)
    
    RSET(V,2)
    
    

    GVIEW(P) GGRID(I,1,1,NY+1,1,NZ+1,1,0) GGRID(J,1,1,NX+1,1,NZ+1,1,0) GGRID(K,1,1,NX+1,1,NY+1,1,0) GDRAW

    Fig d52

    Case 4: time-step specification

    
    
    STEADY=F
    
    

    RSET(U,0.0,10.0,20) RSET(T,L,0,3.0) RSET(T,1,10,1.0) RSET(T,2,10,2.0)

    PTIME(1,LSTEP+1,1,0) GDRAW

    Fig d53

    JJS