When catheter contact the inner wall, why stick and strange transform? #6008
Unanswered
904288343
asked this question in
BeamAdapter
Replies: 1 comment
-
|
@hugtalbot Can you give me some help please, thank you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm try to simulate the catheter in the lung based on the example 3instrument_collision.scn. I change the vessel.obj file to lung.obj, which is a thin-walled model. But when the catheter contact the inner wall of lung, it stick to the wall. And the shape of catheter changed strange like this fig with a warning.

[WARNING] [LCPConstraintSolver(LCPConstraintSolver)] No convergence in unbuilt nlcp gaussseidel function : error =0.00475986 after 1000 iterations
I don't know it is because my model differ to the origin model or other settings are wrong. The catheter can't follow the inner wall ahead, but stick and go inside the wall. How to deal?My code and model:
`# -- coding: utf-8 --
import Sofa
def createScene(rootNode):
rootNode.createObject('RequiredPlugin', pluginName='BeamAdapter SofaDeformable SofaImplicitOdeSolver SofaGeneralLinearSolver SofaLoader SofaMeshCollision SofaMiscCollision SofaOpenglVisual SofaTopologyMapping SofaBoundaryCondition SofaConstraint')
rootNode.findData('dt').value = 0.01
rootNode.findData('gravity').value = '0 0 0'
rootNode.createObject('VisualStyle',
displayFlags='showVisualModels showBehaviorModels showCollisionModels hideMappings hideForceFields')
`
a.zip
Beta Was this translation helpful? Give feedback.
All reactions