Files
김경종 b7f84e1c0f
Tests / Hermetic test suite (push) Has been cancelled
Tests / Skill frontmatter validation (push) Has been cancelled
add documents
2026-05-29 15:59:56 +09:00

21 KiB
Raw Permalink Blame History

5.1.4 UTILITY ROUTINES FOR ACCESSING THE RESULTS FILE

Products: Abaqus/Standard Abaqus/Explicit

References

• “Accessing the results file information,” Section 5.1.3
• “URDFIL,” Section 1.1.52 of the Abaqus User Subroutines Reference Guide
• “Joining data from multiple results files and converting file format: FJOIN,” Section 15.1.2 of the Abaqus Example Problems Guide
• “Calculation of principal stresses and strains and their directions: FPRIN,” Section 15.1.3 of the Abaqus Example Problems Guide
• “Creation of a perturbed mesh from original coordinate data and eigenvectors: FPERT,” Section 15.1.4 of the Abaqus Example Problems Guide

Overview

The Abaqus results (.fil) file can be accessed with the utility routines described in this section. Access is subsequent to an analysis by a user-written postprocessing program or, in Abaqus/Standard, from within an analysis by user subroutine URDFIL.

The following utility subroutines are available:

• DBFILE (read from a file)
• DBFILW (write to a file)
• DBRNU (set a unit number for a file)
• INITPF (initialize a file)
• POSFIL (determine position in a file; available only in Abaqus/Standard)

These utility subroutines are described below in alphabetical order.

Only the subroutines DBFILE and POSFIL can be called from user subroutine URDFIL.

DBFILE (read from a file)

Interface

CALL DBFILE(LOP,ARRAY,JRCD)

Variable to be provided to the utility routine

LOP

A flag, which you must set before calling DBFILE, indicating the operation. Set LOP=0 to read the next record in the file; set LOP=2 to rewind the file currently being read (for example, if it is necessary

to read the file more than once, it must be rewound since it is a sequential file). If LOP=2 is used, the file must first be read to the end, and it should be rewound only when the end-of-file is reached.

Variables returned from the utility routine

ARRAY

The array containing one record from the file, in the format described in “Results file output format,” Section 5.1.2. When LOP=0, this array will be filled by the data management routines with the contents of the next record in the file as each call to DBFILE is executed. ARRAY must be dimensioned adequately in your routines to contain the largest record in the file. For almost all cases 500 words is sufficient. The exceptions arise if the problem definition includes user elements or user materials that use more than this many state variables or if substructures with a large number of retained degrees of freedom are used (see “Using substructures,” Section 10.1.1, for more details regarding substructures). When the results file has been written on a system on which Abaqus runs in double precision, ARRAY must be declared double precision in your routine.

JRCD

Returned as nonzero if an end-of-file marker is read when DBFILE is called with LOP=0.

DBFILW (write to a file)

Interface

CALL DBFILW(LOP,ARRAY,JRCD)

Variables to be provided to the utility routine

ARRAY

The array containing one record to be written to the file, in the format described in “Results file output format,” Section 5.1.2.

JRCD

Return code (0 record written successfully, 1 record not written).

LOP

Not currently used.

DBRNU (set a unit number for a file)

Interface

CALL DBRNU(JUNIT)

Variable to be provided to the utility routine

JUNIT

The Fortran unit number of the results file to be read. Valid unit numbers are 8 to read the .fil file, 1518, or numbers greater than 100.

INITPF (initialize a file)

Interface

CALL INITPF(FNAME,NRU,LRUNIT,LOUTF)

Variables to be provided to the utility routine

FNAME

A character string defining the root file name (that is, the name without an extension) of the files being read or written. FNAME must be declared as CHARACTER*80 and can include the directory specification as well as the root file name. The extension of each individual file is defined by the LRUNIT array below. See the discussion below for file naming conventions.

NRU

An integer giving the number of results files that the postprocessing program will read. Normally only one results file is read, but sometimes it is necessary to read several results files—for example, to merge them into a single file.

LRUNIT

An integer array that must be dimensioned LRUNIT(2,NRU) in the postprocessing program and must contain the following data before INITPF is called:

LRUNIT(1,K1) is the Fortran unit number on which the K1th results file will be read. Valid unit numbers are 8 to read the .fil file, 1518, or numbers greater than 100. All other units are reserved by Abaqus. See below for naming conventions based on the unit numbers.

LRUNIT(2,K1) is an integer that must be set to 2 if the K1th results file was written as a binary file or set to 1 if the K1th results file was written in ASCII format.

LOUTF

Needs to be defined only if the program that is making the call to INITPF will also write an output file in the Abaqus results file format (for example, if results files are being merged into a single results file or if a results file is being converted from binary to ASCII format). In that case LOUTF should be set to 2 if the output file is to be written as a binary file or set to 1 if the output file is to be written as an ASCII file. This results file will be written with the file name extension .fin. See “Accessing the results file information,” Section 5.1.3, for a discussion of writing results files; see below for information on the naming of this file.

File naming conventions

The file extension is derived from the value of LRUNIT(1,K1). If LRUNIT(1,K1) is 8, the file name will be constructed with the extension fil. Any other unit number will result in a file extension of 0nn, where nn is the number assigned to LRUNIT(1,K1). For example, if LRUNIT(1,K1) is 15, the file extension is .015. If an output file has been indicated by a nonzero value of LOUTF, its extension will be .fin.

For example, to read a file xxxx.fil, set LRUNIT(1,K1) to 8 and the character variable FNAME to xxxx using assignment or data statements. If desired, FNAME can include a directory specification, device name, or path. Operating system environment and shell variables will not be translated properly and, therefore, should not be used.

All error messages generated by Abaqus are written to Fortran unit 6. On most machines error messages will be printed by default directly to the screen if the program is run interactively. You can include an open statement for unit 6 in the main program to redirect messages to a file. If you wish to read or write to units other than those units specified in LRUNIT, OPEN statements for those units may have to be included in the program (depending upon the computer being used). Unit numbers of such auxiliary files should be greater than 100 to avoid any conflict with Abaqus internal files.

POSFIL (determine position in a file)

The POSFIL utility routine is available only in Abaqus/Standard.

Interface

CALL POSFIL(NSTEP,NINC,ARRAY,JRCD)

Variables to be provided to the utility routine

NSTEP

Desired step. If this variable is set to 0, the first available step will be read.

NINC

Desired increment. If this variable is set to 0, the first available increment of the specified step will be read.

Variables returned from the utility routine

ARRAY

Real array containing the values of record 2000 from the results file for the requested step and increment.

JRCD

Return code (0 specified increment found, 1 specified increment not found). If the step and increment requested are not found in the results file, POSFIL will return an error and leave you positioned at the end of the results file.

Positioning with POSFIL

You may find it convenient to call POSFIL with both NSTEP and NINC set to 0 to skip over the information that is written to the results file at the beginning of an analysis (see “Results file output format,” Section 5.1.2) and, thus, start reading from the first increment written to the file.

POSFIL cannot be used to move backward in the results file: you cannot use POSFIL to find a given increment in the file and then make a second call to POSFIL later to read an increment earlier than the first one found. If this is attempted, POSFIL will return an error indicating that the requested increment was not found.

OI.1 Abaqus/Standard OUTPUT VARIABLE INDEX

This index provides a reference to all of the output variables that are available in Abaqus/Standard. Output variables are listed in alphabetical order.

VariablePageVariablePage
A4.2.138ALPHAN4.2.17
ACV4.2.112ALPHAP4.2.17
ACVn4.2.112ALPHAPn4.2.17
ALEAKVR4.2.151AMPCU4.2.159
ALEAKVRB4.2.118An4.2.138
ALEAKVRBXFEM4.2.131AR4.2.138
ALEAKVRT4.2.118ARn4.2.138
ALEAKVRTXFEM4.2.131AT4.2.138
ALLAE4.2.157AZZIT4.2.114
ALLCCDW4.2.157BDSTAT4.2.151
ALLCCE4.2.157BF4.2.129
ALLCCEN4.2.157BICURV4.2.126
ALLCCET4.2.157BIMOM4.2.125
ALLCCSD4.2.158BM4.2.146
ALLCCSDN4.2.157CA4.2.135
ALLCCSDT4.2.158CALPHAF4.2.132
ALLCD4.2.158CALPHAFn4.2.132
ALLDMD4.2.158CALPHAMn4.2.132
ALLEE4.2.158CAn4.2.135
ALLFD4.2.158CAREA4.2.149
ALLIE4.2.158CARn4.2.135
ALLJD4.2.158CASU4.2.134
ALLKE4.2.158CASUC4.2.134
ALLKL4.2.158CASUn4.2.134
ALLPD4.2.158CASURn4.2.134
ALLQB4.2.158CCF4.2.134
ALLSD4.2.158CCFn4.2.134
ALLSE4.2.158CCMn4.2.134
ALLVD4.2.158CCU4.2.134
ALLWK4.2.158CCUn4.2.134
ALPHA4.2.17CCURn4.2.134
ALPHAij4.2.17CD4.2.156
ALPHAk4.2.17CDIF4.2.133
ALPHAk_ij4.2.17CDIFC4.2.133
VariablePage
CDIFn4.2.133
CDIFRn4.2.133
CDIM4.2.133
CDIMC4.2.133
CDIMn4.2.133
CDIMRn4.2.133
CDIP4.2.133
CDIPC4.2.133
CDIPn4.2.133
CDIPRn4.2.133
CDISP4.2.147
CDISPETOS4.2.147
CDMG4.2.133
CDMGn4.2.133
CDMGRn4.2.133
CDSTRESS4.2.147
CE4.2.110
CEAVG4.2.137
CECHG4.2.140
CECUR4.2.140
CEEQ4.2.110
CEERI4.2.137
CEF4.2.131
CEFn4.2.131
CEij4.2.110
CEMAG4.2.111
CEMn4.2.132
CENER4.2.113
CENTMAG4.2.130
CENTRIFMAG4.2.130
CEP4.2.111
CEPn4.2.111
CESW4.2.111
CF4.2.139
CFAILST4.2.135
CFAILSTi4.2.135
CFAILURE4.2.113
CFF4.2.138
CFL4.2.141
VariablePage
CFLn4.2.141
CFn4.2.139
CFN4.2.148
CFNM4.2.148
CFORCE4.2.147
CFS4.2.148
CFSM4.2.148
CFT4.2.148
CFTM4.2.148
CHRGS4.2.128
CIVC4.2.134
CLINELOAD4.2.147
CMn4.2.139
CMN4.2.149
CMNM4.2.149
CMS4.2.149
CMSM4.2.149
CMT4.2.149
CMTM4.2.149
CNAREA4.2.147
CNF4.2.132
CNFC4.2.133
CNFn4.2.133
CNMn4.2.133
CONC4.2.116
CONF4.2.114
COORD4.2.119
4.2.126
4.2.140
COORn4.2.140
CORIOMAG4.2.130
CP4.2.134
CPn4.2.134
CPOINTLOAD4.2.148
CPRn4.2.134
CRACK4.2.114
CRDCUTXFEM4.2.131
CRF4.2.134
CRFn4.2.134
VariablePage
CRKDISP4.2.1-48
CRKSTRESS4.2.1-48
CRMn4.2.1-34
CRPTIME4.2.1-56
CRSTS4.2.1-52
CS114.2.1-11
CSDMG4.2.1-48
4.2.1-51
CSF4.2.1-32
CSFC4.2.1-32
CSFn4.2.1-32
CSLST4.2.1-33
CSLSTi4.2.1-34
CSMAXSCRT4.2.1-48
CSMAXUCRT4.2.1-48
CSMn4.2.1-32
CSQUADSCRT4.2.1-48
CSQUADUCRT4.2.1-48
CSTATUS4.2.1-48
CSTRESS4.2.1-47
CSTRESSERI4.2.1-47
CSTRESSETOS4.2.1-47
CTANDIR4.2.1-48
CTF4.2.1-31
CTFn4.2.1-31
CTMn4.2.1-31
CTRL_INPUT4.2.1-59
CTRQ4.2.1-49
CTSHR4.2.1-11
CTSHRi34.2.1-12
CU4.2.1-34
CUE4.2.1-32
CUEn4.2.1-32
CUn4.2.1-34
CUP4.2.1-32
CUPEQ4.2.1-32
CUPEQC4.2.1-32
CUPEQn4.2.1-32
CUPn4.2.1-32
VariablePage
CUREn4.2.132
CURn4.2.134
CURPEQn4.2.132
CURPn4.2.132
CV4.2.134
CVF4.2.132
CVFn4.2.132
CVMn4.2.132
CVn4.2.135
CVOL4.2.140
CVRn4.2.135
CW4.2.139
CYCLEINI4.2.117
CYCLEINIXFEM4.2.131
DAMAGEC4.2.115
DAMAGEFC4.2.124
DAMAGEFT4.2.124
DAMAGEMC4.2.124
DAMAGEMT4.2.124
DAMAGESHR4.2.124
DAMAGET4.2.115
DAMPRATIO4.2.157
DBS4.2.151
DBSF4.2.151
DBT4.2.151
DELTA_THICKNESS4.2.159
DG4.2.18
DGij4.2.18
DGP4.2.18
DGPn4.2.19
DISP_NORMAL_VAL4.2.160
DISP_OPT4.2.159
4.2.160
DISP_OPT_VAL4.2.159
4.2.160
DMENER4.2.113
DMICRT4.2.117
4.2.124
DUCTCRT4.2.124
VariablePage
E4.2.18
EASEDEN4.2.136
ECD4.2.117
4.2.149
4.2.150
ECDA4.2.149
4.2.150
ECDDEN4.2.136
ECDM4.2.117
ECDn4.2.117
ECDT4.2.149
4.2.150
ECDTA4.2.149
4.2.150
ECTEDEN4.2.136
ECURS4.2.128
EDMDDEN4.2.137
EE4.2.19
EEij4.2.19
EENER4.2.113
EEP4.2.19
EEPn4.2.19
EFENRRTR4.2.152
EFLAVG4.2.137
EFLERI4.2.137
EFLX4.2.116
EFLXM4.2.117
EFLXn4.2.117
EIGFREQ4.2.156
4.2.157
EIGIMAG4.2.157
EIGREAL4.2.157
EIGVAL4.2.156
Eij4.2.18
EKEDEN4.2.136
ELASE4.2.129
ELCD4.2.129
ELCTE4.2.129
ELDMD4.2.129
VariablePage
ELEDEN4.2.136
ELEN4.2.128
ELJD4.2.129
ELKE4.2.128
ELPD4.2.129
ELSD4.2.129
ELSE4.2.128
ELVD4.2.129
EMB4.2.125
EMBF4.2.125
EMBFC4.2.125
EMCD4.2.125
EMCDA4.2.125
EME4.2.125
EMH4.2.125
EMJH4.2.125
EMn4.2.156
ENDEN4.2.137
ENDENERI4.2.137
ENER4.2.112
ENRRT4.2.152
ENRRTXFEM4.2.131
EP4.2.18
EPDDEN4.2.136
EPG4.2.116
EPGAVG4.2.137
EPGERI4.2.137
EPGM4.2.116
EPGn4.2.116
EPn4.2.18
EPOT4.2.139
ER4.2.18
ERij4.2.18
ERP4.2.18
ERPn4.2.18
ERPRATIO4.2.124
ESDDEN4.2.136
ESEDEN4.2.136
ESF14.2.126