next up previous contents index
Next: ASCII3D format Up: Data formats Previous: HDB format   Contents   Index


Moving format

This format is used in VIGIE in the case of flow in a moving boundary, using non-structured meshes. This can also be used for reacting flows. Let's start by the definition of parameters and arrays used:

Note: The writing format can be modified.

Parameters:

Arrays: Moving format: An example:
C
        NDIM = 3
        NELM = 4
C
      REAL COOR(NDIM, NS),  UA(NVAR, NS)
      INTEGER  NU(4,NT), LOGFAC(NFAC), NSFAC(3,NFAC)
C
      INET1 = 60
      INET2 = 59
C      
      NE : read in datas
      NVAR = 4 + NE 
C
C      GEOMETRY DESCRIPTION FILE
C      -------------------------------------
      REWIND(INET1)
C
      WRITE( INET1, 112 ) NS, NT, NFAC
      WRITE( INET1, 115 ) ( ( COOR(I,IS), I= 1, NDIM ), IS= 1, NS )
      WRITE( INET1, 116 ) ( ( NU(K,JT), K= 1, NELM ), JT= 1, NT )
      WRITE( INET1, 116 ) ( LOGFAC(IFAC), IFAC= 1, NFAC )
      WRITE( INET1, 116 ) ( ( NSFAC(I,IFAC), I= 1, NELM - 1 ), IFAC= 1, NFAC )
C      
C      SOLUTION FILE AT TIME  T
C      --------------------------
C
      REWIND(INET2)
C
        WRITE( INET2, 115 ) ( (COOR(I,IS), I= 1, NDIM ), IS= 1, NS )
        WRITE( INET2, 115 ) ( (UA(I,IS), I= 1, NVAR ), IS= 1, NS )
        IF( NE .NE. 1 ) THEN
          READ(INET2,115) ( OMEGA(IS) ,  IS= 1,  NS )
          READ(INET2,115) (  PRES(IS) ,  IS= 1,  NS )
          READ(INET2,115) (  TEMP(IS) ,  IS= 1,  NS )
         ENDIF
        WRITE( INET2, 112 ) KT, T
C
 112  FORMAT( I6, E12.5 )
 113  FORMAT( 3(I6) )
 115  FORMAT( 5(E15.8,2x) )
 116  FORMAT( 10(I8,2x) )

Note: If the ``COOR'' are the same at time T, rewrite them.


next up previous contents index
Next: ASCII3D format Up: Data formats Previous: HDB format   Contents   Index
Robert Fournier 2002-09-13