| 1 | SUBROUTINE PLAN3 (IGEOM)
|
|---|
| 2 | C-----------------------------------------------------------------------
|
|---|
| 3 | C
|
|---|
| 4 | C Compute pressure and velocity using consistent approximation spaces.
|
|---|
| 5 | C Operator splitting technique.
|
|---|
| 6 | C
|
|---|
| 7 | C-----------------------------------------------------------------------
|
|---|
| 8 | include 'SIZE'
|
|---|
| 9 | include 'INPUT'
|
|---|
| 10 | include 'EIGEN'
|
|---|
| 11 | include 'SOLN'
|
|---|
| 12 | include 'TSTEP'
|
|---|
| 13 | C
|
|---|
| 14 | COMMON /SCRNS/ RESV1 (LX1,LY1,LZ1,LELV)
|
|---|
| 15 | $ , RESV2 (LX1,LY1,LZ1,LELV)
|
|---|
| 16 | $ , RESV3 (LX1,LY1,LZ1,LELV)
|
|---|
| 17 | $ , DV1 (LX1,LY1,LZ1,LELV)
|
|---|
| 18 | $ , DV2 (LX1,LY1,LZ1,LELV)
|
|---|
| 19 | $ , DV3 (LX1,LY1,LZ1,LELV)
|
|---|
| 20 | COMMON /SCRVH/ H1 (LX1,LY1,LZ1,LELV)
|
|---|
| 21 | $ , H2 (LX1,LY1,LZ1,LELV)
|
|---|
| 22 | C
|
|---|
| 23 | IF (IGEOM.EQ.1) THEN
|
|---|
| 24 | C
|
|---|
| 25 | C Old geometry
|
|---|
| 26 | C
|
|---|
| 27 | CALL MAKEF
|
|---|
| 28 | C
|
|---|
| 29 | ELSE
|
|---|
| 30 | C
|
|---|
| 31 | C New geometry, new b.c.
|
|---|
| 32 | C
|
|---|
| 33 | intype = -1
|
|---|
| 34 | call sethlm (h1,h2,intype)
|
|---|
| 35 | call cresvif (resv1,resv2,resv3,h1,h2)
|
|---|
| 36 |
|
|---|
| 37 | call ophinv (dv1,dv2,dv3,resv1,resv2,resv3,h1,h2,tolhv,nmxv)
|
|---|
| 38 | call opadd2 (vx,vy,vz,dv1,dv2,dv3)
|
|---|
| 39 | c
|
|---|
| 40 | call incomprn(vx,vy,vz,pr)
|
|---|
| 41 | C
|
|---|
| 42 | ENDIF
|
|---|
| 43 | C
|
|---|
| 44 | RETURN
|
|---|
| 45 | END
|
|---|
| 46 | C
|
|---|
| 47 | SUBROUTINE LAGPRES
|
|---|
| 48 | C--------------------------------------------------------------------
|
|---|
| 49 | C
|
|---|
| 50 | C Keep old pressure values
|
|---|
| 51 | C
|
|---|
| 52 | C--------------------------------------------------------------------
|
|---|
| 53 | include 'SIZE'
|
|---|
| 54 | include 'SOLN'
|
|---|
| 55 | include 'TSTEP'
|
|---|
| 56 |
|
|---|
| 57 | common /cgeom/ igeom
|
|---|
| 58 |
|
|---|
| 59 | IF (NBDINP.EQ.3.and.igeom.le.2) THEN
|
|---|
| 60 | NTOT2 = lx2*ly2*lz2*NELV
|
|---|
| 61 | CALL COPY (PRLAG,PR,NTOT2)
|
|---|
| 62 | ENDIF
|
|---|
| 63 | RETURN
|
|---|
| 64 | END
|
|---|
| 65 | C
|
|---|
| 66 | subroutine cresvif (resv1,resv2,resv3,h1,h2)
|
|---|
| 67 | C---------------------------------------------------------------------
|
|---|
| 68 | C
|
|---|
| 69 | C Compute startresidual/right-hand-side in the velocity solver
|
|---|
| 70 | C
|
|---|
| 71 | C---------------------------------------------------------------------
|
|---|
| 72 | include 'SIZE'
|
|---|
| 73 | include 'TOTAL'
|
|---|
| 74 | REAL RESV1 (LX1,LY1,LZ1,1)
|
|---|
| 75 | REAL RESV2 (LX1,LY1,LZ1,1)
|
|---|
| 76 | REAL RESV3 (LX1,LY1,LZ1,1)
|
|---|
| 77 | REAL H1 (LX1,LY1,LZ1,1)
|
|---|
| 78 | REAL H2 (LX1,LY1,LZ1,1)
|
|---|
| 79 | COMMON /SCRUZ/ W1 (LX1,LY1,LZ1,LELV)
|
|---|
| 80 | $ , W2 (LX1,LY1,LZ1,LELV)
|
|---|
| 81 | $ , W3 (LX1,LY1,LZ1,LELV)
|
|---|
| 82 |
|
|---|
| 83 | common /cgeom/ igeom
|
|---|
| 84 |
|
|---|
| 85 | NTOT1 = lx1*ly1*lz1*NELV
|
|---|
| 86 | NTOT2 = lx2*ly2*lz2*NELV
|
|---|
| 87 | if (igeom.eq.2) CALL LAGVEL
|
|---|
| 88 | CALL BCDIRVC (VX,VY,VZ,v1mask,v2mask,v3mask)
|
|---|
| 89 | CALL BCNEUTR
|
|---|
| 90 | C
|
|---|
| 91 | call extrapp (pr,prlag)
|
|---|
| 92 | call opgradt (resv1,resv2,resv3,pr)
|
|---|
| 93 | CALL OPADD2 (RESV1,RESV2,RESV3,BFX,BFY,BFZ)
|
|---|
| 94 | CALL OPHX (W1,W2,W3,VX,VY,VZ,H1,H2)
|
|---|
| 95 | CALL OPSUB2 (RESV1,RESV2,RESV3,W1,W2,W3)
|
|---|
| 96 | C
|
|---|
| 97 | RETURN
|
|---|
| 98 | END
|
|---|
| 99 | c-----------------------------------------------------------------------
|
|---|