Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Contact área between foot and insole

Status
Not open for further replies.

MarceloM

Mechanical
Sep 10, 2018
53
Hello,

I'm trying to get the contact area between foot and insole (Please see the photos).
I used the following APDL command:
SET, LAST
cmsel, s, contact_side
us
it is
ESEL, R, TYPE ,, 3
ETABLE, STAT, CONT, STAT
ESEL, S, ETAB, ESTAT, 2,3
ETABLE, C_AREA, VOLU
SSUM
* GET, T_AREA, SSUM, 0, ITEM, C_AREA
MY_AREA_1 = T_AREA

However I can not get any data from the contact area and I get the following error:

  *** ERROR ***
  Component CONTACT_SIDE is not defined. "


Thank you for the help.
 
Replies continue below

Recommended for you

Have you defined a named selection for the face named contact_side? My test model
works with your code.
 
L_K thank you for your reply.
Yes i defined a named selection for the face named contact_side but MY_AREA_1 it's 0 and i have contact elements.

My results for the code:
"
USE LAST SUBSTEP ON RESULT FILE FOR LOAD CASE 0

SET COMMAND GOT LOAD STEP= 2 SUBSTEP= 10 CUMULATIVE ITERATION= 93
TIME/FREQUENCY= 2.0000

SELECT COMPONENT CONTACT_SIDE

SELECT ALL NODES HAVING ANY ELEMENT IN ELEMENT SET.

74046 NODES (OF 74253 DEFINED) SELECTED FROM
418885 SELECTED ELEMENTS BY NSLE COMMAND.

SELECT ALL ELEMENTS HAVING ANY NODE IN NODAL SET.

418885 ELEMENTS (OF 418885 DEFINED) SELECTED FROM
74046 SELECTED NODES BY ESLN COMMAND.

RESELECT FOR ITEM=TYPE COMPONENT=
IN RANGE 3 TO 3 STEP 1

1 ELEMENTS (OF 418885 DEFINED) SELECTED BY ESEL COMMAND.

STORE ESTAT FROM ITEM=CONT COMP=STAT FOR ALL SELECTED ELEMENTS

SELECT FOR ITEM=ETAB COMPONENT=ESTA BETWEEN 2.0000 AND 3.0000
KABS= 0. TOLERANCE= 0.00000

0 ELEMENTS (OF 418885 DEFINED) SELECTED BY ESEL COMMAND.

STORE C_AREA FROM ITEM=VOLU FOR ALL SELECTED ELEMENTS

SUM ALL THE ACTIVE ENTRIES IN THE ELEMENT TABLE

TABLE LABEL TOTAL
ESTAT 0.00000
C_AREA 0.00000

*GET T_AREA FROM SSUM ITEM=ITEM C_AREA VALUE= 0.00000000

PARAMETER MY_AREA_1 = 0.000000000

Set Encoding of XML File to:ISO-8859-1

Set Output of XML File to:
PARM, , , , , , , , , , , ,
, , , , , , ,

DATABASE WRITTEN ON FILE parm.xml

EXIT THE ANSYS POST1 DATABASE PROCESSOR
"
Thank you.
 
According to the output, there is only one element in contact in the contact side. Is this correct?
Using contact tool, what is the contact status at t=2s? I believe the code will only take into account
elements which have status of either sliding or sticking.

Maybe the original poster of the macro could help.
 
You can see the final contact status(t=2s) on the first link (contact pressure) and is way more than one element so i can't understand why only is selected one element.

Thank you for the help.

 
Thank you for all the help L_K.
I use all you have use in your model and only get 1 element in contact and o have much more elements than that in contact (See printscreens).
"
USE LAST SUBSTEP ON RESULT FILE FOR LOAD CASE 0

SET COMMAND GOT LOAD STEP= 2 SUBSTEP= 11 CUMULATIVE ITERATION= 111
TIME/FREQUENCY= 2.0000

SELECT COMPONENT CONTACT_SIDE

SELECT ALL NODES HAVING ANY ELEMENT IN ELEMENT SET.

73504 NODES (OF 73712 DEFINED) SELECTED FROM
423276 SELECTED ELEMENTS BY NSLE COMMAND.

SELECT ALL ELEMENTS HAVING ANY NODE IN NODAL SET.

423276 ELEMENTS (OF 423276 DEFINED) SELECTED FROM
73504 SELECTED NODES BY ESLN COMMAND.

RESELECT FOR ITEM=TYPE COMPONENT=
IN RANGE 3 TO 3 STEP 1

1 ELEMENTS (OF 423276 DEFINED) SELECTED BY ESEL COMMAND.
NO ELEMENT TABLE ITEMS DEFINED

*** WARNING *** CP = 4385.922 TIME= 19:51:34
For item = ETAB, component = ESTA is invalid. The ESEL command is
ignored.

STORE C_AREA FROM ITEM=VOLU FOR ALL SELECTED ELEMENTS

SUM ALL THE ACTIVE ENTRIES IN THE ELEMENT TABLE

TABLE LABEL TOTAL
C_AREA 207.863

*GET T_AREA FROM SSUM ITEM=ITEM C_AREA VALUE= 207.863434

PARAMETER MY_AREA_1 = 207.8634338 "

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor