|
[Sponsors] |
March 7, 2018, 13:04 |
Table Script
|
#1 |
New Member
Join Date: Mar 2018
Posts: 3
Rep Power: 8 |
Hi,
In NASTRAN, to define a stiffness(frequency) dependency, i often use a TABLED1 card entity. I'm currently working on a script and one of the functions needs to access data from a TABLED1 dialog box. In the following example, how do i access the data in column 2 row 1? Thank you!! |
|
March 8, 2018, 03:53 |
Script to solve it.
|
#2 |
Member
Maries
Join Date: Mar 2010
Location: Coimbatore, India
Posts: 76
Rep Power: 16 |
I got this idea from user script in ansa folder called AbaqustoDynaCurves.py
Hope it will solve your problem. Code:
import os import ansa from ansa import base from ansa import constants deck = constants.NASTRAN def main(): tables = base.GetEntity(deck, "TABLED", 1) curve_data = base.GetLoadCurveData(tables) print(curve_data[0][1]) if __name__ == '__main__': main() |
|
March 8, 2018, 04:11 |
|
#3 |
New Member
Join Date: Mar 2018
Posts: 3
Rep Power: 8 |
Thank you! It worked
|
|
Tags |
script, table |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Workbench] Run ICEM Script in Workbench Script | MIZOR | ANSYS Meshing & Geometry | 9 | April 4, 2018 08:45 |
Problem in3D model processing | mebinitap | OpenFOAM | 2 | December 12, 2014 05:40 |
Installing OpenFoam on windows 7-64 | Dadou | OpenFOAM Installation | 10 | February 11, 2014 17:20 |
Table script problem | Scibor | Siemens | 0 | April 30, 2007 06:10 |
Table Manipulation | furkan | Siemens | 0 | April 4, 2006 11:23 |