Solving the magnitude and direction of contact force during the compression process of rigid and elastic objects #4969
Replies: 3 comments 4 replies
-
probe-tissue-0904.zip |
Beta Was this translation helpful? Give feedback.
-
Hello @hugtalbot |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Solving the magnitude and direction of contact force during the compression process of rigid and elastic objects
code:
Among them, forcesNorm=self. root_node GCS-ConstraintForces.value cannot be obtained. I set self. root_node. addObject ('GenericConstraintSolver ', name="GCS") earlier, maxIt=1000, tolerance=1e-6,computeConstraintForces=True)。
output:
0.02
constraintMatrixInline: 950
forcesNorm: 0
[ERROR] [Probe(unnamed)] Unable to execute code.
Python exception:
IndexError: index 950 is out of bounds for axis 0 with size 950
probe-tissue-0904.zip
At:
G:\SOFA_codes\probe-tissue-0901\probe-tissue-simulation-sofapython3\objects\probe.py(166): onAnimateBeginEvent
G:\SOFA_codes\probe-tissue-0901\probe-tissue-simulation-sofapython3\simulation.py(166):
At:
G:\SOFA_codes\probe-tissue-0901\probe-tissue-simulation-sofapython3\simulation.py(166):
Beta Was this translation helpful? Give feedback.
All reactions