← Back to team overview

yade-users team mailing list archive

Re: [Question #707875]: Servo control of cylindrical triaxial test


Question #707875 on Yade changed:

    Status: Open => Answered

Karol Brzezinski proposed the following answer:
Hi Ruidong,

In this loop, you iterated over the wall but denoted elements 'f', while
in the loop you referred to 'b', so you did not prescribe velocity to
wall facets. Should be:

 for b in wall:
  x,y,z = O.bodies[b].state.pos
  dist = math.sqrt(x*x+y*y)
  n = Vector3(x/dist,y/dist,0)
  O.bodies[b].state.vel = rvel*n



PS. Please note, that **Yade Answers has now migrated to gitlab, please
direct all your questions to https://gitlab.com/yade-
dev/answers/-/issues, where we are waiting to help you**

You received this question notification because your team yade-users is
an answer contact for Yade.