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!

Select nodes on a plane which is part of another plane

Status
Not open for further replies.

vidiii

Industrial
Nov 13, 2006
36
I'm trying to select certain nodes on a plane, which is a part of another plane.

BATCH:

NSEL,S,LOC,Z,h_b/2+h_p ! Selects the desired plane [WORKS OK]
D,all,VOLT,0

NSEL,S,LOC,Z,-h_b/2-h_p ! Selects the desired plane [WORKS OK]
D,all,VOLT,0

NSEL,S,LOC,Z,h_b/2 ! Selects the desired plane, but only a part of the nodes on the plane must have the constraint [WORKS OK]
NSEL,U,LOC,X,0,L1 ! Unselect the nodes that are selected from 0 to L1 on the X-axis [NOT OK]
NSEL,U,LOC,X,L2,L3 ! Unselect the nodes that are selected from L1 to L3 on the X-axis [NOT OK]
D,all,VOLT,0

NSEL,S,LOC,Z,-h_b/2 ! Selects the desired plane, but only a part of the nodes on the plane must have the constraint [WORKS OK]
NSEL,U,LOC,X,0,L1 ! Unselect the nodes that are selected from 0 to L1 on the X-axis [NOT OK]
NSEL,U,LOC,X,L2,L3 ! Unselect the nodes that are selected from L1 to L3 on the X-axis [NOT OK]
D,all,VOLT,0

allsel,all

The first part works OK, but the second part does not. The idea is to select the nodes that are on the h_b/2 plane (XZ plane) and then unselect all the nodes from 0 to L1 and L2 to L3 for the X-axis (0<=L1<L2<=L3).
This doesnt seem to work properly, the wrong nodes get selected and get constrained. Does anybody have an idea what I'm doing wrong?

Hope to hear from you. Thanks in advance.

With the kindest regards,
Vidi
 
Replies continue below

Recommended for you

Hello,

All seems to be OK. Check if the coordinate system is set as you wish.
 
I'll illustrate the problem with an example batch script. The unselecting part doesnt seem to unselect the needed nodes. The wanted nodes (from L1 to L2) are not selected.

Thanks for your help.

Batch

/COM

/PREP7
SMRT,OFF

ET,2,SOLID95

MP,EX,2,22E10
MP,DENS,2,7500

L1 = 0e-3
L2 = 15e-3
LS1 = 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,LOC,Z,h_b/2+h_p ! ok
D,all,UX,0
NSEL,S,LOC,Z,-h_b/2-h_p ! ok
D,all,UX,0

!***PROBLEM***
NSEL,S,LOC,Z,h_b/2 ! not ok
NSEL,U,LOC,X,0,L1
NSEL,U,LOC,X,L2,L3
D,all,UX,0
NSEL,S,LOC,Z,-h_b/2 ! not ok
NSEL,U,LOC,X,0,L1
NSEL,U,LOC,X,L2,L3
D,all,UX,0
allsel,all
!***PROBLEM***

FINISH
/SOL
!*
ANTYPE,2
!*
MSAVE,0
!*
MODOPT,LANB,10
EQSLV,SPAR
MXPAND,0, , ,0
LUMPM,0
PSTRES,0
!*
MODOPT,LANB,10,5,100000, ,OFF
/STATUS,SOLU
SOLVE
FINISH
 
Hi vidiii,

If you look on selection syntax, two values must be imput min and max. So when I want to select some nodes in some location on line I do that this way :
nsel,s,loc,x, L1-q, L1+q, where q is a very small value. Since my one very terrible experience I have not been using (...I hope this is correct tense) only
nsel,s,loc,x,L1. Similarly, I would use
NSEL,U,LOC,X,0-q,L1+q, or only NSEL,U,LOC,X,-q,L1+q instead
NSEL,U,LOC,X,0,L1.
Maybe it sounds weird, but you can try that...

Regards,
Lubo
 
Hi,
or, could you possibly reverse the problem and "reselect" the nodes you want instead of "unselected" the undesired ones?

Regards
 
Hello,

allso try changing the selection tolerance with SELTOL.

Regards,
Alex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor