GithubHelp home page GithubHelp logo

Comments (5)

ilianasiriziba avatar ilianasiriziba commented on August 21, 2024

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.

from pyelastica.

AaronRapopot avatar AaronRapopot commented on August 21, 2024

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!

from pyelastica.

ilianasiriziba avatar ilianasiriziba commented on August 21, 2024

Hi @AaronRapopot,

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

from pyelastica.

bhosale2 avatar bhosale2 commented on August 21, 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.

from pyelastica.

bhosale2 avatar bhosale2 commented on August 21, 2024

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

from pyelastica.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.