19.4. Capturing a Data Table

This section describes how to capture and store a data table, either interactively or within a batch run.

The report generator appends captured table data to ansysTables.js, a file in your specified report directory containing the JavaScript functions for accessing your table data. (The file contains code to generate HTML as well as comments that hold the table information in a tab-delimited form, allowing you to paste the table data into software other than an HTML document.) The report generator assigns the name table_n to each captured table, where n is a sequential numeric identifier beginning at 1 and incrementing as you capture additional tables.

19.4.1. Interactive

Follow these steps to capture a data table using the report generator GUI:

  1. Click on the Table Capture button.

    Result: The Table Capture dialog appears.

  2. Specify a caption for the captured table (for example, “Prism Material Properties Table").

    The caption can contain APDL parameters in the format %parm%. (Specify “%%” if you want to display the “%” character in your caption.)

  3. Select a predefined table type from the list. (The report generator filters the list of available table types based on the current analysis.)

    If you select the “Material properties” table type, specify the currently defined materials via the Material Selection field.


    Note:  The program does not display a material property which has no value associated with it.


    If you select the Custom Table option, specify the table size (that is, the number of columns and rows) via the Custom Table Size field.

  4. Click on the OK button.

    Result: The report generator saves your captured table data. However, if you have selected the Custom Table option, see Creating a Custom Table.

19.4.1.1. Creating a Custom Table

If you are creating a custom table, the Custom Table Definition dialog appears after you click on the Table Capture dialog's OK button. The dialog contains an empty table of the dimensions that you specified. For example, assuming that you specified a table of three columns and four rows, the dialog looks like this:

Figure 19.2:  Custom Table Definition

Custom Table Definition

Type your custom information, which can include the following valid entries, into each cell:

Valid entry typeExample
Text Maximum Deflection
Text with HTML tags Maximum Stress [Kg/mm<SUP>2</SUP>]
A *GET command *get,,node,10,u,y
A *GET command with HTML tags {<B><I>} {*get,,node,10,u,y} {</I></B>}

Important: The “{” and “}” characters are necessary for parsing purposes.

After typing entries into each cell, click on the Write button to save your custom table.

19.4.2. Batch

The following line must appear near the beginning of your batch code before any report commands:

~eui,'package require ansys'

To capture a data table via a batch run, insert this report command at the point in the run where you want to capture the table:

~eui,'ansys::report::tablecapture tableID "caption" materialID'

The tableID value is a table identifier representing one of the following predefined table types:

Table IDDescription
1Creates a table of the finite element entities used in the analysis
2Creates a table of properties for the requested material ID used in the analysis
3Creates a table of the loads applied in the analysis
4Reaction Forces
5Reaction Moments
6Max Displacements
7Directional Stress
8Shear Stress
9Principal Stress
10Equivalent Stress and Stress Intensity
11Thermal Gradients
12Thermal Flux
13Thermal Temperatures
14Natural Frequencies
15Rotation
16Temperature
17Pressure
18Electric Potential
19Fluid Velocity
20Current
21Electromotive Force Drop
22Turbulent Kinetic Energy
23Turbulent Energy Dissipation
24Component Total Strain
25Shear Total Strain
26Principal Total Strain
27Total Strain Intensity and Total Equivalent Strain
28Component Elastic Strain
29Shear Elastic Strain
30Principal Elastic Strain
31Elastic Strain Intensity and Elastic Equivalent Strain
32Component Plastic Strain
33Shear Plastic Strain
34Principal Elastic Strain
35Plastic Strain Intensity and Plastic Equivalent Strain
36Component Creep Strain
37Shear Creep Strain
38Principal Creep Strain
39Creep Strain Intensity and Creep Equivalent Strain
40Component Thermal Strain
41Shear Thermal Strain
42Principal Thermal Strain
43Thermal Strain Intensity and Thermal Equivalent Strain
44Component Pressure Gradient and Sum
45Component Electric Field and Sum
46Component Electric Flux Density and Sum
47Component Magnetic Field Intensity and Sum
48Component Magnetic Flux Density and Sum

If tableID is 2 (Material Properties), one additional argument is required:

  • materialID -- Corresponds to a material ID


Release 18.2 - © ANSYS, Inc. All rights reserved.