Is it possible to make the contact stiffness b/w flex-flex bodies a function of state variable say instantaneous penetration depth or angular position of some body?
The stiffness field requires a real value to be entered and I am able to make it a function of time, but is it possible to make it as a function of another state variable?
This may be possible using the user-written subroutine CNFSUB where you have more control over how you define the contact force. Please see the following article where CFFSUB is used to have variable friction coefficients for contact friction:
The most elegant solution will be the mentioned CNF/CFFSUB.
If you manage to use an SFORCE/VFORCE/GFORCE instead, then you may have use for the attached test-model.
It's playing with some expressions in state variables to model a contact (VAR_Impact) with using a variable stiffness depending on penetration (VAR_Stiffness).
VARVAL(VAR_Impact) could be used in any force expression.