• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Robot Structural Analysis

    Reply
    Active Contributor
    Dirgs
    Posts: 32
    Registered: ‎05-08-2012
    Accepted Solution

    Nodes Rotations - Local Axes (API)

    385 Views, 11 Replies
    05-16-2012 05:17 AM

    Hi!

     

    I need to extract node rotations data from my model. The problem is that only rotations according to global coordinate system are available. In several cases, I need the local support displacements and rotations to find suitable bearing device. 

     

    As you can see in following, the node rotations from the supports don't match the coordinates from the adjacent bar in which I need them.

     

    Local Rotations1.PNG

     

    Can I some how get the data I need? Even if I create a different support oriented accordingly the bar axis, I don't see where I get the rotations in that coordinates...

     

    In attach I put the refereed model.

    I used a worksheet  to extract this data by API based on previous post on the forum, I also attached it.

     

    Thanks

    Please use plain text.
    Product Support
    Posts: 2,543
    Registered: ‎04-26-2010

    Re: Nodes Rotations - Local Axes

    05-16-2012 05:28 AM in reply to: Dirgs

    Nodal Displacement results are presented in Global CS

    Reactions can be reported in Local coordinate system of support.

     

    realoc.jpg



    Rafal Gaweda
    Product Support
    Autodesk, Inc.
    Please use plain text.
    Active Contributor
    Dirgs
    Posts: 32
    Registered: ‎05-08-2012

    Re: Nodes Rotations - Local Axes

    05-16-2012 06:58 AM in reply to: RG_Adsk

    "Nodal Displacement results are presented in Global CS

    Reactions can be reported in Local coordinate system of support."

     

    I know that. My question is if is possible to get the Node Displacements / Rotations in some LOCAL CS which I define.

    Take for example, when I need to define a simple pinned support is some LOCAL CS, maybe I don't need only the reactions values.

    Like the example in the picture below, if nodes 3 and 7 represent the bearing equipment fixed on XX and free on YY oriented towards the frame center, besides the reaction values I have also to know  the displacements/rotations in those nodes, in that particular CS.

    For this simple example, I should check the allowed displacements on YY, and get no displacements on XX.

    Example.PNG

    Does the program store internally this data somewhere??...

    I already try to get them by the bar deflection tables, but only the displacements on LOCAL CS of the bar are presented, don't let me to get rotations on start and end node of the bar in it LOCAL CS.

    Please, if what I'm talking about is not possible, exploit some other indirect ways to get these rotations and illuminate me. :smileyhappy:

     

    Please use plain text.
    Valued Contributor
    Rafacascudo
    Posts: 83
    Registered: ‎05-16-2011

    Re: Nodes Rotations - Local Axes

    05-16-2012 07:18 AM in reply to: Dirgs
    You could rotate the whole structure in a way that for that particular support the global corrdinate system will match the bar´s local coordinate system. Of course, if you have 4 different supports regarding bar´s local directions ,then you´ll have to run 4 different models.
    Please use plain text.
    Active Contributor
    Dirgs
    Posts: 32
    Registered: ‎05-08-2012

    Re: Nodes Rotations - Local Axes

    05-16-2012 07:22 AM in reply to: Rafacascudo

    Yes, in the particullary case I'm studing I have 48 different supports (different LOCAL CS)....:smileyfrustrated:

    Please use plain text.
    Product Support
    Posts: 2,543
    Registered: ‎04-26-2010

    Re: Nodes Rotations - Local Axes

    05-16-2012 07:31 AM in reply to: Dirgs

     

    I know that. My question is if is possible to get the Node Displacements / Rotations in some LOCAL CS which I define.

     

     Only by API:

    - get transformation matrix for (each) bar: 

     

    Dim mtx(3, 3) As Double, 
    Bar.GetLocalMtx mtx(0, 0), mtx(0, 1), mtx(0, 2), mtx(1, 0), mtx(1, 1), mtx(1, 2), mtx(2, 0), mtx(2, 1), mtx(2, 2)

     

    - then transform results from GCS to LCS this way I guess:

     

    'F(x,y,z)
    newvals(0) = vals(0) * mtx(0, 0) + vals(1) * mtx(0, 1) + vals(2) * mtx(0, 2)
    newvals(1) = vals(0) * mtx(1, 0) + vals(1) * mtx(1, 1) + vals(2) * mtx(1, 2)
    newvals(2) = vals(0) * mtx(2, 0) + vals(1) * mtx(2, 1) + vals(2) * mtx(2, 2)
    'M(x,y,z)
    newvals(3) = vals(3) * mtx(0, 0) + vals(4) * mtx(0, 1) + vals(5) * mtx(0, 2)
    newvals(4) = vals(3) * mtx(1, 0) + vals(4) * mtx(1, 1) + vals(5) * mtx(1, 2)
    newvals(5) = vals(3) * mtx(2, 0) + vals(4) * mtx(2, 1) + vals(5) * mtx(2, 2)



    Rafal Gaweda
    Product Support
    Autodesk, Inc.
    Please use plain text.
    Active Contributor
    Dirgs
    Posts: 32
    Registered: ‎05-08-2012

    Re: Nodes Rotations - Local Axes

    05-16-2012 07:33 AM in reply to: RG_Adsk

    I'll try and reply later. Thanks

    Please use plain text.
    Active Contributor
    Dirgs
    Posts: 32
    Registered: ‎05-08-2012

    Re: Nodes Rotations - Local Axes

    05-16-2012 09:04 AM in reply to: Dirgs

    :smileysad:

    I cannot make the API to work.

     

    Dim mtx(3, 3) As Double

    Bar.GetLocalMtx mtx(0, 0), mtx(0, 1), mtx(0, 2), mtx(1, 0), mtx(1, 1), mtx(1, 2), mtx(2, 0), mtx(2, 1), mtx(2, 2)
    'transform results from GCS to LCS this way I guess:
    'F(x,y,z)
    newvals(0) = vals(0) * mtx(0, 0) + vals(1) * mtx(0, 1) + vals(2) * mtx(0, 2)
    newvals(1) = vals(0) * mtx(1, 0) + vals(1) * mtx(1, 1) + vals(2) * mtx(1, 2)
    newvals(2) = vals(0) * mtx(2, 0) + vals(1) * mtx(2, 1) + vals(2) * mtx(2, 2)
    'M(x,y,z)
    newvals(3) = vals(3) * mtx(0, 0) + vals(4) * mtx(0, 1) + vals(5) * mtx(0, 2)
    newvals(4) = vals(3) * mtx(1, 0) + vals(4) * mtx(1, 1) + vals(5) * mtx(1, 2)
    newvals(5) = vals(3) * mtx(2, 0) + vals(4) * mtx(2, 1) + vals(5) * mtx(2, 2)

     

    I copy-past the code you wrote, but the function is not define. Are the F and M values forces of the bar?

    In previous API that I attached, the worksheet "Forces" are made to extract forces from bars. Suppose the node displacements should work with RobotBarDisplacementServer...

    Could you please use that example to demonstrate how to transform the rotations in local coordinates of the bar and put them on the sheet?

    Please use plain text.
    Product Support
    Posts: 2,543
    Registered: ‎04-26-2010

    Re: Nodes Rotations - Local Axes

    05-17-2012 12:06 AM in reply to: Dirgs

    I cannot make the API to work.

     

    I copy-past the code you wrote, but the function is not define. Are the F and M values forces of the bar?

     

    "copy-past the code" - too easy :-) this was just example what and how to use, not exact code.

    This is general rule how to multiply such vector by such matrix

     

    First you need to find bar connected to node, then get matrix...

    I will write you code.

     

     



    Rafal Gaweda
    Product Support
    Autodesk, Inc.
    Please use plain text.
    Active Contributor
    Dirgs
    Posts: 32
    Registered: ‎05-08-2012

    Re: Nodes Rotations - Local Axes

    05-17-2012 01:15 AM in reply to: Dirgs

    Nice!

     

    As I told you before, if the way to get that information is throw bar information, I will upgrade the worksheet4 "Displacements" in attachment. That get displacements for selected bars :smileywink: Take a look on that if you don't mind.

     

    Thanks

     

     

    Please use plain text.