General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

How can I extract remote connection rotation at each time step via commands?

TAGGED: 

    • FirasBejar
      Subscriber

      Hello,

      I applied the follwoing code to get the rotation of a remote point for every time step. I get the same values for both steps which correspond to the final step. I'm definitely doing something wrong. Any suggestions?

      !Time step config 
      total_time=1
      time_steps=2
      time_inc=total_time/time_steps
       
      *cfopen,'E:\ANSYS MODEL\results','txt'
      *do,time,time_inc,total_time,time_inc
          SET, time
          pinion_rotz = ROTZ(pinion_pilot)
          wheel_rotz = ROTZ(wheel_pilot)
          pinion_rotz = pinion_rotz*180/pi
          wheel_rotz = wheel_rotz*180/pi
          
          *vwrite, time, pinion_rotz, wheel_rotz
          (F10.6)
      *enddo
      *cfclos ! close the output file
       
      Thanks,
    • Ashish Khemka
      Forum Moderator
Viewing 1 reply thread
  • The topic ‘How can I extract remote connection rotation at each time step via commands?’ is closed to new replies.