Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 6 Diverse visualizations Up: 5 Visualization of surfaces Prev: 5.3 Utilization of VIS3XX Contents


5.4 Complete description of the module

5.4.1 The different input data possible

Utilization with finite element results:

The admissible data structures for a mesh consisting of triangles are the AM([note] The name of the author, A. Marrocco.) or NOPO data structures.

The AM data structure is composed of 2 records (binary):

The NOPO data structure must be 2D and composed of P1 triangles only.

Several possibilities are offered as far as the results of the computation defined on the mesh are concerned:

Utilization, visualization of array T(NX,NY):

The (binary) file is composed of a set of records, each of length NX*NY and corresponds to array T(NX,NY).

The program will inquire what the record number is. NX and NY must be the same for the different records and must also be compatible with those defined (further on) with command MAILLE-XY.

Utilization of an external function:
Already seen.

Function F typed on the keyboard:
The interpreted functions (function parser) are used here.

5.4.2 Main commands

The main commands correspond to BORNES-XY, MAILLE-XY and GRAD-ECH-XYZ.

BORNES-XY

This command is used to define a rectangular window in the (X,Y) plane, which serves as the domain in which function F(X,Y) is defined.

The input parameters are: XMIN, XMAX, YMIN and YMAX, the window extremities.

The initial values are, respectively, 0, 1 , 0 and 1.

For the case where the module is used to interpret the finite element results, we choose the domain bounds as XMIN, XMAX, YMIN and YMAX.

MAILLE-XY

To define a grid in the window defined by XMIN, XMAX, YMIN and YMAX.

The input parameters are:

The initial values are NX = NY = 40.

GRAD-ECH-XYZ

To choose the representation scale, linear or logarithmic, in the z-direction only. The initial choice corresponds to a linear scale.

5.4.3 General display characteristics

Initially, there is an automatic scaling of the three-dimensional object to be represented (this can be prevented!).

The commands available at this level are: OBS, DIM, MODE, AXES, LEGEND and (return).

The "return" key is used to exit from the current subroutine and execute the plot.

The signification of the above commands is now given:

OBS

Positioning of the observer in spherical coordinates and observation angle. The input parameters are:

The observer always views the center of the box defined by XMIN, XMAX, YMIN, YMAX, ZMIN and ZMAX and his/her distance is calculated automatically such that the entire object is in view.

DIM

To define or modify the size (in cm.) of the plot.

The input parameters are: X1, X2, Y1 and Y2.

The initial values depend on the terminal used and correspond to the maximum size usable.

MODE

The surface display mode. There are several possibilities:

AXES

This part corresponds to the axes. Plots of graded and referenced axes.

Output in space (3D) is obtained by transformation of a reference axis described on the (0,0),(1,0) segment of the XOY plane. The different parameters defining the axis are modified dynamically via a menu indicating the different options available.

Thus, when using keyword (or command) AXES, the following will appear on the screen:

|-------------------------------------------------------------------|
| ACTUELLEMENT on trace  N axes                                     |
|  aspect , mod_const , leg_axes , nb_axes , edit_contr , (return)  |
|-------------------------------------------------------------------|

N indicates the number of axes that we want to plot (this value is initialized to 0, (no plot)).

The line underneath indicates the different commands available. Only the first character of the command --- UPPERCASE (or lowercase depending on the implementation) --- is taken into account as response; this character can be replaced by the position number of the command: 1 for ASPECT, 2 for MOD_CONST, etc.

LEGEND

A legend (5 lines maximum) can be defined on the plot using this command. The user can also if necessary specify the placement, the character size and the thickness of the plotlines.

5.4.4 Axes

This section once again considers the definition of the axes and gives the different commands mentioned above in detail.

ASPECT

Different manners of generating the "reference-box" (parallelopiped), containing the object to be visualized, are possible.

 
Figure 5.1: Reference-box 1, 2 and 3 

 
Figure 5.2: Reference-box 4, 5, 6 and 7 

The different reference-boxes are shown in figures 5.1 and 5.2 for cases 1 to 7. Reference-box number 0 is the one where we visualize nothing, whereas a reference-box with a negative number corresponds to a complete parallelopiped.

Note that reference-box 2 is the default value.

The user then inputs the color of the reference-box lines (and graduations), i.e. the density of the red R (0,1), the density of the green V (0,1) and the density of the blue B (0,1). It is possible to perform modifications.

Remark:
The data, R, V, B, will be output to program VIS3D, although it does not actually utilizes it.

MOD-CONST

Definition and construction mode for axes (graduations):

Two examples are shown below:

 
Figure 5.5: Example VIS3XX: manual definition 

 
Figure 5.6: Example VIS3XX: NOPO and B 


Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 6 Diverse visualizations Up: 5 Visualization of surfaces Prev: 5.3 Utilization of VIS3XX Contents