🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

TCL scripts for importing nodes and elements from csv files

User: "JZ_21971"
Altair Community Member
Updated by JZ_21971

Hi guys! I am a new Hyperworks user and have some basic questions. Now I have 3 csv files and I want to import/read them and build a FEM model based on them. Here is an example.

node.csv stores the node coordinates. 

0,0,0        

1,0,0         

2,0,0         

3,0,0         

0,1,0         

1,1,0        

2,1,0         

0,2,0        

1,2,0     

0,3,0      

quad.csv stores the node numbers for quadrilateral elements.

1,2,6,5

2,3,7,6

8,5,6,9

tri.csv stores the node numbers for triangular elements.

3,4,7

10,8,9

9,6,7

The attached image shows the model built in Ansys including 3 quad elements and 3 tri elements. I believe it can be done by simple TCL scripts in Hyperworks but I totally got lost when I read the coding tutorial. Can anyone help me with this? Thanks in advance. 

image

Find more posts tagged with