# modeling modeling wheel on road

## Recommended Posts

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

##### Share on other sites

Hi @FP90

Have you tried with GCON (Constrained General)?

##### Share on other sites

hi @Prakash

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

thank you

##### Share on other sites

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”)

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.