Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

A simple APDL question

Status
Not open for further replies.

protrader

Mechanical
Joined
May 26, 2008
Messages
24
Location
CA
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)
 
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.
 
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.

 
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?
 
KSEL,s,loc,x,...
KSEL,r,loc,y,...
KSEL,r,loc,z,...
KKK=kpnext(0)
 
I found the simplest function:

KKK=KP(x,y,z)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top