Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keypoints/Nodes and CERIG command

Status
Not open for further replies.

Luca97

Structural
Jul 22, 2008
31
I need to use the CERIG command to simulate a diaphgram behaviour in a building, the problem is the I've built my modelling using keypoints and assign properties to the structures.

The CERIG command define a plane where all the NODES have the same displacement of the defined master node. But I want to define master nodes and slave nodes by keypoints, because it is much easier for me. So, is there an easy way?

Is there an easy way to export a list of nodes with a sort of "dictionary" that tell me which node number is related to a particular keypoint number? Because if I have the relationship between keypoints and nodes I can easily generate a command file where I put the Node number instead of the Keypoint number.

Thanks,

Luca
 
Replies continue below

Recommended for you

Hello,

yes, all that is possible. Take a look at APDL (Ansys Parametric Design Language) in the Ansys Help Manual.

By the way, finding what node belongs to what keypoint can be done in may ways:

One way is:

ksel,s,kp,,keypoint_nr
nslk
node_nr=ndnext(0)

Another way is:

ksel,all
node_nr=node(kx(keypoint_nr),ky(keypoint_nr),kz(keypoint_nr))

Regards
Alex
 
ksel,all
node_nr=node(kx(keypoint_nr),ky(keypoint_nr),kz(keypoint_nr))

In such case do you not need a cycle for like that:

for keypoint_nr=1:number of keypoints

node_nr=node(kx(keypoint_nr),ky(keypoint_nr),kz(keypoint_nr))

end


I don't know, I'm trying to guess from my experience of programmer with other languages...
 
Luca,

of course a loop can also be done. Take a look in the Help at the command *DO

Alex
 
Excuse me, what do you mean with the command ndnext(0)? Is it a parameter?

I've used a syntax of this kind:

*DIM,keypoint_nr,ARRAY,53513
*DIM,node_nr,ARRAY,53513
*DO,ii,1,53513
ksel,s,kp,,ii
nslk
node_nr(ii)=ndnext(0)
*enddo
 
Hi,

That is :

Next selected node having a node number greater than 0.

Please look at the Ansys manual
Table B.1 *GET - Get Function Summary


Regards
jalil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor