Difference in capacitance results: COMSOL vs MATLAB
Posted 2024年12月16日 GMT-5 08:59 5 Replies
Please login with a confirmed email address before reporting spam
Hello everyone, I hope you're all doing well. I'm facing a significant challenge and would greatly appreciate it if you could help me out.
The capacitance I obtain for my structure using COMSOL is 38 femtofarads, but when I calculate the same structure in MATLAB, the capacitance increases to 54 femtofarads. I know that COMSOL takes fringing fields into account when calculating capacitance.
If anyone has experience with this or can help me identify where the issue might be, I would be truly grateful.
Thank you very much in advance!
Please login with a confirmed email address before reporting spam
Hello Amir,
It seems like you have already figured the reason for the difference between your two results: I interpret your post as meaning that your MATLAB computation and your COMSOL computation are based on different hypotheses about the electrostatic fields. If a model ignores the effect of fringing fields (presumably because it assumes the capacitor's gap to be infinitely small compared to its other two dimensions), you should expect it to produce a different result than a model that accounts for the fact that the capacitor's gap is in fact finite.
Best regards,
Jeff
-------------------Jeff Hiller
Please login with a confirmed email address before reporting spam
Dear Jeff, Thank you for your response and clarification. The structure of my sensor is based on variable area for capacitance calculation, while the gap remains fixed. In fact, I performed the MATLAB calculations using classical formulas for capacitance computation, considering the three parts (1, 2, and 3) as shown in Figure 1. Unfortunately, the difference between the capacitance values computed in MATLAB and COMSOL still exists. Using the classical formulas: • The capacitance calculated in MATLAB equals 54 femtofarads, while the capacitance obtained from COMSOL for a bias of 1g (acceleration) is 38 femtofarads. Next, as shown in Figure 2, I modified my MATLAB calculations by using the formula provided in Figure 2 specifically for part 3, while for parts 1 and 2, I continued using the formulas from Figure 1. With this adjustment: The capacitance computed in MATLAB equals 49 femtofarads, but the capacitance obtained in COMSOL remains 38 femtofarads for the same bias of 1 g. "As a side note, the formula used in Figure 2 (part 3) is specifically applied to calculate the capacitance of parallel plates with varying areas." In your opinion, is this formula applicable to our structure? Despite this refinement in the MATLAB calculations, the difference between the MATLAB and COMSOL results persists. Given this, I have the following questions: 1. Is the difference between the MATLAB and COMSOL results expected and within an acceptable range? 2. What would you suggest as a solution to align the MATLAB calculations with the COMSOL model so that fringing fields are accounted for more accurately? And please kindly let me know if you have any suggestions for reducing this difference or if additional steps are required to align the MATLAB calculations with the COMSOL results. Bests, Amir![https://drive.google.com/file/d/1Ui3r-XKwp8TRIi6ikueGQ0gZrzapw_Dn/view?usp=drive_link]
Please login with a confirmed email address before reporting spam
Hello Amir,
I was not able to access the files; I would recommend you post them directly into this thread. With that said, your post does suggest to me that your MATLAB methodology presumes some form of simplification that is not made in the COMSOL model, resulting in different results.
Best regards,
Jeff
-------------------Jeff Hiller
Please login with a confirmed email address before reporting spam
Hello Jeff, Thank you so much for your response. I will definitely upload the file here. Bests, Amir,
Attachments:
Please login with a confirmed email address before reporting spam
Thanks, Amir. So, yes, it is as I suspected: your MATLAB methodology is based on analytical expressions. With PDEs, analytical solutions are typically only available for very specific geometries (simple shapes, etc) and physical assumptions. Stretching their use to a case where those simplifications are not fully satisfied is certainly something that is commonly done in engineering, and it can frequently yield very useful information about a system. Unfortunately, it is hard to predict how far off the resulting values are going to be from the exact solution. When possible, solving the PDEs with a tool like COMSOL yields more accurate values due to fewer or less stringent simplifications being made. The ~20% difference between your two results (49fF vs 38fF) does not strike me as unusual.
Best,
Jeff
-------------------Jeff Hiller
Reply
Please read the discussion forum rules before posting.
Discussion Forum Rules and Guidelines
The goal of COMSOL Access is to provide a forum for you to communicate effectively with COMSOL as well as your colleagues within the multiphysics simulation community. This involves providing you with access to technical support and downloads of the latest {:comsol} software releases, as well as the ability to share your comments and work with other users of the {:comsol} software through forums such as the blog, discussion forum, and Application Exchange. In order to make this an efficient and pleasant experience for you and other members of COMSOL Access, we ask that you follow a few rules and guidelines.
When registering for COMSOL Access, you agree to provide your complete and truthful information for all fields requested on your COMSOL Access account registration page. You also agree to maintain the accuracy of all information associated with you on your COMSOL Access account. You agree to maintain your COMSOL Access account for use solely by you, not to share your username and password with anyone else, and to take appropriate precautions to restrict access to your username and password from others. Furthermore, you agree not to submit any information relating to your employer through your COMSOL Access account without your employer’s authorization. Should you use a COMSOL Access account associated with an employer, you agree to immediately discontinue using that account upon termination of that employment.
The moderators of the forums will remove any generally objectionable material as quickly as possible. You acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators, or webmaster (except for posts by these people). Hence, they will not be held liable.
You agree not to post or link to any material that is abusive, obscene, vulgar, slanderous, hateful, threatening, sexually oriented, or that infringes upon or violates any third-party rights or any other material that may violate any applicable laws. You agree that you will not otherwise use your COMSOL Access account to violate or to assist anyone in violating any law. Engaging in any activity in violation of these COMSOL Access rules and guidelines may lead to you being immediately and permanently banned from COMSOL Access. The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator, and moderators of the forums have the right to remove, move, or close any topic at any time as they see fit. As a user of COMSOL Access, you agree to any information you have entered into any of the forums being stored in a database.
You agree that you will not use your COMSOL Access account in violation of any applicable export control laws. You represent and warrant that you are not subject to any comprehensive sanction or embargo by the U.S. or any other country, nor are you identified on any list maintained by the U.S. government that identifies persons for which the U.S. maintains restrictions. Further, you represent and warrant that you are not subject to any restriction on the receipt of technology or products under the export control laws of the U.S. or any other country.
Basic Rules
- Flaming: Do not post any messages that harass, insult, belittle, threaten, or flame another member or guest. Debates are fine, but argue with the point, not the person.
- Trolling: Do not post with the purpose of starting a dispute. Note that a person disagreeing with your opinion is not considered trolling; keep it civil, even if you are sure that the other person is wrong. Anything seen as trolling will result in you being banned.
- Spamming: Posts without content or containing nonsense waste space and everyone's time. Spam will be removed from the forum.
- Offensive Posts, Links or Images: Do not use profanity, racial, ethnic, religious, or other slurs or any other offensive material.
- Advertising: Posting of advertisements for products or services, links to auctions, affiliate links, links to promote websites, and so forth is not allowed.
- Disclosure of Personal Information: Do not disclose any other member's email, real name, address, phone number, IP address, or other personal information. This includes posting contents of emails and private messages without the sender's consent. Do not bring personal disputes into the forums. Bans and warnings issued to other users are considered personal information.
- Misleading Titles: The subject line of the post should be as informative as possible about the content of the post. This also reduces the amount of duplicate posts.
- Thread Hijacking: Taking a thread off-topic to pursue one's own agenda is not permitted.
- Piracy: Do not upload, post, email, transmit, or otherwise make available any content that infringes upon any patent, trademark, trade secret, copyright, or other proprietary rights ("Rights") of any party. This includes COMSOL model files created by a forged or illegitimate license.
- Honesty: Users must provide truthful information in creating their COMSOL Access account.
These rules are subject to change. The moderators reserve the right to remove, edit, or move posts at their discretion. The COMSOL Access administrators will reserve the right to permanently remove a user account without notice if any of the rules are not followed. Particular services accessible with your COMSOL Access account may be subject to additional rules. You agree to comply with all rules applicable to each service you access through your COMSOL Access account.
Posting Guidelines
When posting, understand that you are trying to communicate with other people. Although many COMSOL Access members are not fluent in English, the official language of this forum is English.
Here are some important guidelines of language:
- Write in English.
- If you are familiar with LaTeX, please use this to write mathematical equations.
- Always do a quick check for spelling/grammar mistakes.
- Format your post in a legible manner. Use the Preview button often.
- Be concise and articulate as much as possible.
- Use the Enter key to create paragraphs.
- Capitalize correctly. It is difficult to read posts that are written entirely in uppercase or lowercase.
- Use correct punctuation. Avoid run-on sentences.
- Try to avoid using “text speak”, “net speak”, or slang. The purpose of language is to be understood.
- Never invent acronyms and use as few acronyms as possible. For example, write "COMSOL Multiphysics" and not "CMP".
- Review your post before publishing it. Try to catch typos.
- Please check to see if a topic has already been posted. Do not post multiple threads on the same topic.
Disclaimer
By submitting content to the forums, you hereby grant COMSOL a nonexclusive, royalty-free, perpetual, worldwide, and unrestricted license to reproduce, publicly display, publicly distribute, and prepare derivative works of the content. COMSOL hereby grants you a license to copy and/or use content from the forums solely for your own internal purposes. COMSOL provides the forum service for the benefit of our users to share content with the community. All content is provided "as is" without warranty of any kind, express or implied, including without limitation, warranties of merchantability, noninfringement, design, operation, and fitness for a particular purpose, and the entire risk as to the quality and performance of the programs is with you.
Neither COMSOL, the authors, nor the copyright owners of submitted materials warrant that the programs will be error-free, uninterrupted, virus-free, secure, and suitable for your needs, produce specific results, or that errors or failures will be corrected. Comments on supplied content should be sent to the author or copyright owner through the tools provided in the forums.
Please log in to post a reply.
Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.