GET_NCONTACTS
Utility/Data Access SubroutineExtract the number of body contacts during a simulation.
Use
This subroutine can be used to extract the number of active rigid or flexible body contacts in MotionSolve
Format
- Fortran Calling Syntax
- CALL GET_NCONTACTS(ID, I_GRA_ID, J_GRA_ID, NCONTACTS, ERRFLG)
- C/C++ Calling Syntax
- c_get_ncontacts(id, i_gra_id, j_gra_id, ncontacts, errflg)
- Python Calling Syntax
- [ncontacts, errflg] = py_get_ncontacts(id, i_gra_id, j_gra_id):
Attributes
- ID
- [integer]
- I_GRA_ID
- [integer]
- J_GRA_ID
- [integer]
Output
- NCONTACTS
- [integer]
- ERRFLG
- [logical]
Comments
- 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.
- This utility function is often called in conjunction with the GET_CONTACT_POST utility function.