CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > ANSA

Table Script

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By rmaries

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2018, 12:04
Default Table Script
  #1
New Member
 
Join Date: Mar 2018
Posts: 3
Rep Power: 8
no_name18 is on a distinguished road
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!!
no_name18 is offline   Reply With Quote

Old   March 8, 2018, 02:53
Default Script to solve it.
  #2
Member
 
Maries
Join Date: Mar 2010
Location: Cologne, Germany
Posts: 75
Rep Power: 16
rmaries is on a distinguished road
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()
MRAJALIN and Mrt23 like this.
rmaries is offline   Reply With Quote

Old   March 8, 2018, 03:11
Default
  #3
New Member
 
Join Date: Mar 2018
Posts: 3
Rep Power: 8
no_name18 is on a distinguished road
Thank you! It worked
no_name18 is offline   Reply With Quote

Reply

Tags
script, table


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Workbench] Run ICEM Script in Workbench Script MIZOR ANSYS Meshing & Geometry 9 April 4, 2018 07:45
Problem in3D model processing mebinitap OpenFOAM 2 December 12, 2014 04:40
Installing OpenFoam on windows 7-64 Dadou OpenFOAM Installation 10 February 11, 2014 16:20
Table script problem Scibor Siemens 0 April 30, 2007 05:10
Table Manipulation furkan Siemens 0 April 4, 2006 10:23


All times are GMT -4. The time now is 01:15.