×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

A simple APDL question

A simple APDL question

A simple APDL question

(OP)
I build a volume (volume #1), then I divide it into 2 volumes using working plane. ANSYS deletes volume number 1 and names the 2 new volumes as volume #2 and #3.

I want to delete one of the volumes but I don't want to check the number of volume and simply use VDELE command. I want to use a condition that all the time in any case and any version of APDL, the volume to be deleted is selected.

FYI I am in the building geometry step and there is no mesh, no nodes and no elements.

Is there any way to do this? Or is this a common way that programmers check the number of the volume then they use it in the future commands (e.g. I check the number of volumes and the one that I want to delete is number 3, so I simply use VDELE,3 in the next line of my input file)

RE: A simple APDL question

Simple - don't use the volume numbers.  In fact, it is highly recommended to not use entity numbers, period.

Select the volume that you wish to delete using the vsel commands.  Then, vdele,all.

RE: A simple APDL question

Hi,

* You can set some options using the BOPTN commands.

* You can select volumes by selecting keypoints and then a series of LSLK, ASLL and VSLA commands.

* You can check the number of the newly generated volume by puting VSEL,NONE before and VVV=VLNEXT(0)after the command.

 

RE: A simple APDL question

(OP)
How Can we get the number of a KP knowing its coordinates. e.g. when we create a rectangle with BLC4 it creates an area with 4 KP. Now we know the KP coordinates but how can we get the number of them?

RE: A simple APDL question

KSEL,s,loc,x,...
KSEL,r,loc,y,...
KSEL,r,loc,z,...
KKK=kpnext(0)

RE: A simple APDL question

(OP)
I found the simplest function:

KKK=KP(x,y,z)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources