UG_IO SimSys UFUNC 2D Function Data File Type

An UFUNC file contains 2D field function data (scalar and/or vector).

 { Number_of_Nodes, Number_of_Scalar_Functions, Number_of_Vector_Functions }

 [ { Function_Label } for scalar function 1,
   { Function_Label } for scalar function 2,
   ...
   { Function_Label } for scalar function Number_of_Scalar_Functions ]

 [ { Function_Label } for vector function 1,
   { Function_Label } for vector function 2,
   ...
   { Function_Label } for vector function Number_of_Vector_Functions ]

 [ { scalar function data at each node } for scalar function 1,
   { scalar function data at each node } for scalar function 2,
   ...
   { scalar function data at each node } for scalar function
     Number_of_Scalar_Functions ]

 [ { (X,Y) vector function data at each node } for vector function 1,
   { (X,Y) vector function data at each node } for vector function 2,
   ...
   { (X,Y) vector function data at each node } for vector function
     Number_of_Vector_Functions ]

 Number_of_Nodes		: Number of grid nodes.
 Number_of_Scalar_Functions	: Number of scalar functions.
 Number_of_Vector_Functions	: Number of vector functions.
 Function_Label			: Function label.

In the above description, the brackets [ ... ] enclose items in a loop, and braces { ... } enclose items in a single logical record.

In C or C++ Function Label must be declared as "char Function_Label[21]". For example,

	char Function_Label[21];
	strcpy (Function_Label, 'label_for_function');

Do not use more than 20 characters plus the terminating \0 per function label. In Fortran, Function_Label must be declared as "character*21 Function_Label". For example,

	character*21 Function_Label
	Function_Label = 'label_for_function   '

In Fortran, do not use more than 20 characters of text per label. The last location (location 21 out of 21) must be blank.

In FORTRAN unformatted form, the data must be written out or read in using the record format defined above. The floating point data items must all be either real*4 or real*8 data.

In C binary form, the data may be written out or read in using records the length of loops or of the individual data items. The floating point data items must all be either float or double data.

In ASCII formatted form, the data may be written out or read in using records the length of loops or of the individual data items. Data items may be written out in free format of any specific form.

Up One Level

UG_IO SimSys Files Home