• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Adams
  3. cnfsub loci and locj

Following Cadence Design Systems’ acquisition of the Design & Engineering (D&E) business, the D&E Community Forum on the Nexus Community Center has been migrated in the Cadence Physical System Simulation Community. For more details and if you have any questions, please refer to the FAQ.

Stats

  • State Not Answered
  • Replies 11
  • Subscribers 3
  • Views 5
  • Members are here 0
More Content

cnfsub loci and locj

Josef K.
Josef K. over 4 years ago
Hello,
 
I'm trying to build a subroutine for a custom contact normal force. I require the locations of the contact so I wanted to utilize the loci, locj variables but every time print their information they seem to be completely off. To elaborate:
 
I have set up a model with a contact taking place around the location of -100,0,0. I've built a subroutine that prints out the loci, locj arrays from matlab but instead of printing something like
 
[-100, 0, 0 (+-some small percentage due to the contact incidents)]
 
the numbers are completely off.
 
Does Adams measure the locations from a starting point other than the global (0,0,0)? Or am I perhaps interpreting the loci, locj vectors wrong?
 
Thanks,
 
Josef K.
  • Sign in to reply
  • Cancel
  • Jesper Slattengren
    0 Jesper Slattengren over 4 years ago
    Where are the i and j parts located at the time of incident? I would assume that loci and locj are expressed in local coordinates for the parts. Otherwise there would be no reason to have both loci and locj as in global coordinates they should be the same.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Josef K.
    0 Josef K. over 4 years ago
    Hello,
     
    This may be a possibility
     
    I assume that local coordinates are measured from a body's CG. One of the loci coordinates however is -1900 (on a body of a total length of 1000 mm in the same direction and its CG in its center i.e., 500 mm on either side). So this should not be possible really.
     
    The contact force appears on a different position in the model so I tried measuring from there but the numbers till don't add up.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jesper Slattengren
    0 Jesper Slattengren over 4 years ago
    Come on now. CG? That changes all the time during building of a model.
    They are measured from the LPRF (local part reference frame), i.e. the definition of the part (Right click on a part in View and select 'info' and you will see that each part has a location and orientation, that is the LPRF)
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Josef K.
    0 Josef K. over 4 years ago
    Right, sorry.
     
    All the parts have (0,0,0) as a location. So it would still not add up. I 'look further into it.
     
    Thanks!
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • MK202610123211
    0 MK202610123211 over 4 years ago
    The msc example cnfsub clearly states
    C    LOCI     contact point location on I in I coordinates
    C    LOCJ     contact point location on J in J coordinates
     
    But it doesn't clearly state what "I" or"J" is.
    Jesper was assuming that it's I/J part LPRF because that's almost always the case.
    But when having a look on the contact statements, it's geometry that is fed into the contact statement.
    So I dare to guess that "I" or "J" may also be the geometry like a circle, box, sphere, plane or whatever.
    And these may have "different" locations than the part they belong to and this may explain the strange values you see ?
     
     
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2026 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information