Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding force and torque at same time #315

Closed
AaronRapopot opened this issue Oct 30, 2023 · 5 comments
Closed

Adding force and torque at same time #315

AaronRapopot opened this issue Oct 30, 2023 · 5 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@AaronRapopot
Copy link

Hello. I applied a torque to bend my rod. Now, I also want to apply a force in the tangential direction along the rod at the free endpoint. Is there a good method to achieve this? Like this:

20231030190439

@AaronRapopot AaronRapopot added the help wanted Extra attention is needed label Oct 30, 2023
@ilianasiriziba
Copy link
Contributor

Hi @AaronRapopot,

Yes, for this aim you can add EndpointForces on the rod. Just use the tangent argument of the rod to define the force direction. You need to make the force direction equal to the tangent of the last element.

@AaronRapopot
Copy link
Author

Hi @ilianasiriziba
The direction of the Endpointforce should change continuously as the rod bending. Can I obtain the tangential direction of the rod's endpoint in real-time through a callback?Perhaps it needs to be calculated step by step?

For example:
for step in range(initial_step, final_step + 1):
tangent_direction = get_tangent_direction(step - 1) #Get the position information from the previous step through a callback
force_vector = tangent_direction * endpointforce
apply_force_to_rod(force_vector)

Not actual code, just to explain the logic. Thanks for your help!

@ilianasiriziba
Copy link
Contributor

Hi @AaronRapopot,

If you make the force direction equal to rod_name.tangents of the last element it will be updated step by step.

@bhosale2
Copy link
Collaborator

bhosale2 commented Feb 1, 2024

@AaronRapopot Has your issue been resolved? Please let us know, or else we shall close this issue due the inactivity in a few days.

@bhosale2
Copy link
Collaborator

@ilianasiriziba and @armantekinalp closing this issue due to inactivity, as mentioned above. Feel free to open if deemed necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants