File Creation Support Tool

File Creation Support Tool

What is the File Creation Support Tool ?

The file creation support tool creates the MicroAVS structured cell data referen ce type data file semi- automatically. For more about the reference type data format, refer Chapter 5, S ection 5-3 [Reference Type Format for Structured Cell Data] in the MicroAVS Users Guide.


Using the File Creation Support Tools

Sample File

For example, we will now create a structured cell data file to read in the scat2ds file shown below in MicroAVS. This file is the same as the example shown in Chapter 5 section 5-3-2- 1 [For 2D Scatter Scalar data]. To read in this kind of file, a structured data file called scat2ds.fld i s required. This file has to be created using one of the editors. However, this file can be easily created using the menus in the File Creation Support Tools.
Here, we illustrate how the file scat2ds.fld can be created using the file creat ion support tool.


Procedure for file Creation

Step 1 Running the file creation support tool

Step 2 Specification of the dimension of the calculation space and size

Step 3 Specification of the dimension of the physical space

Step 4 Specification of the data type

Step 5 Specification of ASCII or binary

Step 6 Specification of the number of data components

Step 7 Specification of the reference file for data values

Step 8 Specification of information related to coordinate values.

Step 9 Specification of the reference file for coordinate values.

Step 10 Ascertaining completion

Step 11 Save file

Step 1 Running the file creation support tool

MicroAVS related menus are added to the [Start]-[Programs] in the main menu when MicroAVS is installed. Among these menus, there is an item called [File Creation Support tool]. Select this item. Then, a panel such as the one shown below appears. This is the file creation support to ol menu.

Step 2 Specification of the dimension of the calculation space and size

First, click on the [Create Structured Data file ] button. Then, a panel such as the one shown below appears.
First, specify the dimension of the calculation space. This corresponds to the setting of the ndim keyword in the header portion of the structured data file. In this example, the data is of scatter type, so select [Scatter type] from [Data dimension] in the menu.

Next, define the size. This corresponds to the keyword dim1.
In this example, th e number of data is 10, so set the value of [X] in [Size of each axis] to 10. With this, this setting is complete.

Press [Next] to go to the next menu.

Step 3 Specification of the dimension of the physical space

This menu is used to specify the dimension of the physical space. This correspon ds to the setting of the nspace keyword in the header portion. In this example, both X and Y coordinates are defined and so we know that data exists on a 2D plane. Select [2D] from [Display dimension] in the menu.

With this, this setting is complete. Press [Next] to go to the next menu.

Step 4 Specification of the data type

This menu is used to specify the data type. This corresponds to the setting of the data keyword in the header portion. Since the data in this example is of float type, select [float] from [ Data Type] in the menu.

With this, this setting is complete. Press [Next] to go to the next menu.

Step 5 Specification of ASCII or binary

This menu is used to specify whether the data file to be referenced is ASCII or binary. This corresponds to the setting of the filetype keyword in the line starting with variable in the he ader portion. Since the file to be referenced (scat2ds) in this example is an ASCII file, select [ASCII] from [ Data Input Type] in the menu.

With this, this setting is complete. Press [Next] to go to the next menu.

Step 6 Specification of the number of data components

This menu is used to specify the number of data components. This corresponds to the setting of the keyword veclen in the header portion. Since the number of components in this example is 1, set [Number of data components] to 1 in the menu.

With this, this setting is complete. Press [Next] to go to the next menu.

Step 7 Specification of the reference file for data values

This menu is used to specify the reference data file name and the referencing me thod. This corresponds to the setting of keywords other than the filetype keyword in the line starting with variable in the header portion.
The file to be referenced in this example is scat2ds and the first lin e of this file is a comment which has to be skipped. Further, the data is in the first column. In addition, labels can be added to each data component. This corresponds to the keyword label in the header portion. All this information is specified as shown in the figure below.

Note: To specify the filename, click on the [Reference] button and use the file dialog that appears.

With this, this setting is complete. Click on [OK] to go to the next menu. (Use this procedure to define the referencing method for each component when the data has multiple components).

Step 8 Specification of information related to coordinate values

This menu is used to specify how the coordinate information is defined. This corresponds to the setting of the keyword field in the header portion. In this example, coordinate values are defined for every data point and hence, select irregular from [Field Type] in the menu.

With this, this setting is complete. Press [Next] to go to the next menu.

Step 9 Specification of the reference file for coordinate values.

This menu is used to specify the reference file name for coordinate values and the referencing method. This corresponds to the setting of keywords other than the filetype keyword in the l ine starting with coord in the header portion.

The file to be referenced in this example is scat2ds and the first line of this file is a comment which has to be skipped.
Further, the X coordinate is in the second column. All this information is specified as shown in the figure below.

Note: To specify the filename, click on the [Reference] button and use the file dialog that appears.

With this, the settings related to the X coordinate are complete. Click on [OK] to go to the next menu.

Next, specify the Y coordinate information.
This is done in a manner similar to the X coordinate as shown in the figure below.

With this, the settings related to the Y coordinate are complete. Click on [OK] to go to the next menu.

Step 10 Ascertaining completion

This menu is used to check all the information one final time. The header port ion is displayed (though, it is difficult to see), check the information and press the [completed] button.

Step 11 Save file

Finally, specify the name of the file in which to save the information just input. Specify any file name in the file dialog. An extension .fld is automatically added to the file.
This XX .fld file can be read in by Read Data in MicroAVS.


UP © 1999-2008 KGT Inc. All rights reserved.