Jump to content

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 this post

Link to post
Share on other sites

Hi @FP90


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


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

Share this post

Link to post
Share on other sites

Join the conversation

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

You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...