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

particle-in-tube-new #286

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Peter230655
Copy link
Contributor

@Peter230655 Peter230655 commented Dec 30, 2024

I hope now I did the branching correctly.

A particle in 3D must move from A to B and must stay in a tube definded by a parametric curve and a radius.
(Essentially like the drone, but I switched to a particle to get simple (=faster) EOMs)

Here one can see the following:
Trying to get the distance from the particle to the curve results in a nonlinear equation for the parameter which gives the point of the curve with smallest distance. I make this an additional rom, and the parameter n additional state variable. to ensure the particle stays inside the tube, I add another eom: dist = distance, and bound dist <= radius of tube.at some intermediate time tm the particle should move through a gate, modelled as a circle with center on the curve. To do this, I introduce yet another state variable and another specified variable, gate_h, and add gate = gate_h * distance. I bound gate_h >= 1 and set the instance constraint gate(tm) = radius of the gate.

Most of this is in other PRs, but I find maybe nicely summarized here.

@Peter230655 Peter230655 mentioned this pull request Dec 30, 2024
@Peter230655
Copy link
Contributor Author

Now it traces the particle in the tube. I think, this shows nicely, how the particle does go through the gate, at the place of the gate closest to the wall of the tube - which makes sense as the energy should be minimized.

@Peter230655 Peter230655 mentioned this pull request Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant