diana_read_tb
Read DIANA tabulated results (.tb) as a file index or filtered rows by result, step, load case, mode, node or element, and export all matches to CSV; streams large files.
Instructions
Read a DIANA tabulated results file (.tb), streaming so multi-GB files work.
Without result: an index of the file (result types with their steps / load cases / modes, columns and row
counts). With result, e.g. "DISPLA", "REACTI", "STRESS TOTAL CAUCHY", "CRKWDT" or "VONMIS": the matching rows,
optionally for one step, load case or mode and for given node / element numbers. Leaving step out gives the
history over all steps, e.g. a load-displacement curve of one node. Results are written for non-converged steps
too, so check diana_read_out / diana_job_status before trusting the last steps. Only the first max_rows rows are
returned; csv_path writes all of them.
Args: path: absolute path of the .tb file. result: part of the result name to select. step: load step number (nonlinear and transient analyses). load_case: load case number (linear analyses). mode: mode number (eigenvalue analyses). node_ids: keep rows of these node numbers (Nodnr column). element_ids: keep rows of these element numbers (Elmnr column). ids: filters on any id column, e.g. {"Reinnr": [3]} or {"Intpt": [1, 2]}. max_rows: rows to return inline. csv_path: absolute path of a CSV file to write every matching row to.
Layout notes: LAYOUT COMBIN tables have result "Combination" and blank cells where an item does not apply; extreme-value selections (SELECT LOADS/STEPS ... MIN|MAX) add a " case" field with the load case of each value and list the overall extremes in the block's "extremes"; COOR adds X0/Y0(/Z0) columns and AXES the direction cosines of principal values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| mode | No | ||
| path | Yes | ||
| step | No | ||
| result | No | ||
| csv_path | No | ||
| max_rows | No | ||
| node_ids | No | ||
| load_case | No | ||
| element_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||