🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How does input 'locj'/'loci' works in User Subroutine like 'cnfsub'?

Hello Everyone
In MotionSolve Reference Guide, the CNFSUB has a attribute names 'LOCI', and is descriped as follows:

LOCI [double precision]: An array that contains the position vector of the contact point on I_GRAPHICS_ID with respect to the origin of the I_GRAPHICS_ID reference marker, resolved in the I_GRAPHICS_ID reference marker coordinate system.

Seems it will give a coordinate of contactpoint, I tried to use this in my python subroutine. But when I output the value of loci in my script, it goes like:

6.2222448500049076e+175, 4.784135253072429e+180, 1.6937441873438465e+190

or:

0, 4.784135253072429e-310, 1.6937441873438465e-300

all through the simulation with no noticeable changes. I tried to use the official example program provided, the same problem occers.
However, the simulation goes with out error. Figure below is a contact force curve of a gear pair, looks normal too.

Fig202506.png

Does anyone have an idea about making LOCI works correctly? There are some calculation that the coordinate of contact point to be used.

Sincere gratitude,

Garand

Find more posts tagged with

Sort by:
1 - 1 of 11
    GarandUser: "Garand"
    Altair Community Member
    OP
    Accepted Answer

    Hello,

    I work on this for several days. Now I don't think I misunderstood the description in the help. However loci continues to not work properly. Does this mean that there is some sort of bug or failure that prevents the subroutine from working properly, at least in MothonSolve V.2021?

    Please give me a confirm if so, so that i do not spend more time on this problem.

    Sincerely,

    Garand