modeling wheel on road

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hello to all,

I'm trying to model a wheel that rotates on a plane without slipping, but that can lift off the floor when it's needed. I used the contact command and Poissoin's algorithm, but I wonder if there is another way to do it. Is it necessary to write a subroutine?

thank you

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2018

    Hi @FP90

     

    Have you tried with GCON (Constrained General)?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2018

    hi @Prakash

    thank you for replying.

    yes i've thought about it, but my problem is how to write the script (Python or Matlab). Is there any example?

    thank you

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited April 2018

    Hi @FP90

     

    You can refer to MotionSolve help. Here is a sample for GCON which is available on help:

    Example

    1. Three GCONs that together are equivalent to a spherical joint.

    # Get the ids of the I and J markers

    iid  = imrkr.id

    jid  = jmrkr.id

     

    # Create the expression strings

    strx = “dx({i},{j})”.format(i=iid, j=jid)

    stry = “dy({i},{j})”.format(i=iid, j=jid)

    strz = “dz({i},{j})”.format(i=iid, j=jid)

     

    # Define the 3 GCONS: DX(I,J)=0, DY(I,J)=0, DZ(I,J)=0

    gx   = Gcon (function=strx, i=imrkr, label=”X-Constraint”)

    gy   = Gcon (function stry, i-imrkr, label=”Y-Constraint”)

    gz   = Gcon (function=strz, i=imrkr, label=”Z-Constraint”)