Subroutine FORMOUT

Prints the contents of an array in TMG TEMPF file format or I-DEAS element data set type 56 universal file format. Use this routine to generate I-DEAS results from any model parameter.

Calling convention:

call formout(title,filename,array,time,isdtp,type)
Arguments Data type Input/Output Description
title Character*40 Call The title of the I-DEAS dataset. This argument is ignored if the file is written in TMG TEMPF format.
filename Character*12 Call

The name of the file. If the format is I-DEAS then the extension '.unv' is added to the filename.

The file is opened in append mode, existing data is not overwritten.

array Real(*) Call

Array that contains a value for every element in the model. array(j) is the value associated with internal element j.

The file is written using external element numbers.

array must be dimensioned to at least maxno. If array(j) contains the value –1.2E34, no value is written for internal element j.

time Real Call The time value associated with the data.
isdtp Integer Call

Data type code for I-DEAS data type. The value is in the range from 0 to 18. The common values are:

  • unknown
  • temperature
  • heat gradient

This field is ignored if for TEMPF formatted files.

type Character*5 Call

File type.

type ='TEMPF' for TMG TEMPF format, type ='IDEAS'for I-DEAS element dataset type 56.

Example:

call formout('voltages for heater 12','volts',v,time,0,'IDEAS')