Skip to content

Conversation

@th-skam
Copy link
Collaborator

@th-skam th-skam commented Jul 15, 2025

The InsertionAlgorithm uses the MechanicalState holding all the DOFs of the needle model to get the value of lambda (the impulse) from the constraint solver and compare it with the puncture threshold. By convention, it is assumed that the DOF at the tip of the needle is the last element in this MechanicalState.

With this PR, the algorithm uses the mstate that corresponds to the needle tip node instead. This is more direct and appropriate.

Note

It is assumed that the MechanicalObject in the needle tip node is of type Vec3 and that it is of size = 1.

Closes #13

25-07-15-TipLambda

@th-skam th-skam added the issue: enhancement New feature or request label Jul 15, 2025
@epernod epernod added pr: enhancement pr: status to review To notify reviewers to review this pull-request and removed issue: enhancement New feature or request labels Jul 15, 2025
… initiate puncture

instead of the one in the master needle node
@th-skam th-skam merged commit a8fdc0f into master Jul 23, 2025
@th-skam th-skam deleted the fix-lambda branch July 23, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: enhancement pr: status to review To notify reviewers to review this pull-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Needle] Switch to using the MechanicalState in the needle tip node instead of the one in the master node

3 participants