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.
Follow these steps to capture a data table using the report generator GUI:
Click on the button.
Result: The Table Capture dialog appears.
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.)
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 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 option, specify the table size (that is, the number of columns and rows) via the field.
Click on the button.
Result: The report generator saves your captured table data. However, if you have selected the option, see Creating a Custom Table.
If you are creating a custom table, the dialog appears after you click on the Table Capture dialog's 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:
Type your custom information, which can include the following valid entries, into each cell:
| Valid entry type | Example |
|---|---|
| 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 button to save your custom table.
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 ID | Description |
|---|---|
| 1 | Creates a table of the finite element entities used in the analysis |
| 2 | Creates a table of properties for the requested material ID used in the analysis |
| 3 | Creates a table of the loads applied in the analysis |
| 4 | Reaction Forces |
| 5 | Reaction Moments |
| 6 | Max Displacements |
| 7 | Directional Stress |
| 8 | Shear Stress |
| 9 | Principal Stress |
| 10 | Equivalent Stress and Stress Intensity |
| 11 | Thermal Gradients |
| 12 | Thermal Flux |
| 13 | Thermal Temperatures |
| 14 | Natural Frequencies |
| 15 | Rotation |
| 16 | Temperature |
| 17 | Pressure |
| 18 | Electric Potential |
| 19 | Fluid Velocity |
| 20 | Current |
| 21 | Electromotive Force Drop |
| 22 | Turbulent Kinetic Energy |
| 23 | Turbulent Energy Dissipation |
| 24 | Component Total Strain |
| 25 | Shear Total Strain |
| 26 | Principal Total Strain |
| 27 | Total Strain Intensity and Total Equivalent Strain |
| 28 | Component Elastic Strain |
| 29 | Shear Elastic Strain |
| 30 | Principal Elastic Strain |
| 31 | Elastic Strain Intensity and Elastic Equivalent Strain |
| 32 | Component Plastic Strain |
| 33 | Shear Plastic Strain |
| 34 | Principal Elastic Strain |
| 35 | Plastic Strain Intensity and Plastic Equivalent Strain |
| 36 | Component Creep Strain |
| 37 | Shear Creep Strain |
| 38 | Principal Creep Strain |
| 39 | Creep Strain Intensity and Creep Equivalent Strain |
| 40 | Component Thermal Strain |
| 41 | Shear Thermal Strain |
| 42 | Principal Thermal Strain |
| 43 | Thermal Strain Intensity and Thermal Equivalent Strain |
| 44 | Component Pressure Gradient and Sum |
| 45 | Component Electric Field and Sum |
| 46 | Component Electric Flux Density and Sum |
| 47 | Component Magnetic Field Intensity and Sum |
| 48 | Component Magnetic Flux Density and Sum |
If tableID is 2 (Material Properties), one additional
argument is required:
materialID -- Corresponds to a material ID