HyperWorks Solvers

GET_NCONTACTS

GET_NCONTACTS

Previous topic Next topic No expanding text in this topic  

GET_NCONTACTS

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Subroutine Type

Utility/Data Access

Definition

Used to extract the number of rigid body contacts during the simulation

Use

This subroutine can be used to extract the number of active rigid body contacts in MotionSolve

Calling Syntax

Fortran

CALL GET_NCONTACTS(ID, I_GRA_ID, J_GRA_ID, NCONTACTS, ERRFLG)

 

C

c_get_ncontacts(id, i_gra_id, j_gra_id, ncontacts, errflg)

 

Python

[ncontacts, errflg] = py_get_ncontacts(id, i_gra_id, j_gra_id):

Input Arguments

[integer] ID

The ID of the contact force modeling element (Force_Contact in the XML) for which the results are desired.

 

[integer] I_GRA_ID

The ID of the I body’s graphic representation.

 

[integer] J_GRA_ID

The ID of the J body’s graphic representation.

Output Values

[integer] NCONTACTS

An integer value that represents the number of active contacts at the current time step.

 

[logical] ERRFLG

A value that is true if an error occurs during the call to GET_NCONTACTS

Comments

1.The GET_NCONTACTS utility function can only be used within a CONTACTPOST subroutine to retrieve the number of active contacts within the model at the current time step.
2.This utility function is often called in conjunction with the GET_CONTACT_POST utility function.

See Also:

Data Access Subroutines