*comdeck,fdASIresu                                                         jas

c *** Copyright ANSYS.  All Rights Reserved.
c *** ansys, inc

c     **********  description of results file  **********

      character*8  ASIRSTNM,ASIRSTNMP
      parameter   (ASIRSTNM='asi     ',ASIRSTNMP='asip    ')

      LONGINT         ASIresufpL
      integer         ASIresubk, ASIresuut
      common /fdASIresu/ ASIresufpL, ASIresubk, ASIresuut

c   ********** common variable descriptions ***********
co  ASIresufpL      file position on file resu
co  ASIresubk       block number for file resu  (usually 9)
co  ASIresuut       file unit for file resu     (0 if not open)  FUN66

c   See fddesc for documentation of how binary files are stored.

c     **********  file format  **********

c        recid tells the identifier for this record.  Not all records will have
c             identifiers -- they are only indicated for those records whose
c             record pointers are stored in a header.

c        type tells what kind of information is stored in this record:
c             i - integer
c             dp - double precision
c             cmp - complex

c        nrec tells how many records of this description are found here

c        lrec tells how long the records are (how many items are stored)

c recid    type    nrec    lrec     contents

c  ---      i       1      100      standard ANSYS file header (see binhed for
c                                   details of header contents)

c  ---      i       1       20      .ASI FILE HEADER

c                                    FUN66,   ASInode, resmax,   numdof,      kan,
c                                    nsets,   ptrend,  ptrDSIl, ptrTIMl,  ptrEnd8,  (10)
c                                    ptrEnd8, cpxrst,  ptrDSIh, ptrTIMh,  ptrLocl,
c                                    ptrLoch, ASIlenu, ASIRegs, ptrRegl,  preRegh   (20)
c                                    ptrNodl, ptrNodh,       0,       0,        0,
c                                          0,       0,       0,       0,        0   (30)    
c                                  each item in header is described below:

c                                   FUN66  - unit number (asi file is 66)
c                                   ASInode- number of asi surface nodes
c                                   resmax - the maximum number of data sets
c                                            allowed on the file (defaults to
c                                            10000; minimum allowed is 10)
c                                   numdof - number of DOFs per node
c                                   kan    - analysis type
c                                   nsets  - number of data sets on the file
c                                   ptrend - pointer to the end of the file
c                                             (see ptrEnd8 in 8,9)
c                                ptrDSIl,h - 64 bit pointer to the data steps
c                                            index table
c                                ptrTIMl,h - 64 bit pointer to the table of time
c                                            values for a load step
c                                ptrLSPl,h - 64 bit pointer to the table of load
c                                            step, substep, and cumulative
c                                            iteration numbers
c                                  ptrEnd8 - 64 bit file pointer to the end of
c                                            the file (i.e., length of file)
c                                  cpxrst  - complex results flag (0-no, 1-yes)

c                                ptrLocl,h - 64 bit pointer to the table of coordinates
c                                   ASIlenu- length of result vector
c                                   ASIRegs- number of regions
c                                ptrRegl,h - 64 bit pointer to the table of reghion nodes
c                                ptrNodl,h - 64 bit pointer to the table of node number
c
c                                   Note: ptrXXX are relative to beginning of file


c   DSI      i       1    2*resmax  Data sets index table. This record contains
c                                   the record pointers for the beginning of
c                                   each data set. The first resmax records are
c                                   the first 32 bits of the index, the second
c                                   resmax records are the second 32 bits. To
c                                   create the 64 bit pointer, use:
c                                     LONGPTR = largeIntGet (first,second)
c                                   Read the solution data header as follows:
c                                     call bioBasePut (nblk,LONGPTR)
c                                     loc = bioiqr (nblk,12)
c                                     call biord (nblk,loc,...
c                                   The rest of the file reading continues to use
c                                   the ptrXXX's that are in the headers.
c                                   first 32 bits [1,resmax]; 
c                                   second 32 bits [resmax+1,2*resmax]

c   TIM     dp       1     resmax   Time/freq table. This record contains the
c                                   time (or frequency) values for each data
c                                   set.





c   LOC     dp       1     4*nnod   This group contains the node number and
c                                   coordinates (in the order - node,X,Y,Z)
c                                   for each node (32 bit version)

c   LOC     dp     nnod      4      (64 bit version)
c                                   node,X,Y,Z for each node
c                                   Nodes are in node number order


c        The solution information is stored starting at this point in the file.
c        The remaining records on the file are repeated as a group nsets times
c        (once for each data set).  Item nsets is defined in the file header.


c * NSL     dp       1  nnod*Sumdof  The DOF solution for each node in the nodal
c                                    coordinate system.  The DOF order is the
c                                    same as shown above in the DOF number
c                                    reference table.  The nodal order is the
c                                    same order given above in the nodal
c                                    equivalence table.  If a DOF for a node
c                                    isn't valid, a value of 2.0**100 is used.
c                                    Note 1: Sumdof = numdof + nfldof.
c                                    Note 2: If, upon reading of this record,
c                                    there is less than nnod*Sumdof items in the
c                                    record, then only a selected set of nodes
c                                    were output. Another record follows
c                                    (integer, less than nnod long) which
c                                    contains the list of nodes for which DOF
c                                    solutions are available.
c                                      (bit 10 (PDBN) in mask)

c   ASL      dp      1 nnod*numadof  The acceleration solution for each node in
c                                    the nodal coordinate system. The
c                                    description for the DOF solution above
c                                    also applies here.
c                                    ANSYS transient. (bit 28 (PDACC) in mask)
