Ensight File Format Manual
Ensight File Format Manual
This section describes the format for all readable and writable files in EnSight which you may need access to. The formats described are only for those files that are specific to EnSight. We do not describe data formats not developed by CEI (for example, data formats for various analysis codes). For information about these formats, consult the applicable creator. Note: If you are using this documentation to produce your own data translator, please make sure that you follow the instructions exactly as specified. In many cases, EnSight reads data in blocks to improve performance. If the format is not followed, the calculations of how much to read for a block will be thrown off. EnSight does little in the way of error checking data files when they are read. In this respect, EnSight sacrifices robustness for performance. As an aid to developing translators, a C library is provided that supports input and output of the native EnSight data format in both ASCII and binary versions. Section 11.1, EnSight Gold Casefile Format describes in detail the EnSight Gold case, geometry, and variable file formats. Section 11.2, EnSight6 Casefile Format describes in detail the EnSight6 case, geometry, and variable file formats. Section 11.3, EnSight5 Format describes in detail the EnSight5 geometry and variable file formats. Section 11.4, FAST UNSTRUCTURED Results File Format describes the executive .res file that can be used with FAST unstructured solution and function files. Section 11.5, FLUENT UNIVERSAL Results File Format describes the executive .res file that can be used with FLUENT Universal files for transient models. Section 11.6, Movie.BYU Results File Format describes the executive .res file that can be used with Movie.BYU files. Section 11.7, PLOT3D Results File Format describes the executive .res file that can be used with PLOT3D solution and function files. Section 11.8, Server-of-Server Casefile Format describes the format of the casefile used with the server-of-server capability of EnSight. Section 11.9, Periodic Matchfile Format describes the format of the file which can be used to explicitly specify which nodes match from one periodic instance to the next. Section 11.10, XY Plot Data Format describes the format of the file containing XY plot data.
11-1
11-2
The EnSight Gold format also supports the same structured block data format as EnSight6, which is very similar to the PLOT3D format. A given EnSight Gold model may have either unstructured data, structured data, or a mixture of both. This format is somewhat similar to the EnSight6 format, but differs enough to allow for more efficient reading of the data. It is intended for 3D, binary, big data models. Note: While an ASCII format is available, it is not intended for use with large models and is in fact subject to limitations such as integer lengths of 10 digits. Use the binary format if your model will exceed 10 digits for node or element numbers or labels. Starting with version 7, EnSight writes out all model and variable files in EnSight Gold format. Thus, it can be read by all version 7 EnSight licenses (i.e. standard, gold, and custom licenses).
11-3
. . .
7
3 6 1 2 1
3 5 4 2
3 8
3 6
1 2
1 5
4 1
8 7 2
2 5 node pyramid 7 8 5 17 1 16 13 12 4 20
13 node pyramid 15 14 11 10 7 19 3
6 18
11-4
The number of integers or reals per line must also be followed! 6. By default, a Part is processed to show the outside boundaries. This representation is loaded to the Client host system when the geometry file is read (unless other attributes have been set on the workstation, such as feature angle).
EnSight 7 User Manual 11-5
7. Coordinates for unstructured data must be defined within each part. This is normally done before any elements are defined within a part, but does not have to be. The different elements can be defined in any order (that is, you can define a hexa8 before a bar2). 8. Parts which contain n-sided polygon elements may not contain other element types. They can however contain several different n-sided sections. 9. A Part containing structured data cannot contain any unstructured element types or more than one block. Each structured Part is limited to a single block. A structured block is indicated by following the Part description line with a block line. The various options include: block block rectilinear block uniform block iblanked block rectilinear iblanked block uniform iblanked (default is curvilinear) (uses i,j,k delta vectors) (uses i,j,k delta values)
An iblanked block must contain an additional integer array of values at each node, traditionally called the iblank array. Valid iblank values for the EnSight Gold format are:
0 for nodes which are exterior to the model, sometimes called blanked-out nodes 1 for nodes which are interior to the model, thus in the free stream and to be used <0 or >1 for any kind of boundary nodes In EnSights structured Part building dialog, the iblank option selected will control which portion of the structured block is created. Thus, from the same structured block, the interior flow field part as well as a symmetry boundary part could be created.
Note: By default EnSight does not do any partial cell iblank processing. Namely, only complete cells containing no exterior nodes are created. It is possible to obtain partial cell processing by issuing the test:partial_cells_on command in the Command Dialog before reading the file.
11-6
Generic Format
Usage Notes: In general a part can contain several different element types. There are two exceptions to this rule. Parts containing nsided polygons cannot contain any other element type, and block parts can contain one and only one block.
element type
# = a part number nn = total number of nodes in a part ne = number of elements of a given type np = number of nodes per element for a given id_* = node or element id number x_* = x component y_* = y component z_* = z component e*_* = node number for an element ib_* = iblanking value
element type
[ ] contain optional portions < > contain choices indicates the beginning of an unformatted sequential FORTRAN binary indicates the end of an unformatted sequential FORTRAN binary write
write
11-7
C Binary form:
C Binary description line 1 description line 2 node id <off/given/assign/ignore> element id <off/given/assign/ignore> [extents xmin xmax ymin ymax zmin zmax] part # description line coordinates nn [id_n1 id_n2 ... id_nn] x_n1 x_n2 ... x_nn y_n1 y_n2 ... y_nn z_n1 z_n2 ... z_nn element type ne [id_n1 id_n2 ... id_ne] e1_n1 e1_n2 ... e1_np e2_n1 e2_n2 ... e2_np . . ne_n1 ne_n2 ... ne_np element type . . part . . part # description line block [iblanked] i j k # mm = i*j*k x_m1 x_m2 ... x_mm y_m1 y_m2 ... y_mm z_m1 z_m2 ... z_mm [ib_m1 ib_m2 ... ib_mm] part # description line block rectilinear [iblanked] i j k # mm = i*j*k x_1 x_2 ... x_i y_1 y_2 ... y_j z_1 z_2 ... z_k [ib_m1 ib_m2 ... ib_mm] part # description line block uniform [iblanked] i j k # mm = i*j*k x_origin y_origin z_origin x_delta y_delta z_delta [ib_m1 ib_m2 ... ib_mm] 80 80 80 80 80 6 80 1 80 80 1 nn nn nn nn 80 1 ne chars chars chars chars chars floats chars int chars chars int ints floats floats floats chars int ints
80 chars
80 chars 1 int 80 chars 80 chars 3 ints mm floats mm floats mm floats mm ints 80 chars 1 int 80 chars 80 chars 3 ints i floats j floats k floats mm ints 80 chars 1 int 80 chars 80 chars 3 ints 3 floats 3 floats mm ints
11-8
80 chars
80 chars 1 int 80 chars 80 chars 3 ints mm floats mm floats mm floats mm ints 80 chars 1 int 80 chars 80 chars 3 ints i floats j floats k floats mm ints 80 chars 1 int 80 chars 80 chars 3 ints 3 floats 3 floats mm ints
11-9
ASCII form:
description line 1 description line 2 node id <off/given/assign/ignore> element id <off/given/assign/ignore> [extents xmin xmax ymin ymax zmin zmax] part # description line coordinates nn [id_n1 id_n2 . . id_nn] x_n1 x_n2 . . x_nn y_n1 y_n2 . . y_nn z_n1 z_n2 . . z_nn element type ne [id_n1 id_n2 . . id_ne] e1_n1 e1_n2 ... e1_np e2_n1 e2_n2 ... e2_np . . ne_n1 ne_n2 ... ne_np element type . . part . . part # description line block [iblanked] i j k # mm = i*j*k x_m1 x_m2 . A (max of 79 typ) A A A A 2E12.5 2E12.5 2E12.5 A I10 A A I10 I10 1/line (nn)
A I10 I10
1/line (ne)
11-10
11.1 EnSight Gold Geometry File Format . x_mm y_m1 y_m2 . . y_mm z_m1 z_m2 . . z_mm [ib_m1 ib_m2 . . ib_mm] part # description line block rectilinear [iblanked] i j k # mm = i*j*k x_1 x_2 . . x_i y_1 y_2 . . y_j z_1 z_2 . . z_k [ib_m1 ib_m2 . . ib_mm] part # description line block uniform [iblanked] i j k # mm = i*j*k x_origin y_origin z_origin x_delta y_delta z_delta [ib_m1 ib_m2 . . ib_mm]
I10
1/line (mm)
I10
1/line (mm)
A I10 A A 3I10 E12/5 E12/5 E12/5 E12.5 E12.5 E12.5 I10 1/line (mm)
11-11
Notes: If node id is given or ignore, the [id] section must be there for each part. If element id is given or ignore, the [id] section must be there for each element type of each part If iblanked is there, the [ib] section must be there for the block. x, y, and z coordinates are mandatory, even if a 2D problem. If block rectilinear, then the x, y, z coordinates change to the x, y, and z delta vectors. If block uniform, then the x, y, z coordinates change to the x, y, z coordinates of the origin and the x, y, and z delta values. Ids are just labels, the coordinate (or element) order is implied. Element blocks for nsided elements contain an additional section - the number of nodes in each element. See below C Binary form of element block, if nsided:
nsided ne [id_n1 id_n2 ... id_ne] np1 np2 ... npne e1_n1 e1_n2 ... e1_np1 e2_n1 e2_n2 ... e2_np2 . . ne_n1 ne_n2 ... ne_npne 80 1 ne ne chars int ints ints
np1+np2+...+npne ints
np1+np2+...+npne ints
I10
1/line (ne)
11-12
EnSight Gold The following is an example of an ASCII EnSight Gold geometry file: This is the Geometry File Example same example model as given in the EnSight6 geometry file section (only in Gold format) with 11 defined unstructured nodes from which 2 unstructured parts are defined, and a 2x3x2 structured part as depicted in the above diagram. Note: The example file below (engold.geo) and all example variable files in the gold section (also prefixed with engold) may be found under your EnSight installation directory (path: $ENSIGHT7_HOME/data/user_manual). The appended # comment lines are for your reference only, and are not valid format lines within a geometry file as appended below. Do NOT put these # comments in your file!!!
Note:
This is the 1st description line of the EnSight Gold geometry example This is the 2nd description line of the EnSight Gold geometry example node id given element id given extents 0.00000e+00 2.00000e+00 0.00000e+00 2.00000e+00 0.00000e+00 2.00000e+00 part 1 2D uns-elements (description line for part 1) coordinates Do NOT put these # comments in your file!! 10 # nn 15 # node ids 20 40 22 44 55 60 61 62 63 4.00000e+00 # x components 5.00000e+00 6.00000e+00
11-13
# y components
# z components
10
11-14
# j components
# k components
# iblanking
11-15
Geometry Section
This is a required section which specifies the geometry information for the model (as well as measured geometry if present, and periodic match file (see Section 11.9, Periodic Matchfile Format) if present). Usage:
GEOMETRY model: measured: match: [ts] [ts] [fs] [fs] filename filename filename [change_coords_only] [change_coords_only]
where: ts = time set number as specified in TIME section. This is optional. fs = corresponding file set number as specified in FILE section below. filename = The filename of the appropriate file. -> Model or measured filenames for a static geometry case, and match filenames will not contain * wildcards. -> Model or measured filenames for a changing geometry case will contain * wildcards. change_coords_only = The option to indicate that the changing geometry (as indicated by wildcards in the filename) is coords only. Otherwise, changing geometry connectivity will be assumed.
Variable Section
This is an optional section which specifies the files and names of the variables. Constant variable values can also be set in this section. Usage:
VARIABLE constant per case: scalar per node: vector per node: tensor symm per node: scalar per element: vector per element: tensor symm per element: scalar per measured node: vector per measured node: complex scalar per node: complex vector per node: [ts] [ts] [ts] [ts] [ts] [ts] [ts] [ts] [ts] [ts] [ts] description description description description description description description description description description description const_value(s) filename filename filename filename filename filename filename filename Re_fn Im_fn Re_fn Im_fn
[fs] [fs] [fs] [fs] [fs] [fs] [fs] [fs] [fs] [fs]
freq freq
11-16
Im_fn Im_fn
freq freq
where:
ts
= The corresponding time set number (or index) as specified in TIME section below. This is only required for transient constants and variables. = The corresponding file set number (or index) as specified in FILE section below. = The variable (GUI) name (ex. Pressure, Velocity, etc.) = The constant value. If constants change over time, then ns (see TIME section below) constant values of ts. = The filename of the variable file. Note: only transient filenames contain * wildcards. = The filename for the file containing the real values of the complex variable. = The filename for the file containing the imaginary values of the complex variable. = The corresponding harmonic frequency of the complex variable. For complex variables where harmonic frequency is undefined, simply use the text string: UNDEFINED.
Note: Note:
As many variable description lines as needed may be used. The variable description is limited to 19 characters in the current release. Variable names must not start with a numeric digit and must not contain any of the following reserved characters: ( ) [ ] + @ space ! # * ^ $ /
Time Section
This is an optional section for steady state cases, but is required for transient cases. It contains time set information. Shown below is information for one time set. Multiple time sets (up to 16) may be specified for measured data as shown in Case File Example 3 below. Usage:
TIME time set: ts [description] number of steps: ns filename start number: fs filename increment: fi time values: time_1 time_2 .... time_ns
or
TIME time set: number of steps: filename numbers: time values:
where: ts = timeset number. This is the number referenced in the GEOMETRY and VARIABLE sections. description = optional timeset description which will be shown in user interface. ns = number of transient steps fs = the number to replace the * wildcards in the filenames, for the first step
11-17
11.1 EnSight Gold Case File Format fi = the increment to fs for subsequent steps time = the actual time values for each step, each of which must be separated
by a white space and which may continue on the next line if needed
fn = a list of numbers or indices, to replace the * wildcards in the filenames.
File Section
This section is optional for expressing a transient case with single-file formats. This section contains single-file set information. This information specifies the number of time steps in each file of each data entity, i.e. each geometry and each variable (model and/or measured). Each data entitys corresponding file set might have multiple continuation files due to system file size limit, i.e. ~2 GB for 32-bit and ~4 TB for 64-bit architectures. Each file set corresponds to one and only one time set, but a time set may be referenced by many file sets. The following information may be specified in each file set. For file sets where all of the time set data exceeds the maximum file size limit of the system, both filename index and number of steps are repeated within the file set definition for each continuation file required. Otherwise filename index may be omitted if there is only one file. File set information is shown in Case File Example 4 below.
Usage:
FILE file set: filename index: number of steps: fs fi # Note: only used when data continues in other files ns
where: fs = file set number. This is the number referenced in the GEOMETRY and VARIABLE sections above. ns = number of transient steps fi = file index number in the file name (replaces * in the filenames) Case File Example 1 The following is a minimal EnSight Gold case file for a steady state model with some results.
Note: this (engold.case) file, as well as all of its referenced geometry and variable files (along with a couple of command files) can be found under your installation directory (path: $ENSIGHT7_HOME/data/user_manual). The EnSight Gold Geometry File Example and the Variable File Examples are the contents of these files.
FORMAT type: ensight gold GEOMETRY model: engold.geo VARIABLE constant per case: scalar per element: scalar per node: vector per element: vector per node: tensor symm per element: tensor symm per node: complex scalar per element: complex scalar per node: Cden Esca Nsca Evec Nvec Eten Nten Ecmp Ncmp .8 engold.Esca engold.Nsca engold.Evec engold.Nvec engold.Eten engold.Nten engold.Ecmp_rengold.Ecmp_i2. engold.Ncmp_rengold.Ncmp_i4.
11-18
The following is a Case file for a transient model. The connectivity of the geometry is also changing.
FORMAT type: ensight gold GEOMETRY model: VARIABLE scalar per node: vector per node: TIME time set: number of steps: filename start number: filename increment: time values: 1.0
exgold2.geo**
1 1
Stress Displacement
exgold2.scl** exgold2.dis**
2.0
1 3 0 1 3.0
The following is a Case file for a transient model with measured data.
1 2
exgold3.geo* exgold3.mgeo**
VARIABLE constant per case: constant per case: scalar per element vector per node: scalar per measured node: vector per measured node: TIME time set: number of steps: filename start number: filename increment: time values: time set: number of steps: filename start number: filename increment: time values: .05 .15 .25 .34 .45 .55
1 1 1 2 2
1 5 1 2 .1 .2 .3 .4 .5 2 6 0 2
11-19
In this example, the transient data for the measured velocity data entity happens to be greater than the maximum file size limit. Therefore, the first four time steps fit and are contained in the first file, and the last two time steps are continued in a second file.
FORMAT type: ensight gold GEOMETRY model: measured: VARIABLE constant per case: scalar per element: vector per node: scalar per measured node: vector per measured node: TIME time set: number of steps: time values: time set: number of steps: time values: FILE file set: number of steps: file set: number of steps: file set: filename index: number of steps: filename index: number of steps:
1 2
exgold4.geo 1 exgold4.mgeo 2
1 1 2 2
1 1 2 3
1 5 2 6 3 1 4 2 2
11-20
Each file contains transient data that corresponds to the specified number of time steps. The data for each time step sequentially corresponds to the simulation time values (time values) found listed in the TIME section. In transient single-file format, the data for each time step essentially corresponds to a standard EnSight gold geometry or variable file (model or measured) as expressed in multiple file format. The data for each time step is enclosed between two wrapper records, i.e. preceded by a BEGIN TIME STEP record and followed by an END TIME STEP record. Time step data is not split between files. If there is not enough room to append the data from a time step to the file without exceeding the maximum file limit of a particular system, then a continuation file must be created for the time step data and any subsequent time step. Any type of user comments may be included before and/or after each transient step wrapper.
Note 1: If transient single file format is used, EnSight expects all files of a dataset to be specified in transient single file format. Thus, even static files must be enclosed between a BEGIN TIME STEP and an END TIME STEP wrapper. 1. Note 2: For binary geometry files, the first BEGIN TIME STEP wrapper must follow the <C Binary/Fortran Binary> line. Both BEGIN TIME STEP and END TIME STEP wrappers are written according to type (1) in binary. Namely: This is a write of 80 characters to the file: in C: char buffer[80];
strcpy(buffer,BEGIN TIME STEP); fwrite(buffer,sizeof(char),80,file_ptr);
Note 3: Efficient reading of each file (especially binary) is facilitated by appending each file with a file index. A file index contains appropriate information to access the file byte positions of each time step in the file. (EnSight automatically appends a file index to each file when exporting in transient single file format.) If used, the file index must follow the last END TIME STEP wrapper in each file.
File Index Usage: ASCII
%20d\n %20d\n %20d\n ... %20d\n %20d\n %20d\n %s\n
*
Binary
sizeof(int) sizeof(long) sizeof(long) ... sizeof(long) sizeof(int) sizeof(long) sizeof(char)*80
Item
n fb1 fb2 ... fbn flag fb of item n
FILE_INDEX
Description
Total number of data time steps in the file. File byte loc for contents of 1st time step* File byte loc for contents of 2nd time step* ... File byte loc for contents of nth time step* Miscellaneous flag (= 0 for now) File byte loc for Item n above File index keyword
Each file byte location is the first byte that follows the BEGIN TIME STEP record.
Shown below are the contents of each of the above files, using the data files from Case File Example 3 for reference (without FILE_INDEX for simplicity).
Contents of file exgold4.geo_1:
11-21
11-22
structured node follows. The values for each node of the structured block are output in the same IJK order as the coordinates. (The number of nodes in the part are obtained from the corresponding EnSight Gold geometry file.) C Binary form:
SCALAR FILE:
description line 1 part # coordinates s_n1 s_n2 ... s_nn part . . part # block s_m1 s_m2 ... s_mm 80 80 1 80 nn 80 chars chars int chars floats chars
# mm = i*j*k
80 1 80 mm
VECTOR FILE:
description line 1 part # coordinates vx_n1 vx_n2 ... vx_nn vy_n1 vy_n2 ... vy_nn vz_n1 vz_n2 ... vz_nn part . . part # block vx_m1 vx_m2 ... vx_mm vy_m1 vy_m2 ... vy_mm vz_m1 vz_m2 ... vz_mm 80 80 1 80 nn nn nn 80 chars chars int chars floats floats floats chars
# mm = i*j*k
80 1 80 mm mm mm
TENSOR FILE:
description line 1 part # coordinates v11_n1 v11_n2 ... v11_nn v22_n1 v22_n2 ... v22_nn v33_n1 v33_n2 ... v33_nn v12_n1 v12_n2 ... v12_nn v13_n1 v13_n2 ... v13_nn v23_n1 v23_n2 ... v23_nn part . . part # block # mm = i*j*k v11_m1 v11_m2 ... v11_mm 80 80 1 80 nn nn nn nn nn nn 80 chars chars int chars floats floats floats floats floats floats chars
80 1 80 mm
11-24
11.1 EnSight Gold Per_Node Variable File Format v22_m1 v33_m1 v12_m1 v13_m1 v23_m1 v22_m2 v33_m2 v12_m2 v13_m2 v23_m2 ... ... ... ... ... v22_mm v33_mm v12_mm v13_mm v23_mm mm mm mm mm mm floats floats floats floats floats
TENSOR9 FILE:
description line 1 part # coordinates v11_n1 v11_n2 ... v11_nn v12_n1 v12_n2 ... v12_nn v13_n1 v13_n2 ... v13_nn v21_n1 v21_n2 ... v21_nn v22_n1 v22_n2 ... v22_nn v23_n1 v23_n2 ... v23_nn v31_n1 v31_n2 ... v31_nn v32_n1 v32_n2 ... v32_nn v33_n1 v33_n2 ... v33_nn part . . part # block # mm = i*j*k v11_m1 v11_m2 ... v11_mm v12_m1 v12_m2 ... v12_mm v13_m1 v13_m2 ... v13_mm v21_m1 v21_m2 ... v21_mm v22_m1 v22_m2 ... v22_mm v23_m1 v23_m2 ... v23_mm v21_m1 v21_m2 ... v21_mm v22_m1 v22_m2 ... v22_mm v23_m1 v23_m2 ... v23_mm 80 80 1 80 nn nn nn nn nn nn nn nn nn 80 chars chars int chars floats floats floats floats floats floats floats floats floats chars
80 1 80 mm mm mm mm mm mm mm mm mm
chars int chars floats floats floats floats floats floats floats floats floats
# mm = i*j*k
80 1 80 mm
11-25
11.1 EnSight Gold Per_Node Variable File Format vz_n1 part . . part # block vx_m1 vy_m1 vz_m1 vz_n2 ... vz_nn nn floats 80 chars
# mm = i*j*k vx_m2 ... vx_mm vy_m2 ... vy_mm vz_m2 ... vz_mm
80 1 80 mm mm mm
# mm = i*j*k
80 1 80 mm
VECTOR FILE:
description line 1 part # coordinates vx_n1 vx_n2 ... vx_nn vy_n1 vy_n2 ... vy_nn vz_n1 vz_n2 ... vz_nn part . . part # block vx_m1 vx_m2 ... vx_mm vy_m1 vy_m2 ... vy_mm vz_m1 vz_m2 ... vz_mm 80 80 1 80 nn nn nn 80 chars chars int chars floats floats floats chars
# mm = i*j*k
80 1 80 mm mm mm
TENSOR FILE:
description line 1 part # coordinates v11_n1 v11_n2 ... v11_nn v22_n1 v22_n2 ... v22_nn v33_n1 v33_n2 ... v33_nn v12_n1 v12_n2 ... v12_nn 80 80 1 80 nn nn nn nn chars chars int chars floats floats floats floats
11-26
11.1 EnSight Gold Per_Node Variable File Format v13_n1 v23_n1 part . . part # block v11_m1 v22_m1 v33_m1 v12_m1 v13_m1 v23_m1 v13_n2 ... v13_nn v23_n2 ... v23_nn nn floats nn floats 80 chars
# mm = i*j*k v11_m2 v22_m2 v33_m2 v12_m2 v13_m2 v23_m2 ... ... ... ... ... ... v11_mm v22_mm v33_mm v12_mm v13_mm v23_mm
80 1 80 mm mm mm mm mm mm
TENSOR9 FILE:
description line 1 part # coordinates v11_n1 v11_n2 ... v11_nn v12_n1 v12_n2 ... v12_nn v13_n1 v13_n2 ... v13_nn v21_n1 v21_n2 ... v21_nn v22_n1 v22_n2 ... v22_nn v23_n1 v23_n2 ... v23_nn v31_n1 v31_n2 ... v31_nn v32_n1 v32_n2 ... v32_nn v33_n1 v33_n2 ... v33_nn part . . part # block # mm = i*j*k v11_m1 v11_m2 ... v11_mm v12_m1 v12_m2 ... v12_mm v13_m1 v13_m2 ... v13_mm v21_m1 v21_m2 ... v21_mm v22_m1 v22_m2 ... v22_mm v23_m1 v23_m2 ... v23_mm v31_m1 v31_m2 ... v31_mm v32_m1 v32_m2 ... v32_mm v33_m1 v33_m2 ... v33_mm 80 80 1 80 nn nn nn nn nn nn nn nn nn 80 chars chars int chars floats floats floats floats floats floats floats floats floats chars
80 1 80 mm mm mm mm mm mm mm mm mm
chars int chars floats floats floats floats floats floats floats floats floats
# mm = i*j*k
80 1 80 mm
11-27
# mm = i*j*k
80 1 80 mm mm mm
ASCII form:
SCALAR FILE:
description line 1 part # coordinates s_n1 s_n2 . . s_nn part . . part # block s_m1 s_m2 . . s_mm A (max of 79 typ) A I10 A E12.5 1/line (nn)
# mm = i*j*k
VECTOR FILE:
description line 1 part # coordinates vx_n1 vx_n2 . . vx_nn A (max of 79 typ) A I10 A E12.5 1/line (nn)
11-28
11.1 EnSight Gold Per_Node Variable File Format vy_n1 vy_n2 . . vy_nn vz_n1 vz_n2 . . vz_nn part . . part # block vx_m1 vx_m2 . . vx_mm vy_m1 vy_m2 . . vy_mm vz_m1 vz_m2 . . vz_mm E12.5 1/line (nn)
# mm = i*j*k
TENSOR FILE:
description line 1 part # coordinates v11_n1 v11_n2 . . v11_nn v22_n1 v22_n2 . . v22_nn v33_n1 v33_n2 . . v33_nn v12_n1 v12_n2 . . v12_nn v13_n1 v13_n2 . A (max of 79 typ) A I10 A E12.5 1/line (nn)
11-29
11.1 EnSight Gold Per_Node Variable File Format . v13_nn v23_n1 v23_n2 . . v23_nn part . . part # block v11_m1 v11_m2 . . v11_mm v22_m1 v22_m2 . . v22_mm v33_m1 v33_m2 . . v33_mm v12_m1 v12_m2 . . v12_mm v13_m1 v13_m2 . . v13_mm v23_m1 v23_m2 . . v23_mm
# mm = i*j*k
TENSOR9 FILE:
description line 1 part # coordinates v11_n1 v11_n2 . . v11_nn v12_n1 v12_n2 . . v12_nn v13_n1 A (max of 79 typ) A I10 A E12.5 1/line (nn)
11-30
11.1 EnSight Gold Per_Node Variable File Format v13_n2 . . v13_nn v21_n1 v21_n2 . . v21_nn v22_n1 v22_n2 . . v22_nn v23_n1 v23_n2 . . v23_nn v31_n1 v31_n2 . . v31_nn v32_n1 v32_n2 . . v32_nn v33_n1 v33_n2 . . v33_nn part . . part # block v11_m1 v11_m2 . . v11_mm v12_m1 v12_m2 . . v12_mm v13_m1 v13_m2 . . v13_mm v21_m1 v21_m2 . . v21_mm v22_m1
# mm = i*j*k
11-31
11.1 EnSight Gold Per_Node Variable File Format v22_m2 . . v22_mm v23_m1 v23_m2 . . v23_mm v31_m1 v31_m2 . . v31_mm v32_m1 v32_m2 . . v32_mm v33_m1 v33_m2 . . v33_mm
# mm = i*j*k
11-32
11.1 EnSight Gold Per_Node Variable File Format vx_nn vy_n1 vy_n2 . . vy_nn vz_n1 vz_n2 . . vz_nn part . . part # block vx_m1 vx_m2 . . vx_mm vy_m1 vy_m2 . . vy_mm vz_m1 vz_m2 . . vz_mm
# mm = i*j*k
11-33
The following variable file examples reflect scalar, vector, tensor, and complex variable values per node for the previously defined EnSight6 Gold Geometry File Example with 11 defined unstructured nodes and a 2x3x2 structured Part (Part number 3). The values are summarized in the following table. Note:
These are the same values as listed in the EnSight6 per_node variable file section. Subsequently, the following example files contain the same data as the example files given in the EnSight6 section only they are listed in gold format. (No asymmetric tensor example data given) ComplexScalar Node Node Scalar Vector Index Id
Unstructured 1 2 3 4 5 6 7 8 9 10 11 Structured 1 2 3 4 5 6 7 8 9 10 11 12 1 2 3 4 5 6 7 8 9 10 11 12 (1.) (2.) (3.) (4.) (5.) (6.) (7.) (8.) (9.) (10.) (11.) (12.) (1.1, 1.2, 1.3) (2.1, 2.2, 2.3) (3.1, 3.2, 3.3) (4.1, 4.2, 4.3) (5.1, 5.2, 5.3) (6.1, 6.2, 6.3) (7.1, 7.2, 7.3) (8.1, 8.2, 8.3) (9.1, 9.2, 9.3) (10.1,10.2,10.3) (11.1,11.2,11.3) (12.1,12.2,12.3) (1.1, 1.2, 1.3, 1.4, 1.5, 1.6) (2.1, 2.2, 2.3, 2.4, 2.5, 2.6) (3.1, 3.2, 3.3, 3.4, 3.5, 3.6) (4.1, 4.2, 4.3, 4.4, 4.5, 4.6) (5.1, 5.2, 5.3, 5.4, 5.5, 5.6) (6.1, 6.2, 6.3, 6.4, 6.5, 6.6) (7.1, 7.2, 7.3, 7.4, 7.5, 7.6) (8.1, 8.2, 8.3, 8.4, 8.5, 8.6) (9.1, 9.2, 9.3, 9.4, 9.5, 9.6) (10.1,10.2,10.3,10.4,10.5,10.6) (11.1,11.2,11.3,11.4,11.5,11.6) (12.1,12.2,12.3,12.4,12.5,12.6) (1.1) (2.1) (3.1) (4.1) (5.1) (6.1) (7.1) (8.1) (9.1) (10.1) (11.1) (12.1) (1.2) (2.2) (3.2) (4.2) (5.2) (6.2) (7.2) (8.2) (9.2) (10.2) (11.2) (12.2) 15 31 20 40 22 44 55 60 61 62 63 (1.) (2.) (3.) (4.) (5.) (6.) (7.) (8.) (9.) (10.) (11.) (1.1, 1.2, 1.3) (2.1, 2.2, 2.3) (3.1, 3.2, 3.3) (4.1, 4.2, 4.3) (5.1, 5.2, 5.3) (6.1, 6.2, 6.3) (7.1, 7.2, 7.3) (8.1, 8.2, 8.3) (9.1, 9.2, 9.3) (10.1,10.2,10.3) (11.1,11.2,11.3) (1.1, 1.2, 1.3, 1.4, 1.5, 1.6) (2.1, 2.2, 2.3, 2.4, 2.5, 2.6) (3.1, 3.2, 3.3, 3.4, 3.5, 3.6) (4.1, 4.2, 4.3, 4.4, 4.5, 4.6) (5.1, 5.2, 5.3, 5.4, 5.5, 5.6) (6.1, 6.2, 6.3, 6.4, 6.5, 6.6) (7.1, 7.2, 7.3, 7.4, 7.5, 7.6) (8.1, 8.2, 8.3, 8.4, 8.5, 8.60 (9.1, 9.2, 9.3, 9.4, 9.5, 9.6) (10.1,10.2,10.3,10.4,10.5,10.6) (11.1,11.2,11.3,11.4,11.5,11.6) (1.1) (2.1) (3.1) (4.1) (5.1) (6.1) (7.1) (8.1) (9.1) (10.1) (11.1) (1.2) (2.2) (3.2) (4.2) (5.2) (6.2) (7.2) (8.2) (9.2) (10.2) (11.2)
Real
Imaginary
Value
Values
Value Value
Per_node (Scalar) Variable Example 1: This shows an ASCII scalar file (engold.Nsca) for the gold geometry example.
Per_node scalar values for the EnSight Gold geometry example part 1 coordinates 1.00000E+00 3.00000E+00 4.00000E+00 5.00000E+00 6.00000E+00 7.00000E+00 8.00000E+00 9.00000E+00 1.00000E+01 1.10000E+01 part 2 coordinates 1.00000E+00 2.00000E+00
11-34
Per_node (Vector) Variable Example 2: This example shows an ASCII vector file (engold.Nvec) for the gold geometry example.
Per_node vector values for the EnSight Gold geometry example part 1 coordinates 1.10000E+00 3.10000E+00 4.10000E+00 5.10000E+00 6.10000E+00 7.10000E+00 8.10000E+00 9.10000E+00 1.01000E+01 1.11000E+01 1.20000E+00 3.20000E+00 4.20000E+00 5.20000E+00 6.20000E+00 7.20000E+00 8.20000E+00 9.20000E+00 1.02000E+01 1.12000E+01 1.30000E+00 3.30000E+00 4.30000E+00 5.30000E+00 6.30000E+00 7.30000E+00 8.30000E+00 9.30000E+00 1.03000E+01 1.13000E+01 part 2 coordinates 1.10000E+00 2.10000E+00 1.20000E+00 2.20000E+00 1.30000E+00 2.30000E+00 part 3 block 1.10000E+00
11-35
Per_node (Tensor) Variable Example 3: This example shows an ASCII 2nd order symmetric tensor file (engold.Nten) for the gold geometry example.
Per_node symmetric tensor values for the EnSight Gold geometry example part 1 coordinates 1.10000E+00 3.10000E+00 4.10000E+00 5.10000E+00 6.10000E+00 7.10000E+00 8.10000E+00 9.10000E+00 1.01000E+01 1.11000E+01 1.20000E+00 3.20000E+00 4.20000E+00 5.20000E+00 6.20000E+00 7.20000E+00 8.20000E+00 9.20000E+00 1.02000E+01 1.12000E+01 1.30000E+00 3.30000E+00 4.30000E+00
11-36
11-37
11-38
Per_node (Complex) Variable Example 4: This example shows ASCII complex real (engold.Ncmp_r) and imaginary (engold.Ncmp_i) scalar files for the gold geometry example. (The same methodology would apply for complex real and imaginary vector files.)
Real scalar File:
Per_node complex real scalar values for the EnSight Gold geometry example part 1 coordinates 1.10000E+00 3.10000E+00 4.10000E+00 5.10000E+00 6.10000E+00 7.10000E+00 8.10000E+00 9.10000E+00 1.01000E+01 1.11000E+01 part 2 coordinates 1.10000E+00 2.10000E+00 part 3 block 1.10000E+00 2.10000E+00 3.10000E+00 4.10000E+00 5.10000E+00 6.10000E+00 7.10000E+00 8.10000E+00 9.10000E+00 1.01000E+01 1.11000E+01 1.21000E+01
Imaginary scalar File: Per_node complex imaginary scalar values for the EnSight Gold geometry example part 1 coordinates 1.20000E+00 3.20000E+00 4.20000E+00 5.20000E+00 6.20000E+00 7.20000E+00 8.20000E+00 9.20000E+00 1.02000E+01 1.12000E+01 part 2 coordinates 1.20000E+00 2.20000E+00 part 3 block
11-39
11.1 EnSight Gold Per_Element Variable File Format 1.20000E+00 2.20000E+00 3.20000E+00 4.20000E+00 5.20000E+00 6.20000E+00 7.20000E+00 8.20000E+00 9.20000E+00 1.02000E+01 1.12000E+01 1.22000E+01
80 chars
# mm = (i-1)*(j-1)*(k-1)
80 1 80 mm
VECTOR FILE:
description line 1 part # element type vx_e1 vx_e2 ... vx_ne vy_e1 vy_e2 ... vy_ne vz_e1 vz_e2 ... vz_ne element type . . 80 80 1 80 ne ne ne 80 chars chars int chars floats floats floats chars
11-40
11.1 EnSight Gold Per_Element Variable File Format part . . part # block vx_m1 vx_m2 ... vx_mm vy_m1 vy_m2 ... vy_mm vz_m1 vz_m2 ... vz_mm 80 chars
# mm = (i-1)*(j-1)*(k-1)
80 1 80 mm mm mm
TENSOR FILE:
description line 1 part # element type v11_e1 v11_e2 ... v11_ne v22_e1 v22_e2 ... v22_ne v33_e1 v33_e2 ... v33_ne v12_e1 v12_e2 ... v12_ne v13_e1 v13_e2 ... v13_ne v23_e1 v23_e2 ... v23_ne element type . . part . . part # block # mm = (i-1)*(j-1)*(k-1) v11_m1 v11_m2 ... v11_mm v22_m1 v22_m2 ... v22_mm v33_m1 v33_m2 ... v33_mm v12_m1 v12_m2 ... v12_mm v13_m1 v13_m2 ... v13_mm v23_m1 v23_m2 ... v23_mm 80 80 1 80 ne ne ne ne ne ne 80 chars chars int chars floats floats floats floats floats floats chars
80 chars
80 1 80 mm mm mm mm mm mm
TENSOR9 FILE:
description line 1 part # element type v11_e1 v11_e2 ... v11_ne v12_e1 v12_e2 ... v12_ne v13_e1 v13_e2 ... v13_ne v21_e1 v21_e2 ... v21_ne v22_e1 v22_e2 ... v22_ne v23_e1 v23_e2 ... v23_ne v31_e1 v31_e2 ... v31_ne v32_e1 v32_e2 ... v32_ne v33_e1 v33_e2 ... v33_ne element type . . part . . 80 80 1 80 ne ne ne ne ne ne ne ne ne 80 chars chars int chars floats floats floats floats floats floats floats floats floats chars
80 chars
11-41
11.1 EnSight Gold Per_Element Variable File Format part # block v11_m1 v12_m1 v13_m1 v21_m1 v22_m1 v23_m1 v31_m1 v32_m1 v33_m1 80 1 80 mm mm mm mm mm mm mm mm mm chars int chars floats floats floats floats floats floats floats floats floats
# mm = (i-1)*(j-1)*(k-1) v11_m2 v12_m2 v13_m2 v21_m2 v22_m2 v23_m2 v31_m2 v32_m2 v33_m2 ... ... ... ... ... ... ... ... ... v11_mm v12_mm v13_mm v21_mm v22_mm v23_mm v31_mm v32_mm v33_mm
80 chars
# mm = (i-1)*(j-1)*(k-1)
80 1 80 mm
80 chars
# mm = (i-1)*(j-1)*(k-1)
80 1 80 mm mm mm
11-42
11.1 EnSight Gold Per_Element Variable File Format # element s_e1 s_e2 element . . part . . part # block s_m1 s_m2 1 80 ne 80 int chars floats chars
80 chars
80 1 80 mm
VECTOR FILE:
description line 1 part # element type vx_e1 vx_e2 ... vx_ne vy_e1 vy_e2 ... vy_ne vz_e1 vz_e2 ... vz_ne element type . . part . . part # block # mm = (i-1)*(j-1)*(k-1) vx_m1 vx_m2 ... vx_mm vy_m1 vy_m2 ... vy_mm vz_m1 vz_m2 ... vz_mm 80 80 1 80 ne ne ne 80 chars chars int chars floats floats floats chars
80 chars
80 1 80 mm mm mm
TENSOR FILE:
description line 1 part # element type v11_e1 v11_e2 ... v11_ne v22_e1 v22_e2 ... v22_ne v33_e1 v33_e2 ... v33_ne v12_e1 v12_e2 ... v12_ne v13_e1 v13_e2 ... v13_ne v23_e1 v23_e2 ... v23_ne element type . . part . . part # block # mm = (i-1)*(j-1)*(k-1) v11_m1 v11_m2 ... v11_mm v22_m1 v22_m2 ... v22_mm 80 80 1 80 ne ne ne ne ne ne 80 chars chars int chars floats floats floats floats floats floats chars
80 chars
80 1 80 mm mm
11-43
11.1 EnSight Gold Per_Element Variable File Format v33_m1 v12_m1 v13_m1 v23_m1 v33_m2 v12_m2 v13_m2 v23_m2 ... ... ... ... v33_mm v12_mm v13_mm v23_mm mm mm mm mm floats floats floats floats
TENSOR9 FILE:
description line 1 part # element type v11_e1 v11_e2 ... v11_ne v12_e1 v12_e2 ... v12_ne v13_e1 v13_e2 ... v13_ne v21_e1 v21_e2 ... v21_ne v22_e1 v22_e2 ... v22_ne v23_e1 v23_e2 ... v23_ne v31_e1 v31_e2 ... v31_ne v32_e1 v32_e2 ... v32_ne v33_e1 v33_e2 ... v33_ne element type . . part . . part # block # mm = (i-1)*(j-1)*(k-1) v11_m1 v11_m2 ... v11_mm v12_m1 v12_m2 ... v12_mm v13_m1 v13_m2 ... v13_mm v21_m1 v21_m2 ... v21_mm v22_m1 v22_m2 ... v22_mm v23_m1 v23_m2 ... v23_mm v31_m1 v31_m2 ... v31_mm v32_m1 v32_m2 ... v32_mm v33_m1 v33_m2 ... v33_mm 80 80 1 80 ne ne ne ne ne ne ne ne ne 80 chars chars int chars floats floats floats floats floats floats floats floats floats chars
80 chars
80 1 80 mm mm mm mm mm mm mm mm mm
chars int chars floats floats floats floats floats floats floats floats floats
80 chars
# mm = (i-1)*(j-1)*(k-1)
80 1 80 mm
11-44
description line 1 part # element type vx_e1 vx_e2 ... vx_ne vy_e1 vy_e2 ... vy_ne vz_e1 vz_e2 ... vz_ne element type . . part . . part # block # mm = (i-1)*(j-1)*(k-1) vx_m1 vx_m2 ... vx_mm vy_m1 vy_m2 ... vy_mm vz_m1 vz_m2 ... vz_mm
80 80 1 80 ne ne ne 80
80 chars
80 1 80 mm mm mm
ASCII form:
SCALAR FILE:
description line 1 part # element type s_e1 s_e2 . . s_ne element type . . part . . part # block s_m1 s_m2 . . s_mm A (max of 80 typ) A I10 A 12.5 1/line (ne)
# mm = (i-1)*(j-1)*(k-1)
VECTOR FILE:
description line 1 part # element type vx_e1 vx_e2 . A (max of 80 typ) A I10 A E12.5 1/line (ne)
11-45
11.1 EnSight Gold Per_Element Variable File Format . vx_ne vy_e1 vy_e2 . . vy_ne vz_e1 vz_e2 . . vz_ne element type . . part . . part # block vx_m1 vx_m2 . . vx_mm vy_m1 vy_m2 . . vy_mm vz_m1 vz_m2 . . vz_mm
# mm = (i-1)*(j-1)*(k-1)
TENSOR FILE:
description line 1 part # element type v11_e1 v11_e2 . . v11_ne v22_e1 v22_e2 . . v22_ne v33_e1 v33_e2 . . v33_ne v12_e1 v12_e2 . A (max of 80 typ) A I10 A E12.5 1/line (ne)
11-46
11.1 EnSight Gold Per_Element Variable File Format . v12_ne v13_e1 v13_e2 . . v13_ne v23_e1 v23_e2 . . v23_ne element type . . part . . part # block v11_m1 v11_m2 . . v11_mm v22_m1 v22_m2 . . v22_mm v33_m1 v33_m2 . . v33_mm v12_m1 v12_m2 . . v12_mm v13_m1 v13_m2 . . v13_mm v23_m1 v23_m2 . . v23_mm
# mm = (i-1)*(j-1)*(k-1)
TENSOR9 FILE:
description line 1 part # element type v11_e1 v11_e2 . A (max of 80 typ) A I10 A E12.5 1/line (ne)
11-47
11.1 EnSight Gold Per_Element Variable File Format . v11_ne v12_e1 v12_e2 . . v12_ne v13_e1 v13_e2 . . v13_ne v21_e1 v21_e2 . . v21_ne v22_e1 v22_e2 . . v22_ne v23_e1 v23_e2 . . v23_ne v31_e1 v31_e2 . . v31_ne v32_e1 v32_e2 . . v32_ne v33_e1 v33_e2 . . v33_ne element type . . part . . part # block v11_m1 v11_m2 . . v11_mm v12_m1 v12_m2 . . v12_mm
# mm = (i-1)*(j-1)*(k-1)
11-48
11.1 EnSight Gold Per_Element Variable File Format v13_m1 v13_m2 . . v13_mm v21_m1 v21_m2 . . v21_mm v22_m1 v22_m2 . . v22_mm v23_m1 v23_m2 . . v23_mm v31_m1 v31_m2 . . v31_mm v32_m1 v32_m2 . . v32_mm v33_m1 v33_m2 . . v33_mm E12.5 1/line (mm)
# mm = (i-1)*(j-1)*(k-1)
11-49
# mm = (i-1)*(j-1)*(k-1)
11-50
The following variable file examples reflect scalar, vector, tensor, and complex variable values per element for the previously defined EnSight Gold Geometry File Example with 11 defined unstructured nodes and a 2x3x2 structured Part (Part number 3). The values are summarized in the following table
Note: These are the same values as listed in the EnSight6 per_element variable file section. Subsequently, the following example files contain the same data as the example files in the EnSight6 section - only they are listed in gold format.. (No asymmetric tensor example data given) Complex Scalar Element Element Scalar Index
Unstructured bar2 1 tria3 1 2 hexa8 1 Structured block 1 1 (5.) (5.1, 5.2, 5.3) (5.1, 5.2, 5.3, 5.4, 5.5, 5.6) (5.1) (5.2) 104 (4.) (4.1, 4.2, 4.3) (4.1, 4.2, 4.3, 4.4, 4.5, 4.6) (4.1) (4.2) 102 103 (2.) (3.) (2.1, 2.2, 2.3) (2.1, 2.2, 2.3, 2.4, 2.5, 2.6) (3.1, 3.2, 3.3) (3.1, 3.2, 3.3, 3.4, 3.5, 3.6) (2.1) (3.1) (2.2) (3.2) 101 (1.) (1.1, 1.2, 1.3) (1.1, 1.2, 1.3, 1.4, 1.5, 1.6) (1.1) (1.2)
Vector Values
Imaginary
Id
Value
Value Value
Per_element (Scalar) Variable Example 1: This example shows an ASCII scalar file (engold.Esca) for the gold geometry example.
Per_elem scalar values for the EnSight Gold geometry example part 1 tria3 2.00000E+00 3.00000E+00 hexa8 4.00000E+00 part 2 bar2 1.00000E+00 part 3 block 5.00000E+00 6.00000E+00
Per_element (Vector) Variable Example 2: This example shows an ASCII vector file (engold.Evec) for the gold geometry example.
Per_elem vector values for the EnSight Gold geometry example part 1 tria3 2.10000E+00 3.10000E+00 2.20000E+00 3.20000E+00
11-51
11.1 EnSight Gold Per_Element Variable File Format 2.30000E+00 3.30000E+00 hexa8 4.10000E+00 4.20000E+00 4.30000E+00 part 2 bar2 1.10000E+00 1.20000E+00 1.30000E+00 part 3 block 5.10000E+00 6.10000E+00 5.20000E+00 6.20000E+00 5.30000E+00 6.30000E+00
Per_element (Tensor) Variable Example3: This example shows an ASCII 2nd order symmetric tensor file (engold.Eten) for the gold geometry example.
Per_elem symmetric tensor values for the EnSight Gold geometry example part 1 tria3 2.10000E+00 3.10000E+00 2.20000E+00 3.20000E+00 2.30000E+00 3.30000E+00 2.40000E+00 3.40000E+00 2.50000E+00 3.50000E+00 2.60000E+00 3.60000E+00 hexa8 4.10000E+00 4.20000E+00 4.30000E+00 4.40000E+00 4.50000E+00 4.60000E+00 part 2 bar2 1.10000E+00 1.20000E+00 1.30000E+00 1.40000E+00 1.50000E+00 1.60000E+00 part 3 block
11-52
11.1 EnSight Gold Per_Element Variable File Format 5.10000E+00 6.10000E+00 5.20000E+00 6.20000E+00 5.30000E+00 6.30000E+00 5.40000E+00 6.40000E+00 5.50000E+00 6.50000E+00 5.60000E+00 6.60000E+00
Per_element (Complex) Variable Example 4: This example shows ASCII complex real (engold.Ecmp_r) and imaginary (engold.Ecmp_i) scalar files for the gold geometry example. (The same methodology would apply for complex real and imaginary vector files.)
Real scalar File: Per_elem complex real scalar values for the EnSight Gold geometry example part 1 tria3 2.10000E+00 3.10000E+00 hexa8 4.10000E+00 part 2 bar2 1.10000E+00 part 3 block 5.10000E+00 6.10000E+00 Imaginary scalar File: Per_elem complex imaginary scalar values for the EnSight Gold geometry example part 1 tria3 2.20000E+00 3.20000E+00 hexa8 4.20000E+00 part 2 bar2 1.20000E+00 part 3 block 5.20000E+00 6.20000E+00
11-53
# mm = i*j*k
80 chars 1 int
11-54
11.1 EnSight Gold Undefined Variable Values Format block undef undef_value s_m1 s_m2 ... s_mm # mm = i*j*k 80 chars 1 float mm floats
# mm = i*j*k
Undefined per_node (Scalar) Variable Example: This example shows undefined data in an ASCII scalar file (engold.Nsca_u) for the gold geometry example.
Per_node undefined scalar values for the EnSight Gold geometry example part 1 coordinates undef -1.00000E+04 -1.00000E+04 3.00000E+00 4.00000E+00 5.00000E+00 6.00000E+00 7.00000E+00 8.00000E+00 9.00000E+00 1.00000E+01 1.10000E+01 part 2 coordinates 1.00000E+00 2.00000E+00 part 3 block undef -1.23450E-10 1.00000E+00 2.00000E+00
11-55
11.1 EnSight Gold Undefined Variable Values Format 3.00000E+00 4.00000E+00 5.00000E+00 -1.23450E-10 7.00000E+00 8.00000E+00 9.00000E+00 1.00000E+01 1.10000E+01 1.20000E+01
# mm = (i-1)*(j-1)*(k-1)
# mm = (i-1)*(j-1)*(k-1)
11-56
11.1 EnSight Gold Undefined Variable Values Format s_m1 s_m2 ... s_mm mm floats
A E12.5
# mm = (i-1)*(j-1)*(k-1)
Undefined per_element (Scalar) Variable Example: This example shows undefined data in an ASCII scalar file (engold.Esca_u) for the gold geometry example.
Per_elem undefined scalar values for the EnSight Gold geometry example part 1 tria3 undef -1.00000E+02 2.00000E+00 -1.00000E+02 hexa8 4.00000E+00 part 2 bar2 1.00000E+00 part 3 block undef -1.23450E-10 -1.23450E-10 6.00000E+00
11-57
# mm = i*j*k
80 1 80 1 mm mm
11-58
11.1 EnSight Gold Partial Variable Values Format . part # block partial mm i_m1 i_m2 ... i_mm s_m1 s_m2 ... s_mm
# mm = i*j*k
# mm = i*j*k
Partial per_node (Scalar) Variable Example: This example shows partial data in an ASCII scalar file (engold.Nsca_p) for the gold geometry example.
Per_node partial scalar values for the EnSight Gold geometry example part 1 coordinates partial 9 2 3 4 5 6 7 8
11-59
11.1 EnSight Gold Partial Variable Values Format 9 10 3.00000E+00 4.00000E+00 5.00000E+00 6.00000E+00 7.00000E+00 8.00000E+00 9.00000E+00 1.00000E+01 1.10000E+01 part 2 coordinates 1.00000E+00 2.00000E+00 part 3 block 1.00000E+00 2.00000E+00 3.00000E+00 4.00000E+00 5.00000E+00 6.00000E+00 7.00000E+00 8.00000E+00 9.00000E+00 1.00000E+01 1.10000E+01 1.20000E+01
80 chars
# me= (i-1)*(j-1)*(k-1)
11-60
80 chars
# me = (i-1)*(j-1)*(k-1)
11-61
11.1 EnSight Gold Measured/Particle File Format # block partial me i_m1 i_m2 . . i_me s_m1 s_m2 . . s_me I10 A I10 I10 1/line (me)
# me = (i-1)*(j-1)*(k-1)
Partial per_element (Scalar) Variable Example: This example shows partial data in an ASCII scalar file (engold.Esca_p) for the gold geometry example.
Per_elem partial scalar values for the EnSight Gold geometry example part 1 tria3 partial 1 1 2.00000E+00 hexa8 4.00000E+00 part 2 bar2 1.00000E+00 part 3 block partial 1 2 6.00000E+00
11-62
From FORTRAN:
A description line particle coordinates #_of_Particles id xcoord ycoord zcoord id xcoord ycoord zcoord id xcoord ycoord zcoord . . .
Measured variable files are the same as EnSight6 case per_node variable files. Please note that they are NOT the same as the EnSight gold per_node variable files.
11-63
11-64
4 10 3 7 6 1 5 node pyramid 7 6 3 8 5 17 1 16 13 12 4 20 6 18 15 14 11 10 2 1 4 3 8
3 7 2
13 node pyramid 7 19 3
11-65
11-66
In EnSights structured Part building dialog, the iblank option selected will control which portion of the structured block is created. Thus, from the same structured block, the interior flow field part as well as a symmetry boundary part could be created.
Note: By default EnSight does not do any partial cell iblank processing. Namely, only complete cells containing no exterior nodes are created. It is possible to obtain partial cell processing by issuing the test:partial_cells_on command in the Command Dialog before reading the file. Generic Format Not all of the lines included in the following generic example file are necessary:
description line 1 description line 2 node id <off/given/assign/ignore> element id <off/given/assign/ignore> coordinates # of unstructured nodes id x y z id x y z id x y z . . . part # description line point number of points id nd id nd id nd . . . bar2 number of bar2s id nd nd id nd nd id nd nd . . . bar3 number of bar3s id nd nd nd id nd nd nd id nd nd nd . . . tria3 number of three node triangles id nd nd nd id nd nd nd id nd nd nd . . | | | All geometry files must | contain these first six lines | |
11-67
11.2 EnSight6 Geometry File Format . tria6 number of six node triangles id nd nd nd nd nd nd . . . quad4 number of quad 4s id nd nd nd nd id nd nd nd nd id nd nd nd nd id nd nd nd nd . . . quad8 number of quad 8s id nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd . . . tetra4 number of 4 node tetrahedrons id nd nd nd nd id nd nd nd nd id nd nd nd nd id nd nd nd nd . . . tetra10 number of 10 node tetrahedrons id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd . . . pyramid5 number of 5 node pyramids id nd nd nd nd nd id nd nd nd nd nd id nd nd nd nd nd id nd nd nd nd nd . . . pyramid13 number of 13 node pyramids id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd . . .
nd nd nd nd
nd nd nd nd
nd nd nd nd
11-68
11.2 EnSight6 Geometry File Format hexa8 number of 8 node hexahedrons id nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd . . . hexa20 number of 20 node hexahedrons id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd . . . penta6 number of 6 node pentahedrons id nd nd nd nd nd nd id nd nd nd nd nd nd id nd nd nd nd nd nd id nd nd nd nd nd nd id nd nd nd nd nd nd . . . penta15 number of 15 node pentahedrons id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd . . . part # description line block i j k x_m1 x_m2 x_m3 ..... x_mm y_m1 y_m2 y_m3 ..... y_mm z_m1 z_m2 z_m3 ..... z_mm part # description line block iblanked i j k x_m1 x_m2 x_m3 ..... x_mm y_m1 y_m2 y_m3 ..... y_mm z_m1 z_m2 z_m3 ..... z_mm ib_m1 ib_m2 ib_m3 .... ib_mm
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
#mm=i*j*k (6/line)
11-69
The following is an example of an ASCII EnSight6 geometry file with 11 defined unstructured nodes from which 2 unstructured parts are defined, and a 2x3x2 structured part as depicted in the above diagram. (See Case File Example 1 for reference to this file.)
This is the 1st description line of the EnSight6 geometry example This is the 2nd description line of the EnSight6 geometry example node id given element id given coordinates 11 15 4.00000e+00 0.00000e+00 0.00000e+00 31 3.00000e+00 0.00000e+00 0.00000e+00 20 5.00000e+00 0.00000e+00 0.00000e+00 40 6.00000e+00 0.00000e+00 0.00000e+00 22 5.00000e+00 1.00000e+00 0.00000e+00 44 6.00000e+00 1.00000e+00 0.00000e+00 55 6.00000e+00 3.00000e+00 0.00000e+00 60 5.00000e+00 0.00000e+00 2.00000e+00 61 6.00000e+00 0.00000e+00 2.00000e+00 62 6.00000e+00 1.00000e+00 2.00000e+00 63 5.00000e+00 1.00000e+00 2.00000e+00 part 1 2D uns-elements (description line for part 1) tria3 2 102 15 20 22 103 22 44 55 hexa8 1 104 20 40 44 22 60 61 62 part 2 1D uns-elements (description line for part 2) bar2 1 101 31 15 part 3
63
11-70
Geometry Section
This is a required section which specifies the geometry information for the model (as well as measured geometry if present, and periodic match file (see Section 11.9, Periodic Matchfile Format) if present). Usage:
GEOMETRY model: measured: match: [ts] [ts] [fs] [fs] filename filename filename [change_coords_only] [change_coords_only]
where: ts = time set number as specified in TIME section. This is optional. fs = corresponding file set number as specified in FILE section below. filename = The filename of the appropriate file. -> Model or measured filenames for a static geometry case, and match filenames will not contain * wildcards. -> Model or measured filenames for a changing geometry case will contain * wildcards. change_coords_only = The option to indicate that the changing geometry (as indicated by wildcards in the filename) is coords only. Otherwise, changing geometry connectivity will be assumed.
Variable Section
EnSight 7 User Manual
This is an optional section which specifies the files and names of the variables.
11-71
[fs] [fs] [fs] [fs] [fs] [fs] [fs] [fs] [fs] [fs]
where:
ts
= The corresponding time set number (or index) as specified in TIME section below. This is only required for transient constants and variables. = The corresponding file set number (or index) as specified in FILE section below. = The variable (GUI) name (ex. Pressure, Velocity, etc.) = The constant value. If constants change over time, then ns (see TIME section below) constant values of ts. = The filename of the variable file. Note: only transient filenames contain * wildcards. = The filename for the file containing the real values of the complex variable. = The filename for the file containing the imaginary values of the complex variable. = The corresponding harmonic frequency of the complex variable. For complex variables where harmonic frequency is undefined, simply use the text string: UNDEFINED.
Note: Note:
As many variable description lines as needed may be used. The variable description is limited to 19 characters in the current release. Variable names must not start with a numeric digit and must not contain any of the following reserved characters: ( ) [ ] + @ space ! # * ^ $ /
Time Section
This is an optional section for steady state cases, but is required for transient cases. It contains time set information. Shown below is information for one time set. Multiple time sets (up to 16) may be specified for measured data as shown in Case File Example 3 below. Usage:
TIME time set: ts [description] number of steps: ns filename start number: fs filename increment: fi time values: time_1 time_2 .... time_ns
or
11-72 EnSight 7 User Manual
where: ts = timeset number. This is the number referenced in the GEOMETRY and VARIABLE sections. description = optional timeset description which will be shown in user interface. ns = number of transient steps fs = the number to replace the * wildcards in the filenames, for the first step fi = the increment to fs for subsequent steps time = the actual time values for each step, each of which must be separated by a white space and which may continue on the next line if needed fn = a list of numbers or indices, to replace the * wildcards in the filenames. File Section This section is optional for expressing a transient case with single-file formats. This section contains single-file set information. This information specifies the number of time steps in each file of each data entity, i.e. each geometry and each variable (model and/or measured). Each data entitys corresponding file set might have multiple continuation files due to system file size limit, i.e. ~2 GB for 32-bit and ~4 TB for 64-bit architectures. Each file set corresponds to one and only one time set, but a time set may be referenced by many file sets. The following information may be specified in each file set. For file sets where all of the time set data exceeds the maximum file size limit of the system, both filename index and number of steps are repeated within the file set definition for each continuation file required. Otherwise filename index may be omitted if there is only one file. File set information is shown in Case File Example 4 below.
Usage:
FILE file set: filename index: number of steps: fs fi # Note: only used when data continues in other files ns
where: fs = file set number. This is the number referenced in the GEOMETRY and VARIABLE sections above. ns = number of transient steps fi = file index number in the file name (replaces * in the filenames) Case File Example 1 The following is a minimal EnSight6 case file for a steady state model with some results.
Note: this (en6.case) file, as well as all of its referenced geometry and variable files (along with a couple of command files) can be found under your installation directory (path: $ENSIGHT7_HOME/ data/user_manual). The EnSight6 Geometry File Example and the Variable File Examples are the contents of these files.
FORMAT type: ensight GEOMETRY model: en6.geo VARIABLE constant per case: scalar per element: scalar per node: Cden Esca Nsca .8 en6.Esca en6.Nsca
11-73
The following is a Case file for a transient model. The connectivity of the geometry is also changing.
FORMAT type: ensight GEOMETRY model: VARIABLE scalar per node: vector per node: TIME time set: number of steps: filename start number: filename increment: time values: 1.0
example2.geo**
1 1
Stress Displacement
example2.scl** example2.dis**
2.0
1 3 0 1 3.0
The following is a Case file for a transient model with measured data.
1 2
example3.geo* example3.mgeo**
VARIABLE constant per case: constant per case: scalar per element vector per node: scalar per measured node: vector per measured node: TIME time set: number of steps: filename start number: filename increment: time values:
1 1 1 2 2
1 5 1 2 .1 .2 .3
11-74
time set: number of steps: filename start number: filename increment: time values: .05 .15 .25 .34 .45 .55
In this example, the transient data for the measured velocity data entity happens to be greater than the maximum file size limit. Therefore, the first four time steps fit and are contained in the first file, and the last two time steps are continued in a second file.
FORMAT type: ensight GEOMETRY model: measured: VARIABLE constant per case: scalar per element: vector per node: scalar per measured node: vector per measured node: TIME time set: number of steps: time values: time set: number of steps: time values: FILE file set: number of steps: file set:
1 2
example4.geo 1 example4.mgeo2
1 1 2 2
1 1 2 3
1 5 2
11-75
Each file contains transient data that corresponds to the specified number of time steps. The data for each time step sequentially corresponds to the simulation time values (time values) found listed in the TIME section. In transient single-file format, the data for each time step essentially corresponds to a standard EnSight6 geometry or variable file (model or measured) as expressed in multiple file format. The data for each time step is enclosed between two wrapper records, i.e. preceded by a BEGIN TIME STEP record and followed by an END TIME STEP record. Time step data is not split between files. If there is not enough room to append the data from a time step to the file without exceeding the maximum file limit of a particular system, then a continuation file must be created for the time step data and any subsequent time step. Any type of user comments may be included before and/or after each transient step wrapper.
Note 1: If transient single file format is used, EnSight expects all files of a dataset to be specified in transient single file format. Thus, even static files must be enclosed between a BEGIN TIME STEP and an END TIME STEP wrapper. Note 2: For binary geometry files, the first BEGIN TIME STEP wrapper must follow the <C Binary/Fortran Binary> line. Both BEGIN TIME STEP and END TIME STEP wrappers are written according to type (1) in binary. (see Writing EnSight6 Binary Files, in Section 11.2) Note 3: Efficient reading of each file (especially binary) is facilitated by appending each file with a file index. A file index contains appropriate information to access the file byte positions of each time step in the file. (EnSight automatically appends a file index to each file when exporting in transient single file format.) If used, the file index must follow the last END TIME STEP wrapper in each file.
File Index Usage: ASCII
%20d\n %20d\n %20d\n ... %20d\n %20d\n %20d\n %s\n
*
Binary
sizeof(int) sizeof(long) sizeof(long) ... sizeof(long) sizeof(int) sizeof(long) sizeof(char)*80
Item
n fb1 fb2 ... fbn flag fb of item n
FILE_INDEX
Description
Total number of data time steps in the file. File byte loc for contents of 1st time step* File byte loc for contents of 2nd time step* ... File byte loc for contents of nth time step* Miscellaneous flag (= 0 for now) File byte loc for Item n above File index keyword
Each file byte location is the first byte that follows the BEGIN TIME STEP record.
Shown below are the contents of each of the above files, using the data files from Case
11-76
11-77
depends on the type of field. An unstructured scalar field has one, a vector field has three (order: x,y,z), a 2nd order symmetric tensor field has 6 (order: 11, 22, 33, 12, 13, 23), and a 2nd order asymmetric tensor field has 9 values per node (order: 11, 12, 13, 21, 22, 23, 31, 32, 33). An unstructured complex variable in EnSight6 consists of two scalar or vector fields (one real and one imaginary), with scalar and vector values written to their separate files respectively. Third comes any structured data information, starting with a part # line, followed by a line containing the block, and then lines containing the values for each structured node which are output in the same IJK component order as the coordinates. Briefly, a structured scalar is the same as an unstructured scalar, one value per node. A structured vector is written one value per node per component, thus three sequential scalar field blocks. Likewise for a structured 2nd order symmetric tensor, written as six sequential scalar field blocks, and a 2nd order tensor, written as nine sequential scalar field blocks. The same methodology applies for a complex variable only with the real and imaginary fields written to separate structured scalar or vector files. The values must be written in the following floating point format (6 per line as shown in the examples below): From C: From FORTRAN: Line 1 This line is a description line. Line 2 through the end of the file contains the values at each node in the model. A generic example for per_node variables:
One description line for *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** part # *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** part # *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** the entire file *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** 12.5e e12.5
format format
The following variable file examples reflect scalar, vector, tensor, and complex variable values per node for the previously defined EnSight6 Geometry File Example with 11 defined unstructured nodes and a 2x3x2 structured Part (Part
11-79
Real
Imaginary
Value
Values
Value Value
Per_node (Scalar) Variable Example 1 This example shows ASCII scalar file (en6.Nsca) for the geometry example.
Per_node scalar values for the EnSight6 geometry 1.00000E+00 2.00000E+00 3.00000E+00 4.00000E+00 7.00000E+00 8.00000E+00 9.00000E+00 1.00000E+01 part 3 block 1.00000E+00 2.00000E+00 3.00000E+00 4.00000E+00 7.00000E+00 8.00000E+00 9.00000E+00 1.00000E+01 example 5.00000E+00 6.00000E+00 1.10000E+01
Per_node (Vector) Variable Example 2 This example shows ASCII vector file (en6.Nvec) for the geometry example.
Per_node vector values for the EnSight6 geometry 1.10000E+00 1.20000E+00 1.30000E+00 2.10000E+00 3.10000E+00 3.20000E+00 3.30000E+00 4.10000E+00 5.10000E+00 5.20000E+00 5.30000E+00 6.10000E+00 7.10000E+00 7.20000E+00 7.30000E+00 8.10000E+00 9.l0000E+00 9.20000E+00 9.30000E+00 1.01000E+01 1.11000E+01 1.12000E+01 1.13000E+01 part 3 block 1.10000E+00 2.10000E+00 3.10000E+00 4.10000E+00 7.10000E+00 8.10000E+00 9.10000E+00 1.01000E_01 1.20000E+00 2.20000E+00 3.20000E+00 4.20000E+00 7.20000E+00 8.20000E+00 9.20000E+00 1.02000E+01 1.30000E+00 2.30000E+00 3.30000E+00 4.30000E+00 7.30000E+00 8.30000E+00 9.30000E+00 1.03000E+01 example 2.20000E+00 4.20000E+00 6.20000E+00 8.20000E+00 1.02000E+01 2.30000E+00 4.30000E+00 6.30000E+00 8.30000E+00 1.03000E+01
11-80
Per_node (Tensor) Variable Example 3 This example shows an ASCII 2nd order symmetric tensor file (en6.Nten) for the geometry example.
Per_node symmetric tensor values for 1.10000E+00 1.20000E+00 1.30000E+00 2.10000E+00 2.20000E+00 2.30000E+00 3.10000E+00 3.20000E+00 3.30000E+00 4.10000E+00 4.20000E+00 4.30000E+00 5.10000E+00 5.20000E+00 5.30000E+00 6.10000E+00 6.20000E+00 6.30000E+00 7.10000E+00 7.20000E+00 7.30000E+00 8.10000E+00 8.20000E+00 8.30000E+00 9.10000E+00 9.20000E+00 9.30000E+00 1.01000E+01 1.02000E+01 1.03000E+01 1.11000E+01 1.12000E+01 1.13000E+01 part 3 block 1.10000E+00 2.10000E+00 3.10000E+00 7.10000E+00 8.10000E+00 9.10000E+00 1.20000E+00 2.20000E+00 3.20000E+00 7.20000E+00 8.20000E+00 9.20000E+00 1.30000E+00 2.30000E+00 3.30000E+00 7.30000E+00 8.30000E+00 9.30000E+00 1.40000E+00 2.40000E+00 3.40000E+00 7.40000E+00 8.40000E+00 9.40000E+00 1.50000E+00 2.50000E+00 3.50000E+00 7.50000E+00 8.50000E+00 9.50000E+00 1.60000E+00 2.60000E+00 3.60000E+00 7.60000E+00 8.60000E+00 9.60000E+00 the EnSight6 geometry example 1.40000E+00 1.50000E+00 1.60000E+00 2.40000E+00 2.50000E+00 2.60000E+00 3.40000E+00 3.50000E+00 3.60000E+00 4.40000E+00 4.50000E+00 4.60000E+00 5.40000E+00 5.50000E+00 5.60000E+00 6.40000E+00 6.50000E+00 6.60000E+00 7.40000E+00 7.50000E+00 7.60000E+00 8.40000E+00 8.50000E+00 8.60000E+00 9.40000E+00 9.50000E+00 9.60000E+00 1.04000E+01 1.05000E+01 1.06000E+01 1.14000E+01 1.15000E+01 1.16000E+01
4.10000E+00 1.01000E+01 4.20000E+00 1.02000E+01 4.30000E+00 1.03000E+01 4.40000E+00 1.04000E+01 4.50000E+00 1.05000E+01 4.60000E+00 1.06000E+01
5.10000E+00 1.11000E+01 5.20000E+00 1.12000E+01 5.30000E+00 1.13000E+01 5.40000E+00 1.14000E+01 5.50000E+00 1.15000E+01 5.60000E+00 1.16000E+01
6.10000E+00 1.21000E+01 6.20000E+00 1.22000E+01 6.30000E+00 1.23000E+01 6.40000E+00 1.24000E+01 6.50000E+00 1.25000E+01 6.60000E+00 1.26000E+01
Per_node (Complex) Variable Example 4 This example shows the ASCII complex real (en6.Ncmp_r) and imaginary (en6.Ncmp_i) scalar files for the geometry example. (The same methodology would apply for complex real and imaginary vector files.)
Real scalar File:
Per_node complex real scalar values for the EnSight6 geometry example 1.10000E+00 2.10000E+00 3.10000E+00 4.10000E+00 5.10000E+00 6.10000E+00 7.10000E+00 8.10000E+00 9.10000E+00 1.01000E+01 1.11000E+01 part 3 block 1.10000E+00 2.10000E+00 3.10000E+00 4.10000E+00 5.10000E+00 6.10000E+00 7.10000E+00 8.10000E+00 9.10000E+00 1.01000E+01 1.11000E+01 1.21000E+00
11-81
value for each element of that type and part. If it is a scalar variable, there is one value per element, while for vector variables there are three values per element. (The number of elements of the given type are obtained from the corresponding EnSight6 geometry file.) The values must be written in the following floating point format (6 per line as shown in the examples below): From C: From FORTRAN: format e12.5 format
12.5e
The format of a per_element variable file is as follows: Line 1 This line is a description line. Line 2 Part line, with part number corresponding to the geometry file. Line 3 Element type line ( example: tria3, hexa8, ... ) Line 4 Repeats until next element type line, part line, or end of file is reached. Lists values for each element of this part and type.
element type
*.*****E+** *.*****E+** part # block *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+**
*.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+** *.*****E+**
11-82
The following variable file examples reflect scalar, vector, tensor, and complex variable values per element for the previously defined EnSight6 Geometry File Example with 11 defined unstructured nodes and a 2x3x2 structured Part (Part number 3). The values are summarized in the following table.
Complex Scalar Element Element Scalar Index
Unstructured bar2 1 tria3 1 2 hexa8 1 Structured block 1 1 (5.) (5.1, 5.2, 5.3) (5.1, 5.2, 5.3, 5.4, 5.5, 5.6) (5.1) (5.2) 104 (4.) (4.1, 4.2, 4.3) (4.1, 4.2, 4.3, 4.4, 4.5, 4.6) (4.1) (4.2) 102 103 (2.) (3.) (2.1, 2.2, 2.3) (2.1, 2.2, 2.3, 2.4, 2.5, 2.6) (3.1, 3.2, 3.3) (3.1, 3.2, 3.3, 3.4, 3.5, 3.6) (2.1) (3.1) (2.2) (3.2) 101 (1.) (1.1, 1.2, 1.3) (1.1, 1.2, 1.3, 1.4, 1.5, 1.6) (1.1) (1.2)
Vector Values
Imaginary
Id
Value
Value Value
Per_element (Scalar) Variable Example 1 This example shows an ASCII scalar file (en6.Esca) for the geometry example.
Per_elem scalar values for the EnSight6 geometry example part 1 tria3 2.00000E+00 3.00000E+00 hexa8 4.00000E+00 part 2 bar2 1.00000E+00 part 3 block 5.00000E+00 6.00000E+00
Per_element (Vector) Variable Example 2 This example shows an ASCII vector file (en6.Evec) for the geometry example.
Per_elem vector values for the EnSight6 geometry example part 1 tria3 2.10000E+00 2.20000E+00 2.30000E+00 3.10000E+00 3.20000E+00 3.30000E+00 hexa8 4.10000E+00 4.20000E+00 4.30000E+00 part 2 bar2 1.10000E+00 1.20000E+00 1.30000E+00 part 3 block 5.10000E+00 6.10000E+00 5.20000E+00 6.20000E+00 5.30000E+00 6.30000E+00
11-83
Per_element (Tensor) Variable Example 3 This example shows the ASCII 2nd order symmetric tensor file (en6.Eten) for the geometry example.
Per_elem symmetric tensor values for part 1 tria3 2.10000E+00 2.20000E+00 2.30000E+00 3.10000E+00 3.20000E+00 3.30000E+00 hexa8 4.10000E+00 4.20000E+00 4.30000E+00 part 2 bar2 1.10000E+00 1.20000E+00 1.30000E+00 part 3 block 5.10000E+00 6.10000E+00 5.20000E+00 6.20000E+00 5.30000E+00 6.30000E+00 5.40000E+00 6.40000E+00 5.50000E+00 6.50000E+00 5.60000E+00 6.60000E+00 the EnSight6 geometry example
Per_element (Complex) Variable Example 4 This example shows the ASCII complex real (en6.Ecmp_r) and imaginary (en6.Ecmp_i) scalar files for the geometry example. (The same methodology would apply for complex real and imaginary vector files).
Real scalar File:
Per_elem complex real scalar values for the EnSight6 geometry example part 1 tria3 2.10000E+00 3.10000E+00 hexa8 4.10000E+00 part 2 bar2 1.10000E+00 part 3 block 5.10000E+00 6.10000E+00
11-84
Measured variable files use the same format as EnSight6 per_node variable files.
11-85
For binary files, there is a header that designates the type of binary file. This header is: C Binary or Fortran Binary. This must be the first thing in the geometry file only. The format for the file is then essentially the same format as the ASCII format, with the following exceptions: The ASCII format puts the node and element ids on the same line as the corresponding coordinates. The BINARY format writes all node ids then all coordinates. The ASCII format puts all element ids of a type within a Part on the same line as the corresponding connectivity. The BINARY format writes all the element ids for that type, then all the corresponding connectivities of the elements. FORTRAN binary files should be created as sequential access unformatted files. In all the descriptions of binary files that follow, the number on the left end of the line corresponds to the type of write of that line, according to the following code: 1. This is a write of 80 characters to the file: C example:
char buffer[80]; strcpy(buffer,C Binary); fwrite(buffer,sizeof(char),80,file_ptr);
FORTRAN:
character*80
buffer
4. This is a write of a float array: C example: fwrite(coords,sizeof(float),3*num_nodes,file_ptr); FORTRAN: write(10) ((coords(i,j),i=1,3),j=1,num_nodes) (NOTE: Coords is a single precision array, double precision will not work!)
11-86
An EnSight binary geometry file contains information in the following order: (1) (1) (1) (1) (1) (1) (2) (3) (4) (1) (1) (1) (2) (3) (3) (1) (2) (3) (3)
<C Binary/Fortran Binary> description line 1 description line 2 node id <given/off/assign/ignore> element id <given/off/assign/ignore> coordinates #_of_points [point_ids] coordinate_array part # description line element_type #_of_element_type [element_ids] for the element_type connectivities for the element_type element_type #_of_element_type [element_ids] for the element_type connectivities for the element_type : (1) part # (1) description line (1) element_type (2) #_of_element_type (3) [element_ids] for the element_type (3) connectivities for the element_type (1) element_type (2) #_of_element_type (3) [element_ids] for the element_type (3) connectivities for the element_type (1) part # (1) description line (1) block [iblanked] (3) i j k (4) all i coords, all j coords, all k coords (3) [iblanking] : Per_node Binary Scalar An EnSight6 binary scalar file contains information in the following order: (1) (4) (1) (1) (4) Per_node Binary Vector description line scalar_array for unstructured nodes part # block scalar_array for parts structured nodes
An EnSight6 binary vector file contains information in the following order: (1) description line (4) vector_array for unstructured nodes (1) part #
11-87
(1) block (4) vector_array for parts structured nodes Per_node Binary Tensor An EnSight6 binary tensor file contains information in the following order: (1) (4) (1) (1) (4) description line tensor_array for unstructured nodes part # block tensor_array for parts structured nodes
Per_node Binary Complex An EnSight6 binary complex real and imaginary scalar files contain information in the following order: (The same methodology applies for the complex real and imaginary vector files.) Real scalar file: (1) (4) (1) (1) (4) Imaginary scalar file: (1) (4) (1) (1) (4) Per_element Binary Scalar (1) (1) (1) (4) Per_element Binary Vector (1) (1) (1) (4) Per_element Binary Tensor (1) (1) (1) (4) (1) (1) (4) description line imaginary scalar_array for unstructured nodes part # block imaginary scalar_array for parts structured nodes An EnSight6 binary scalar file contains information in the following order: description line part # element type (tria3, quad4, ...) scalar_array for elements of part and type An EnSight6 binary vector file contains information in the following order: description line part # element type (tria3, quad4, ...) vector_array for elements of part and type An EnSight6 binary tensor file contains information in the following order: description line part # element type (tria3, quad4, ...) tensor_array for unstructured elements of part and type part # block tensor_array for structured elements of part and type description line real scalar_array for unstructured nodes part # block real scalar_array for parts structured nodes
11-88
Per_element Binary Complex EnSight6 binary complex real and imaginary scalar files contain information in the following order: (The same methodology applies for the complex real and imaginary vector files.) Real scalar file: (1) (1) (1) (4) (1) (1) (4) description line part # element type (tria3, quad4, ...) real scalar_array for unstructured elements of part and type part # block real scalar_array for structured elements of part and type
Imaginary scalar file: (1) description line (1) part # (1) element type (tria3, quad4, ...) (4) imaginary scalar_array for unstructured elements of part and type (1) part # (1) block (4) imaginary scalar_array for structured elements of part and type Binary Measured Geometry An EnSight6 binary measured/particle geometry file contains information in the following order: (1) (1) (1) (2) (3) (4) Binary Measured Variable Files <C Binary/Fortran Binary> description line 1 particle coordinates #_of_points point_ids coordinate_array
EnSight6 binary measured/discrete particle scalar and vector files follow the same binary formats as EnSight6 model per-node scalar and vector files.
11-89
11-90
4 10 3 7 6 1 5 node pyramid 7 6 3 8 5 17 1 16 13 12 4 20 6 18 15 14 11 10 2 1 4 3 8
3 7 2
13 node pyramid 7 19 3
11-91
format format
Real numbers are written out using the following floating-point format:
12.5e format e12.5 format
The number of integers or reals per line must also be followed! 5. By default, a Part is processed to show the outside boundaries. This representation is loaded to the Client host system when the geometry file is read (unless other attributes have been set on the workstation, such as feature angle). 6. Coordinates must be defined before any Parts can be defined. The different elements can be defined in any order (that is, you can define a hexa8 before a bar2).
Generic Format
Not all of the lines included in the following generic example file are necessary:
description line 1 description line 2 node id <off/given/assign/ignore> element id <off/given/assign/ignore> coordinates # of points id x y z id x y z
11-92
11.3 EnSight5 Geometry File Format id x y z . . . part # description line point number of points id nd nd id nd nd id nd nd . . . bar2 number of bar2s id nd nd id nd nd id nd nd . . . bar3 number of bar3s id nd nd nd id nd nd nd id nd nd nd . . . tria3 number of three node triangles id nd nd nd id nd nd nd id nd nd nd . . . tria6 number of six node triangles id nd nd nd nd nd nd . . . quad4 number of quad 4s id nd nd nd nd id nd nd nd nd id nd nd nd nd id nd nd nd nd . . . quad8 number of quad 8s id nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd . .
11-93
11.3 EnSight5 Geometry File Format . tetra4 number of 4 node tetrahedrons id nd nd nd nd id nd nd nd nd id nd nd nd nd id nd nd nd nd . . . tetra10 number of 10 node tetrahedrons id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd . . . pyramid5 number of 5 node pyramids id nd nd nd nd nd id nd nd nd nd nd id nd nd nd nd nd id nd nd nd nd nd . . . pyramid13 number of 13 node pyramids id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd . . . hexa8 number of 8 node hexahedrons id nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd . . . hexa20 number of 20 node hexahedrons id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd id nd nd nd nd nd nd nd nd nd nd . . . penta6 number of 6 node pentahedrons id nd nd nd nd nd nd id nd nd nd nd nd nd id nd nd nd nd nd nd
nd nd nd nd
nd nd nd nd
nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
11-94
11.3 EnSight5 Geometry File Format id nd nd nd nd nd id nd nd nd nd nd . . . penta15 number of 15 node id nd nd nd nd nd id nd nd nd nd nd id nd nd nd nd nd id nd nd nd nd nd id nd nd nd nd nd . . . EnSight5 Geometry Example nd nd
pentahedrons nd nd nd nd nd nd nd nd nd nd nd nd nd nd nd nd nd nd nd nd nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
nd nd nd nd nd
11-95
11-96
If there is more than one time step, the file name must follow the EnSight5 wild card specification. See Note below. Lines that follow the scalar variable files. List the file names that correspond to each vector variable. There must be a file name for each vector variable that is specified in Line 1. If there is more than one time step, the file name must follow the EnSight5 wild card specification. See Note below. Note The variable description is limited to 19 characters in the current release. Variable names must not start with a numeric digit and must not contain any of the following reserved characters: ( ) [ ] + @ space ! # * ^ $ / : ?
The following example illustrates a result file specified for a non-changing geometry file with only one time step:
2 1 0 1 0.0 exone.scl0 pressure exone.scl1 temperature exone.dis0 velocity
This example illustrates a result file that specifies a connectivity changing geometry that has multiple time steps.
1 2 1 4 1.0 2.0 2.5 5.0 0 1 extwo.geom** pres.scl** pressure vel.dis** velocity grad.dis** gradient
11-97
format format
This example shows a scalar file for a geometry with seven defined nodes.
These are the pressure values for a 7 node geometry 1.00000E+00 2.00000E+00 3.00000E+00 4.00000E+00 5.00000E+00 6.00000E+00 7.00000E+00
This example shows the vector file for a geometry with seven defined nodes.
These are the velocity values for a 7 node geometry 1.00000E+00 1.00000E+00 1.00000E+00 2.00000E+00 2.00000E+00 2.00000E+00 3.00000E+00 3.00000E+00 3.00000E+00 4.00000E+00 4.00000E+00 4.00000E+00 5.00000E+00 5.00000E+00 5.00000E+00 6.00000E+00 6.00000E+00 6.00000E+00 7.00000E+00 7.00000E+00 7.00000E+00
11-98
11-99
The following illustrates an EnSight5 Measured Geometry/Particle file with seven points:
This is a simple ensight5 measured geometry/particle file particle coordinates 7 101 0.00000E+00 0.00000E+00 0.00000E+00 102 1.00000E+00 0.00000E+00 0.00000E+00 103 1.00000E+00 1.00000E+00 0.00000E+00 104 0.00000E+00 1.00000E+00 0.00000E+00 205 5.00000E-01 0.00000E+00 2.00000E+00 206 5.00000E-01 1.00000E+00 2.00000E+00 307 0.00000E+00 0.00000E+00-1.50000E+00
The format of the EnSight5 Measured/Particle results file is as follows: Line 1 Contains the number of scalar variables, the number of vector variables, and a measured geometry changing flag. If the measured geometry changing flag is 0, only one time step is indicated. Line 2 Indicates the number of available time steps. Line 3 Lists the time that is associated with each time step. The time step information does not have to coincide with the model time step information. This line can actually span several lines in the file. You do not have to have one very long line. Line 4 Specified only if Line 2 specifies more than one time step. The line contains two values; the first value indicates the file extension value for the first time step, and the second value indicates the offset between files. If this line contains the values 0 and 5, the first time step has a subscript of 0, the second of 5, the third of 10, and so on. Line 5 Contains the name of the measured geometry file. If there is more than one time step, the file name must follow the EnSight wild card specification. Line 6 through Line [5+N] where N is the number of scalar variables specified in Line 1. List the file names that correspond to each scalar variable. There must be a file name for each scalar variable that is specified in Line 1. If there is more than one time step, the file name must follow the EnSight wild card specification. Lines that follow the scalar variable files. List the names of the files that correspond to each vector variable. There
11-100
must be a file name for each vector variable that is specified in Line 1. If there is more than one time step, the file name must follow the EnSight wild card specification. A generic EnSight5 Measured/Particle results file is as follows:
#_of_scalars #_of_vectors geom_chang_flag #_of_timesteps time1 time2 time3 ..... start_file_# skip_by_value measured_geom_file_name** scalar0_file_name** description scalar1_file_name** description . . . vector0_file_name** description vector1_file_name** description . . .
This example illustrates an EnSight5 Measured/Particle result file that specifies a non-changing geometry with only one time step:
2 1 0 1 0.0 exone.geom exone.scl0 pressure exone.scl1 temperature exone.dis0 velocity
This example illustrates an EnSight5 Measured/Particle result file that specifies a changing geometry with multiple time steps:
1 2 1 4 1.0 2.0 2.5 5.0 0 1 extwo.geom** pres.scl** pressure vel.dis** velocity grad.dis** gradient
The EnSight5 Measured/Particle variable files referred to in the measured Results file follow the same format as EnSight5 Variable files. The number of values in each of these variable files must correspond properly to the number of Particles in the corresponding measured geometry files.
11-101
FORTRAN:
character*80
buffer
4. This is a write of a float array: C example: fwrite(coords,sizeof(float),3*num_nodes,file_ptr); FORTRAN: write(10) ((coords(i,j),i=1,3),j=1,num_nodes) (Note: Coords is a single precision array, double precision will not work!) EnSight5 Binary Geometry File Format An EnSight5 binary geometry file contains information in the following order:
11-102
(1) (1) (1) (1) (1) (1) (2) (3) (4) (1) (1) (1) (2) (3) (3) (1) (2) (3) (3)
(1) (1) (1) (2) (3) (3) (1) (2) (3) (3)
<C Binary/Fortran Binary> description line 1 description line 2 node id <given/off/assign/ignore> element id <given/off/assign/ignore> coordinates #_of_points [point_ids] coordinate_array part # description line element_type #_of_element_type [element_ids] for the element_type connectivities for the element_type element_type #_of_element_type [element_ids] for the element_type connectivities for the element_type . . . part # description line element_type #_of_element_type [element_ids] for the element_type connectivities for the element_type element_type #_of_element_type [element_ids] for the element_type connectivities for the element_type . . .
Binary Scalar
An EnSight5 binary scalar file contains information in the following order: (1) description line (4) scalar_array
Binary Vector
An EnSight5 binary vector file contains information in the following order: (1) description line (4) vector_array
Binary Measured
An EnSight5 binary measured/Particle geometry file contains information in the following order:
11-103
<C Binary/Fortran Binary> description line 1 particle coordinates #_of_points point_ids coordinate_array
11-104
Only the single zone format can be read into EnSight. Any tetrahedral elements will be placed into the first domain Part. Triangular elements are placed into Parts based on their tag value. The FAST UNSTRUCTURED solution file or function file formats can be used for variable results. The I J K values need to be I=Number of points and J=K=1. This does require the use of a modified EnSight results file as explained below. Node and element numbers are assigned sequentially allowing for queries to be made within EnSight. Tetrahedron elements will be assigned before triangular elements.
FAST UNSTRUCTURED Result file format
The FAST UNSTRUCTURED result file was defined by CEI and is very similar to the EnSight results file and contains information needed to relate variable names to variable files, step information, etc. There is a slight variation from the normal EnSight results file because of the differences between the solution (Q file) and function files. The difference lies on the lines which relate variable filenames to a description. These lines have the following format:
<filename> <type> <number(s)> <description>
See FAST UNSTRUCTURED Result File below for the definition of each. The following information is included in a FAST UNSTRUCTURED result file: Number of scalar variables Number of vector variables Number of time steps
11-105
Starting file number extension and skip-by value Flag that specifies whether there is changing geometry. Names of the files that contain the values of scalar and vector variables. An indication as to the type of the file being used for the variable, which variable in the file and the name given to that variable. The names of the geometry files that will be used for the changing geometry.
Generic FAST UNSTRUCTURED Result File Format
The format of the Result file is as follows: Line 1 Contains the number of scalar variables, the number of vector variables and a geometry changing flag. If the geometry changing flag is 0, the geometry of the model does not change over time. If the flag is 1, the geometry can change connectivity. If the flag is 2, only coordinates can change. Line 2 Indicates the number of time steps that are available. If this number is positive, then line 3 information must be present. If this number is negative, then Line 3 information must not be present and the times will be read from the solution file. Thus, one must have a solution file in one of the lines from Line 6 on. Line 3 Lists the time that is associated with each time step. There must be the same number of values as are indicated in Line 2. This line can actually span several lines in the file. Specify only if Line 2 value is positive. Line 4 Specified only if more than one time step is indicated in Line 2. The two values on this line indicate the file extension value for the first time step and the offset between files. If the values on this line are 0 5, the first time step available has a subscript of 0, the second time step available has a subscript of 5, the third time step has a subscript of 10, and so on. Line 5 This line exists only if the changing geometry flag on Line 1 has been set to 1 or 2. Line contains name of the FAST UNSTRUCTURED grid file. The file name must follow the EnSight wild card specification. Line 6 through Line [5+N] where N is the number of scalar variables specified in Line 1. List the file names that correspond to each scalar variable. There must be a file name for each scalar variable that is specified in Line 1. If there is more than one time step, the file name must follow the EnSight wild card specification. These lines also contain the type of file being used, solution or function, and the location of the variable value in the file. The contents are:
11-106 EnSight 7 User Manual
11.4 FAST UNSTRUCTURED Results File Format <filename> <type> <number> <description>
where filename is the name of solution file or function file containing the variable; type is S for solution file, or F for function file; numberis which variable in the file to use (specify just one number); and description is the Description of the variable. The solution file (s) is the traditional .q file in which normally the first variable is density, the second through fourth variables are the components of momentum, and the fifth variable is total energy. Lines that follow the scalar variable files. List the file names that correspond to each vector variable. There must be a file name for each vector variable that is specified in Line 0. If there is more than one time step, the file name must follow the EnSight wild card specification. These lines also contain the type of file being used, solution or function, and the location(s) of the variable values in the file. The contents are:
<filename> <type> <numbers> <description>
where filename is the name of solution file or function file containing the variable; type is S for solution file, or F for function file; numbersare which variables in the file to use (specify just three numbers); and description is the Description of the variable. The generic format of the result file is as follows:
#_of_scalars #_of_vectors geom_chng_flag #_of_timesteps time1 time2 time3 ..... start_file_# skip_by_value geometry_file_name.geo** scalar0_file_name** type # description scalar1_file_name** type # description . . . vector0_file_name** type # # # description vector1_file_name** type # # # description . . .
FAST UNSTRUCTURED This example illustrates a result file that specifies a non-changing geometry with Example only one time step.
3 2 0 1 0.0 block.sol block.sol block.scl block.var block.sol
S S F F S
1 5 1 1 2
Thus, this model will get two scalars from the solution file (block.sol). The first is Density in the first location in the file and the next is Total energy in the fifth
11-107
location in the solution file. It will also get a Temperature scalar from the first location in the function file (block.scl). It will get a Displacement vector from the function file called block.var. The three components of this vector are in the 1st, 2nd, and 3rd locations in the file. Finally, a Momentum vector will be obtained from the 2nd, 3rd, and 4th locations of the solution file. Example 2 is somewhat similar, except that it is transient, with coordinate changing geometry. Note also that the times will come from the solution file.
3 2 2 -10 0 1 block***.grid block***.sol S block***.sol S block***.scl F block***.var F block***.sol S
1 5 1 1 2
11-108
11-109
FLUENT Example
01
extwo**.uni
The following FLUENT universal files will need to exist for the result file:
extwo00.uni extwo01.uni extwo02.uni extwo03.uni
11-110
List BOTH the file names AND variable description that correspond to each scalar variable. There must be a file name for each scalar variable that is specified in Line 1. If there is more than one time step, the file name must follow the EnSight5 wild card specification. See Note below. Lines that follow the scalar variable files. List the file names that correspond to each vector variable. There must be a file name for each vector variable that is specified in Line 1. If there is more than one time step, the file name must follow the EnSight5 wild card specification. See Note below. Note The variable description is limited to 19 characters in the current release. Variable names must not start with a numeric digit and must not contain any of the following reserved characters: ( ) [ ] + @ space ! # * ^ $ / : ?
The following example illustrates a result file specified for a non-changing geometry file with only one time step:
2 1 0 1 0.0 exone.scl0 pressure exone.scl1 temperature exone.dis0 velocity
This example illustrates a result file that specifies a connectivity changing geometry that has multiple time steps.
1 2 1 4 1.0 2.0 2.5 5.0 0 1 extwo.geom** pres.scl** pressure vel.dis** velocity grad.dis** gradient
11-112
11.6 Movie.BYU Results File Format extwo.geom00 extwo.geom01 extwo.geom02 extwo.geom03 pres.scl00 pres.scl01 pres.scl02 pres.scl03 vel.dis00 vel.dis01 vel.dis02 vel.dis03 grad.dis00 grad.dis01 grad.dis02 grad.dis03
11-113
If Multi-zoned, the dimension of the problem is forced to be 3D. There can be nodes in different zones which have the same coordinates. No attempt has been made to merge these. Thus, on shared zone boundaries, there will likely be nodes on top of nodes. One negative effect of this is that node labels will be on top of each other. Currently EnSight only prints out the global conditions in the solution file, fsmach, alpha, re, and time. It does not do anything else with them. Node and element numbers are assigned in a sequential manner. Queries can be made on these node and element numbers or on nodes by I, J, and K.
See PLOT3D Result File below for the definition of each. The following information is included in a PLOT3D result file: Number of scalar variables Number of vector variables Number of time steps Starting file number extension and skip-by value Flag that specifies whether there is changing geometry. Names of the files that contain the values of scalar and vector variables. An indication as to the type of the file being used for the variable, which variable in the file and the name given to that variable. The names of the geometry files that will be used for the changing geometry.
11-115
Line 3 Lists the time that is associated with each time step. There must be the same number of values as are indicated in Line 2. This line can actually span several lines in the file. Line 4 Specified only if more than one time step is indicated in Line 2. The two values on this line indicate the file extension value for the first time step and the offset between files. If the values on this line are 0 5, the first time step available has a subscript of 0, the second time step available has a subscript of 5, the third time step has a subscript of 10, and so on. Line 5 This line exists only if the changing geometry flag on Line 1 has been set to 1. Line contains name of the PLOT3D xyz file. The file name must follow the EnSight wild card specification. Line 6 through Line [5+N] where N is the number of scalar variables specified in Line 1. List the file names that correspond to each scalar variable. There must be a file name for each scalar variable that is specified in Line 1. If there is more than one time step, the file name must follow the EnSight wild card specification. These lines also contain the type of file being used, solution or function, and the location of the variable value in the file. The contents are:
<filename> <type> <number> <description>
where filename is the name of solution file or function file containing the variable; type is S for solution file, or F for function file; numberis which variable in the file to use (specify just one number); and description is the Description of the variable. The solution file (s) is the traditional .q file in which normally the first variable is density, the second through fourth variables are the components of momentum, and the fifth variable is total energy. Lines that follow the scalar variable files. List the file names that correspond to each vector variable. There must be a file name for each vector variable that is specified in Line 1. If there is more than one time step, the file name must follow the EnSight wild card specification. These lines also contain the type of file being used, solution or function, and the location(s) of the variable values in the file. The contents are:
<filename> <type> <numbers> <description>
where filename is the name of solution file or function file containing the variable; type is S for solution file, or F for function file; numbersare which variables in the file to use (specify just three numbers); and description is the Description of the variable.
11-116
PLOT3D Example
This example illustrates a result file that specifies a non-changing geometry with only one time step.
3 2 0 1 0.0 block.sol block.sol block.scl block.var block.sol
S S F F S
1 5 1 1 2
Thus, this model will get two scalars from the solution file (block.sol). The first is Density in the first location in the file and the next is Total energy in the fifth location in the solution file. It will also get a Temperature scalar from the first location in the function file (block.scl). It will get a Displacement vector from the function file called block.var. The three components of this vector are in the 1st, 2nd, and 3rd locations in the file. Finally, a Momentum vector will be obtained from the 2nd, 3rd, and 4th locations of the solution file. Vectors can be 1D, 2D, or 3D. For a vector, always provide three numbers, but a zero will indicate that a component is empty, thus:
block.var F 1 0 3 XZ_Displacement
would be a 2D vector variable with components only in the XZ plane. If the above example was transient, with 3 time steps, it would appear as:
3 2 0 3 0.0 1.5 4.0
11
block.sol** block.sol** block.scl** block.var** block.sol** S S F F S 1 5 1 1 2 Density Total_Energy Temperature 2 3 Displacement 3 4 Momentum
11-117
Note: A standard Q-file can be substituted for PLOT3D result file format if desired. A standard Q-file has 5 variable components (First is density, then the three components of momentum, and last is energy).
11-118
This arrangement allows for distributed parallel processing of the various portions of a model, and has been shown to scale quite well. Please recognize that your data must be partitioned in some manner (hopefully in a way that will be reasonably load balanced) in order for this approach to be useful. (Included in the EnSight distribution is an unsupported utility that will take most EnSight Gold binary datasets and partition it for you. The source for this utility (called chopper) can be found in the $ENSIGHT7_HOME/ensight73/ unsupported/partitioner directory.) Note: If you do your own partitioning of data into EnSight6 or EnSight Gold format, please be aware that each part must be in each partition - but, any given part can be empty in any given partition. (All that is required for an empty part is the part line, the part number, and the description line.) You should place each partitioned portion of the model on the machine that will compute that portion. Each partitioned portion is actually a self contained set of EnSight data files, which could typically be read by a normal client - server session of EnSight. For example, if it were EnSight gold format, there will be a casefile and associated gold geometry and variable results file(s). On the machine where the EnSight SOS will be run, you will need to place the sos casefile. This is a simple ascii file which informs the SOS about pertinent information need to run a server on each of the machines that will compute the various portions.
11-119
The format for this file is as follows: (Note that [ ] indicates optional information, and a blank line or a line with # in the first column are comments.) FORMAT type: master_server datatype
where:
(Required) (Required)
datatype is required and is one of the formats of EnSights internal readers. gold n3s abaqus ensight6 estet fastunst ensight5 mpgs4 fluent plot3d movie fidap ansys
or it can be any other string to use the user-defined format. Note: the user-defined format declared to the SOS will be used by all servers. If datatype is blank, it will default to EnSight6 data type.
(Required) (Required)
where: num is the number of servers that will be started and run concurrently.
executable: /.../ensight7.server (Required, must use full path) [directory: wd] (Optional)
where: wd is the working directory from which ensight7.server will be run
(Optional)
where: id is the login id. Only needed if if is different on this machine.
(Optional)
where: dd is the data where the data resides. Full path must be provided if you use this line.
(Required, but depending on format, may vary as to whether it is a casefile, geometry file, neutral file, universal file, etc.) (Depends on format as to whether required or not) (Depends on format as to whether required or not) (Comment only)
--- Repeat pertinent lines for as many servers as declared to be in this file ---
11-120
Example
This example deals with a EnSight Gold dataset that has been partitioned into 3 portions, each running on a different machine. The machines are named joe, sally, and bill. The executables for all machines are located in similar locations, but the data is not. Note that the optional data_path line is used on two of the servers, but not the third. FORMAT type: master_server gold SERVERS number of servers: 3 #Server 1 machine id: joe executable: /usr/local/bin/ensight73/bin/ensight7.server data_path: /usr/people/john/data casefile: portion_1.case #Server 2 machine id: sally executable: /usr/local/bin/ensight73/bin/ensight7.server data_path: /scratch/sally/john/data casefile: portion_2.case #Server 3 machine id: bill executable: /usr/local/bin/ensight73/bin/ensight7.server casefile: /scratch/temp/john/portion_3.case If we name this example sos casefile - all.sos, and we run it on yet another machine - one named george, you would want the data distributed as follows: On george: all.sos On joe (in /usr/people/john/data): portion_1.case, and all files referenced by it. On sally (in /scratch/sally/john/data): portion_2.case, and all files referenced by it. On bill (in /scratch/temp/john): portion_3.case, and all file referenced by it. By starting EnSight with the -sos command line option (which will autoconnect using ensight7.sos instead of ensight7.server), or by manually running ensight7.sos in place of ensight7.server, and providing all.sos as the casefile to read in the Data Reader dialog - EnSight will actually start three servers and compute the respective portions on them in parallel. Additional Note: The initial EnSight SOS provided with release 7.2 does not yet support all EnSight features. The basics of reading and creating parts, coloring by variables, clips, isosurfaces and cuts are provided. Most query, plotting, and other features are not. If you try to use a not-yet-implemented feature, you will receive a message that it isnt supported or the desired action will simply not occur. In a future release of EnSight, all features should be supported.
11-121
The first line is either rotate or translate The second line contains rotation angle in degrees or the three translational delta values. If any unstructured pairs, the third line contains the the number of these pairs (np). And the node ids of each pair follow. (The first subscript indicates face, the second is pair.)
Last in the file comes as many of these blocks lines as needed. bmin and bmax are a range of block numbers. For a single block, b min and bmax would be the same. Only one of i, j, or k can be specified for a given block.
11-122
7 5 3
2 2
The periodic match file for a rotation of this model about point 1 would be:
rotate 45.0 3 1 1 2 8 3 9
Thus, face 1 of this model is made up of nodes 1, 2, and 3 and face 2 of this model is made up of nodes 1, 8, and 9. So there are 3 node pairs to define, with node 1 corresponding to node 1 after a copy is rotated, node 2 corresponding to node 8, and node 3 corresponding to node 9. Simple structured translational model:
J block 1 I
2.0
J block 2
block 3
11-123
Since block 1 is oriented differently than blocks 2 and 3 in terms of ijk space, two blocks lines were needed in the match file. Special Notes / Limitations: 1. This match file format requires that the unstructured node ids of the model be unique. This is only an issue with EnSight Gold unstructured format, since it is possible with that format to have non-unique node ids. 2. The model instance (which will be duplicated periodically) must have more than one element of thickness in the direction of the duplication. If it has only one element of thickness, intermediate instances will have all faces removed. If you have this unusual circumstance, you will need to turn off the shared border removal process, as explained in note 3. 3. The shared border removal process can be turned off, thereby saving some memory and processing time, by issuing the test: rem_shared_bord_off command in the command dialog. The effect of turning it off will be that border elements will be left between each periodic instance on future periodic updates. 4. The matching and hashing processes actually occur together. Thus, matching information does not have to be specified for all portions of a model. If no matching information is specified for a given node, the hashing process is used. By the same token, if matching information is provided, it is used explicitly as specified - even if it is has been specified incorrectly.
11-124
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
2 Distance vs. Temperature for Line Tool Distance Temperature 1 5 0.0 4.4 1.0 5.8 2.0 3.6 3.0 4.6 4.0 4.8 Distance vs. Pressure for Line Tool Distance Pressure 2 4 0.00 1.2 0.02 1.1 0.04 1.15 0.06 1.22 3 1.10 1.30 1.12 1.28 1.14 1.25
Line 1 contains the (integer) number of curves in the file. Line 2 contains the name of the curve. Line 3 contains the name of the X-Axis. Line 4 contains the name of the Y-Axis. Line 5 contains the number of curve segments in this curve.
11-125
Line 6 contains the number of points in the curve segment. Lines 7-11 contain the X-Y information. Line 12 contains the name of the second curve. Line 13 contains the name of the X-Axis Line 14 contains the name of the Y-Axis Line 15 contains the number of curve segments in this curve. (For the second curve, the first segment contains 4 points, the second 3 points.)
11-126