{"id":53,"date":"2020-05-19T11:49:30","date_gmt":"2020-05-19T09:49:30","guid":{"rendered":"https:\/\/wpethzprd.ethz.ch\/ps_comsol\/?page_id=53"},"modified":"2025-09-22T16:25:18","modified_gmt":"2025-09-22T14:25:18","slug":"common-errors-in-comsol","status":"publish","type":"page","link":"https:\/\/blogs.ethz.ch\/ps_comsol\/homepage\/common-errors-in-comsol","title":{"rendered":"Wiki: Common mistakes"},"content":{"rendered":"\n<p>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.<\/p>\n\n\n\n<p>Please don&#8217;t hesitate to post comments below or send emails to us if you experience any other problems.<\/p>\n\n\n\n<p>Common Mistakes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Not assigning materials to all the domains.<\/li>\n\n\n\n<li>Not entering required material parameters.<\/li>\n\n\n\n<li>Not meshing all the domains.<\/li>\n\n\n\n<li>Not assigning proper boundary conditions: Especially if you have ports.<\/li>\n\n\n\n<li>Wrong ordering of study steps. (Frequency Domain should be the last step)<\/li>\n\n\n\n<li>Wrong abbreviation for physics module. (<strong>&#8217;emw&#8217; for RF module, and &#8216;ewfd&#8217; for Wave Optics module<\/strong>.)<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><td><strong>Stationary Solver<\/strong>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td><strong>Error<\/strong> <strong>Message:&nbsp;<\/strong>&nbsp;<\/td><td>&#8220;- Feature: Stationary Solver 1 (sol1\/s1)&nbsp;&nbsp;&nbsp;Failed to find a solution.&nbsp;&nbsp;&nbsp; Singular matrix.&#8221;&nbsp;<\/td><\/tr><tr><td><strong>Possible<\/strong> <strong>Solutions:&nbsp;<\/strong><\/td><td>Make sure you defined your ports correctly:&nbsp;Boundary selection&nbsp;Type of port: e.g. numeric (each ports needs their own&nbsp;boundary mode analysis in the study if they are numerically defined)&nbsp;Wave excitation: on\/off&nbsp;(input\/output)<\/td><\/tr><tr><td><strong>Error<\/strong> <strong>Message:<\/strong>&nbsp;<\/td><td>&#8220;- Feature: Stationary Solver 1 (sol1\/s1)&nbsp;&nbsp;&nbsp; Division by zero.&nbsp;&nbsp;&nbsp; &#8211; Function: \/&nbsp;&nbsp;&nbsp; Failed to evaluate expression. \u2026 &#8221;&nbsp;<\/td><\/tr><tr><td><strong>Possible Solutions:<\/strong><\/td><td>Study&nbsp;steps might be listed in wrong order:&nbsp;<br>COMSOL works top-down. Make sure that study steps (e.g.boundary&nbsp;mode analysis) are listed higher than dependent study steps (e.g. frequency domain)&nbsp;If you also have parametric sweep, then in should be the top one to cover the other ones with the sweep.<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;t hesitate to post comments below or send emails to us if you [&hellip;]<\/p>\n","protected":false},"author":45439,"featured_media":0,"parent":6,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-53","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.ethz.ch\/ps_comsol\/wp-json\/wp\/v2\/pages\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ethz.ch\/ps_comsol\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.ethz.ch\/ps_comsol\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ethz.ch\/ps_comsol\/wp-json\/wp\/v2\/users\/45439"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ethz.ch\/ps_comsol\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":3,"href":"https:\/\/blogs.ethz.ch\/ps_comsol\/wp-json\/wp\/v2\/pages\/53\/revisions"}],"predecessor-version":[{"id":598,"href":"https:\/\/blogs.ethz.ch\/ps_comsol\/wp-json\/wp\/v2\/pages\/53\/revisions\/598"}],"up":[{"embeddable":true,"href":"https:\/\/blogs.ethz.ch\/ps_comsol\/wp-json\/wp\/v2\/pages\/6"}],"wp:attachment":[{"href":"https:\/\/blogs.ethz.ch\/ps_comsol\/wp-json\/wp\/v2\/media?parent=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}