Trying to solve a solid works model in the matlab. Encountered an error. What can be done to overcome the following error? Tried changing the consistency tolerance. Did not work.
3 views (last 30 days)
Show older comments
An error occurred while running the simulation and the simulation was terminated
Caused by:
- ['Assem1/Common Gear Constraint2', 'Assem1/Solver Configuration']: 'Assem1/Common Gear Constraint2' kinematic constraints cannot be maintained. Check solver type and consistency tolerance in the Simscape Solver Configuration block. Check Simulink solver type and tolerances in Model Configuration Parameters. A kinematic singularity might be the source of this problem.
0 Comments
Answers (1)
Kautuk Raj
on 11 Dec 2024
I was facing the same error while carrying out a similar workflow in Simscape Multibody and found out that the issue was related to changing the "Consistency Tolerance" parameter in the Solver Configuration block. More about this parameter can be gathered from the following MathWorks documentation page: https://in.mathworks.com/help/simscape/ref/solverconfiguration.html#:~:text=off%20(default)%20%7C%20on-,Consistency%20tolerance,-%E2%80%94%20State%2Dbased
If the solver tolerance is too loose, meaning the tolerance value is too large, then it is possible that the simulation may overlook small errors and extend beyond the physical limits of the model. This can lead to larger errors and ultimately trigger a constraint violation error message.
If the solver tolerance is too tight, meaning the tolerance value is too small, then it is possible the solver time step will have to be decreased to a value that is too small to meet the tolerance requirements. This can then trigger a constraint violation error message.
Setting the parameter to its default value of 1e-09 solved the issue for me, I suggest you to try the same.
0 Comments
See Also
Categories
Find more on Assembly in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!