Files and Data

 



 

Openning a Single File

To open a single data file:



 

Openning a Set of Parallel Files

  To open a group of files which correspond to a set of subdomains of a parallel calculation:

Openning a Project File

  Project files are not implemented yet. They will include: unsteady multidisciplinary parallel set of files.
 



 

Data-Set Types

 Different kinds of data sets can be read into ZFEM for visualization in different disciplines: discrete data sets, continuous data sets, compressible fluids, incompressible fluids, structural data sets and curves. These data sets can be read from a file in ZFEM format described below or for some cases  directly from FEFLO or NASTRAN files.

Discrete Data Sets

DISCRETE data sets are used for the visualization of particles. The consist in a set of points or particles and a set of fields or values defined at the location of the points. The fields are a set of values specified at the location of each point. Fields can be INTEGER or REAL. For the case of integer fields, a single integer value is specified at each point. Real fields can have any number of real values specified at each point. If the number of values (dimension of the field) equals three the field is recognized as a vector field and can be used for vector plots and traces. Scalar fields (single value at the points) or different components of a real field can be used to create several kinds of plots. Integer fields can also be used to filter points.

The ZFEM file format for discrete data sets consists ina "points" section, where the coordinates of the points are specified, followed by a "fields" section, where any number of integer or real fields can be specified in any order. The format for this kind of data set is:

DISCRETE
data set name
points name
npoints
x1 y1 z1
...
xn yn zn
INTEGER
field name
v1
...
vn
REAL
field name
mdimensions
v11 v12 ... v1m
...
vn1 vn2 ... vnm
END

Continuous Data Sets

CONTINUOUS data sets are used for the visualization of simulations in continuum mechanics (fluids, structures, thermal, electro-magnetics, etc.). These data sets consist in a list of points, a list of fields defined at the points and a set of element lists connecting the points. The fields are a set of values specified at the location of each point. Fields can be INTEGER or REAL. For the case of integer fields, a single integer value is specified at each point. Real fields can have any number of real values specified at each point. If the number of values (dimension of the field) equals three the field is recognized as a vector field and can be used for vector plots and traces. Scalar fields (single value at the points) or different components of a real field can be used to create several kinds of plots. Integer fields can also be used to filter points. Several lists of elements can be defined connecting the points into a grid. Different element types are available: EDGE (connecting 2 points), TRIANGLE (connecting 3 points), QUAD (connecting 4 points), TETRAhedra (connecting 4 points) and BRICK or hexahedra (connecting 8 points). These elements and the internal numbering of the nodes are shown in the following figure:

The ZFEM file format for these kinds of data sets consists in a "points" section, where the coordinates of the points are specified, followed by a "fields" section, where any number of integer or real fields can be specified in any order, followed by an "element" section, where any number of element lists can be specified in any order. The format is:

CONTINUOUS
data set name
points name
npoints
x1 y1 z1
...
xn yn zn
INTEGER
field name
v1
...
vn
REAL
field name
mdimensions
v11 v12 ... v1m
...
vn1 vn2 ... vnm
END_FIELDS
TETRA
element list name
nelements1
p11 p21 p31 p41
...
pn1 pn2 pn3 pn4
TRIANGLE
element list name
nelements2
p11 p21 p31
...
pn1 pn2 pn3
END

For the case of structured grids, instead of the element keywords, the word STRUCTURED should be used, followed by the number of dimensions (nd), which may be 2 or 3, and the number of grid points in each orthogonal direction (nx, ny and possibly nz - if nd=3 - ). If the dimension is 2, QUAD elements are automatically generated and if it is 3 BRICK elements are used. For example:

CONTINUOUS
data set name
points name
npoints
x1 y1 z1
...
xn yn zn
INTEGER
field name
v1
...
vn
REAL
field name
mdimensions
v11 v12 ... v1m
...
vn1 vn2 ... vnm
END_FIELDS
STRUCTURED
mesh name
nd nx ny [nz]
END

Compressible Fluid Data Set

COMPRESSIBLE fluid data sets are a subset of the continuous data sets. The only difference is that in this case only three real fields are expected: pressure (scalar), velocity (vector) and temperature (scalar).  Other fields are automatically derived from these: absolute value of the velocity (scalar). Other parameters such as the DENSITY can be also specified. The rest of the data set is identical to the   continuous data sets.  The file format for these data sets is then of the form:
 

 If the lines between brackets are not specified the default values shown above are taken.
 

Incompressible Fluid Data Set

 INCOMPRESSIBLE fluid data sets are a subset of the continuous data sets. The only difference is that in this case only three real fields are expected: density (scalar), velocity (vector) and energy (scalar).  Other fields are automatically derived from these: absolute value of the velocity (scalar), pressure (scalar), Mach number (scalar) and temperature (scalar). In order to derive these fields a set of parameters needs to be specified: GAMMA (ratio of specific heats), CP (heat capacity at constant pressure) and the equation of state (EOS). Currently the only equation of state supported is of the type IDEAL gas. Other equations of state will be incorporated in the future. The rest of the data set is identical to the   continuous data sets.  The file format for these data sets is then of the form:
 

  If the lines between brackets are not specified the default values shown above are taken.
 

Structural Data Set

STRUCTURE  data sets are a subset of the continuous data sets. The only difference is that in this case only two real fields are expected: loads (scalar) and velocity (vector). Other fields are automatically derived from these: absolute value of the velocity (scalar). More fields and derived fields will be included in the future. The rest of the data set is identical to the   continuous data sets.  The file format for these data sets is then of the form:
 

 

Curves Data Set

CURVE data sets are used to create XY plots (curves). This kind of data set consist in a set of values defined at a number of points. The values are given in the form of a table where any column can be plotted against any other. The format of the file is:
 



 

File Formats

Data files in several formats can be read into ZFEM. The format is selected in the option menu of the open dialog:

The formats supported are:

For more information refer to the FEFLO and NASTRAN documentation.



 

Controling Open Projects

Any number of projects (single data files or sets of parallel files) can be open simultaneously with ZFEM. Clicking the "manage projects" icon in the tools windows opens the following dialog window:

The upper half of the split window shows the currently open projects with their name and host computer. A project can be made active by selecting it from this list. The active project is the one responding to any request to create a plot or perform a calculation. The active project can be closed by clicking the delete icon on the top left of the window. The lower part of the split window shows some information about the active project.



 

Controling Data Sets

Within a given project, several data sets may be present. For example, from the original data set read from the file(s), new data sets such as  cut-planes, iso-surfaces or deformation surfaces can be computed. These data sets contain their own set of points, fields and elements. From these new data sets different plots can be created. Click on the "manage data" icon in the tools window to open the following dialog window:

This window shows all the available data sets within the active project. The selected data set can be deleted by clicking the delete icon, or saved into a file in ZFEM format, either in ascii (default) or binary mode. The name of the file must be typed in the text entry field. If the project consists in a set of files (parallel application) the domain number will be appended to the file name of each subdomain.