Wiki: Common mistakes
In this page, we will be sharing some common errors that might occur in Comsol and their solutions. We are planning to continuously update this page throughout the semester and hopefully, this will become a reference during your projects as well.
Please don’t hesitate to post comments below or send emails to us if you experience any other problems.
- Not assigning materials to all the domains.
- Not entering required material parameters.
- Not meshing all the domains.
- Not assigning proper boundary conditions: Especially if you have ports.
- Wrong ordering of study steps. (Frequency Domain should be the last step)
|Error Message:||“- Feature: Stationary Solver 1 (sol1/s1) Failed to find a solution. Singular matrix.”|
|Possible Solutions:||Make sure you defined your ports correctly: Boundary selection Type of port: e.g. numeric (each ports needs their own boundary mode analysis in the study if they are numerically defined) Wave excitation: on/off (input/output)|
|Error Message:||“- Feature: Stationary Solver 1 (sol1/s1) Division by zero. – Function: / Failed to evaluate expression. … ”|
|Possible Solutions:||Study steps might be listed in wrong order: |
COMSOL works top-down. Make sure that study steps (e.g.boundary mode analysis) are listed higher than dependent study steps (e.g. frequency domain) If you also have parametric sweep, then in should be the top one to cover the other ones with the sweep.