12.1.5 Output radiation viewfactors and facet areas: FRAD

Product: ABAQUS/Standard  

This example illustrates the use of a FORTRAN program to read the radiation viewfactors and the facet areas from the results file.

General description

The program shows how to retrieve the viewfactors and the facet areas from the results file. The results file created from the benchmark problem detailed in Axisymmetric elemental cavity radiation viewfactor calculations, Section 1.6.6 of the ABAQUS Benchmarks Manual, is used to verify that the output records have been read and output correctly. This program will assume that the results file has the default file extension, .fil, which corresponds to FORTRAN unit 8.

Programming details

Before proceeding, review the general discussion on programming concepts and ABAQUS FORTRAN interfaces in User postprocessing of ABAQUS results files: overview, Section 12.1.1, and the detailed discussion of postprocessing given in Chapter 5, File Output Format,” of the ABAQUS Analysis User's Manual.

When running the program FRAD (this program is named frad.f on the ABAQUS release media), the user will be prompted for the file name that initializes FNAME. Other variables, such as LOUTF, NRU, LRUNIT(1,NRU), and LRUNIT(2,NRU), are initialized inside the program. INITPF and DBNRU are then called to complete the necessary initializations and file connections. By default, the results file is processed for all steps and increments in the results file. The user can restrict the output by setting LSTEPA and LINCA to the required step and increment and uncommenting the simple IF - END IF block. Data processing starts with a DO-loop over all the records to be read, one-by-one, by means of a call to DBFILE. Each record is identified by its record key, which is stored in the second entry of the record. When records 1922 and 2000 are processed by FRAD, the heading and the current step and increment numbers are written out so as to provide a way to recognize the beginning of data in each analysis. Record types 1605, 1606, 1607, and 1609 are then read; and the desired output is written to the output file vfout.

Program compilation and linking

Before it can be executed, the FORTRAN program must be compiled and linked. Both operations, as well as the inclusion of the aba_param.inc file, are performed by a single execution of the abaqus make utility:

abaqus make job=frad
This procedure may have to be repeated until all FORTRAN errors are corrected. After successful compilation, the program's object code is linked automatically with the ABAQUS object codes stored in the shared program library and the interface library to build the executable program. Refer to the ABAQUS Installation and Licensing Guide for information about the compile and link commands for a particular computer.

Program execution

Before the program is executed, a results file must have been created with the desired output being written to that file. In this example the results file xrvda4n1.fil created by running the input file xrvda4n1.inp discussed in Axisymmetric elemental cavity radiation viewfactor calculations, Section 1.6.6 of the ABAQUS Benchmarks Manual, is used. When the program is executed using the command abaqus frad, the prompt

Enter the name of the input file (w/o .fil):
will appear. Enter xrvda4n1 to define FNAME. The program processes the data and produces a file named vfout, which contains the required information.

Results and discussion

The radiation viewfactors and facet areas are read and output to vfout. The output agrees with the expected results.

Input file

frad.f

Postprocessing program.