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 #285

Closed
wants to merge 19 commits into from
Closed

Conversation

Peter230655
Copy link
Contributor

A particle in §D 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
Copy link
Contributor Author

Peter230655 commented Dec 30, 2024

I did the branching all wrong here, this is why so many files are changed.
I pushed the same example again (#286), no with correct branchin as @tjstienstra explained to me.
So, I close this PR.
NB: Most of the PRs likely have the same mistake, I will correct them one by one.

@Peter230655 Peter230655 deleted the particle-in-tube branch December 30, 2024 06:18
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