hexagon logo

Measures as input to user written functions

Hello,
 
Is it possible to use a measure as input to the user input values of a subroutine? I want to use the previous values of a contact force in order to change the force's value in the current step i.e., I want to create a measure of a contact force and use it as input to its user written subroutine (cnfsub).
 
Thanks,
 
Josef K.
Parents
  • Hi Josef,
     
    Please refer the CONTACT function in the online help. The CONTACT function returns the component comp of the force in CONTACT/id
     
    Adams Basic Package > Adams Solver > Welcome to the C++ Version of Adams Solver > C++ Functions > CONTACT
     
    The variable definition using this will be like: VAR/10 , Fun = CONTACT(......)
     
    This VAR/10 values can be then referenced in any other function using VARVAL(10)
     
    Regards,
    Rishi
Reply
  • Hi Josef,
     
    Please refer the CONTACT function in the online help. The CONTACT function returns the component comp of the force in CONTACT/id
     
    Adams Basic Package > Adams Solver > Welcome to the C++ Version of Adams Solver > C++ Functions > CONTACT
     
    The variable definition using this will be like: VAR/10 , Fun = CONTACT(......)
     
    This VAR/10 values can be then referenced in any other function using VARVAL(10)
     
    Regards,
    Rishi
Children
No Data