XANSYS Message: 40976 [Go back to message list]
No rating yet
Rate item:

Subject: Re: ESLN Puzzler
Author: Sheldon Imaoka
Date: 2002-08-21 10:56:00

Hi Bob,

Although not tested, the snippet below may do something similar to
what you want. The basic idea is to
1) grab outside nodes
2) apply a load to those nodes
3) select those elements with a load
This gets all elements with exposed faces. Then,
4) get all elements with nodes 3 = nodes 4 (wedge or tet)
5) get all elements with nodes 5 = nodes 6 (tet or pyramid)
6) get all elements only that satisfy 4 & 5
7) select 6

I'm assuming you're using FLUID142 - if not, you may have to change
the load (steps 2 and 3) and the degenerate forms (steps 4 and 5).

Like I mentioned, I didn't test it out, but, hopefully, something
like that may help.

Best regards,
Sheldon
ANSYS, Inc.

http://www.ansys.com/ (Official Site)
http://ansys.net/ansys/ (Cheap imitation)
"This email is not being provided in my capacity as an
ANSYS employee. I am solely responsible for the content."

esel,all
nsel,s,ext
sf,all,hflux,1000
esel,s,sfe,hflux,1000

*get,MAXELEM,elem,,num,max

*dim,A_MASKV,array,MAXELEM
*vget,A_MASKV(1),elem,1,esel

*dim,A_NODE3,array,MAXELEM
*dim,A_NODE4,array,MAXELEM
*dim,A_NODE5,array,MAXELEM
*dim,A_NODE6,array,MAXELEM

*vmask,A_MASKV(1)
*vget, A_NODE3(1),elem,1,node,3
*vmask,A_MASKV(1)
*vget, A_NODE4(1),elem,1,node,4
*vmask,A_MASKV(1)
*vget, A_NODE5(1),elem,1,node,5
*vmask,A_MASKV(1)
*vget, A_NODE6(1),elem,1,node,6

*dim,A_ELEM1,array,MAXELEM
*dim,A_ELEM2,array,MAXELEM
*dim,A_ELEM3,array,MAXELEM

*vmask,A_MASKV(1)
*voper,A_ELEM1(1),A_NODE3(1),eq,A_NODE4(1)
*vmask,A_MASKV(1)
*voper,A_ELEM2(1),A_NODE5(1),eq,A_NODE6(1)

*vmask,A_MASKV(1)
*voper,A_ELEM3(1),A_ELEM1(1),mult,A_ELEM2(1)

*vput,A_ELEMS(1),elem,1,esel

--- In xansys@y..., "Weathers, Bob" wrote:
> I have a model imported from another program. It's made up 4-noded
tets and
> 8-noded bricks/prisms, etc. There is no solid geometry.

> Some tets could have as many as 3 of their 4 faces exposed. Pretty
unlikely
> but it could happen.

> It's also possible that all nodes on a tet might lie on free
surfaces even
> though no element face is exposed.

> I need to select only those elements with an exposed face.

> Anybody have a macro to do this? Or any suggestions?

> Bob Weathers
> bweathers@t...
> (608)787-2729


Posts possibly associated with message #40976AuthorDateScore
40974ESLN PuzzlerBob Weathers2002/08/21 
40975Re: ESLN PuzzlerJames Kosloski2002/08/21 
40976Re: ESLN PuzzlerSheldon Imaoka2002/08/21 
40978Re: ESLN PuzzlerBob Weathers2002/08/21